mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-11-21 04:51:18 +01:00
parent
240cac29c9
commit
1d1ff0599a
@ -1294,8 +1294,11 @@ func (nsc *NetworkServicesController) deleteBadMasqueradeIptablesRules() error {
|
|||||||
var argsBad = [][]string{
|
var argsBad = [][]string{
|
||||||
{"-m", "ipvs", "--ipvs", "--vdir", "ORIGINAL", "--vmethod", "MASQ", "-m", "comment", "--comment", "",
|
{"-m", "ipvs", "--ipvs", "--vdir", "ORIGINAL", "--vmethod", "MASQ", "-m", "comment", "--comment", "",
|
||||||
"-j", "MASQUERADE"},
|
"-j", "MASQUERADE"},
|
||||||
{"-m", "ipvs", "--ipvs", "--vdir", "ORIGINAL", "--vmethod", "MASQ", "-m", "comment", "--comment", "",
|
}
|
||||||
"!", "-s", nsc.podCidr, "!", "-d", nsc.podCidr, "-j", "MASQUERADE"},
|
|
||||||
|
if len(nsc.podCidr) > 0 {
|
||||||
|
argsBad = append(argsBad, []string{"-m", "ipvs", "--ipvs", "--vdir", "ORIGINAL", "--vmethod", "MASQ",
|
||||||
|
"-m", "comment", "--comment", "", "!", "-s", nsc.podCidr, "!", "-d", nsc.podCidr, "-j", "MASQUERADE"})
|
||||||
}
|
}
|
||||||
|
|
||||||
// If random fully is supported remove the original rules as well
|
// If random fully is supported remove the original rules as well
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user