npc: ACCEPT already established connections in egress chain
It's safe to accept such connections as they will be accepted in the ingress chain anyway.
This commit is contained in:
1 parent
70ff510e49
commit
0ad2001ab4
1 file changed
+2
-2
@@ -158,7 +158,7 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error {
|
|||||||
|
|
||||||
// Egress rules:
|
// Egress rules:
|
||||||
//
|
//
|
||||||
// -A WEAVE-NPC-EGRESS -m state --state RELATED,ESTABLISHED -j RETURN
|
// -A WEAVE-NPC-EGRESS -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||||
// -A WEAVE-NPC-EGRESS -m set ! --match-set weave-local-pods src -j RETURN
|
// -A WEAVE-NPC-EGRESS -m set ! --match-set weave-local-pods src -j RETURN
|
||||||
// -A WEAVE-NPC-EGRESS -d 224.0.0.0/4 -j RETURN
|
// -A WEAVE-NPC-EGRESS -d 224.0.0.0/4 -j RETURN
|
||||||
// -A WEAVE-NPC-EGRESS -m state --state NEW -j WEAVE-NPC-EGRESS-DEFAULT
|
// -A WEAVE-NPC-EGRESS -m state --state NEW -j WEAVE-NPC-EGRESS-DEFAULT
|
||||||
@@ -179,7 +179,7 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error {
|
|||||||
// check both chains).
|
// check both chains).
|
||||||
|
|
||||||
ruleSpecs := [][]string{
|
ruleSpecs := [][]string{
|
||||||
{"-m", "state", "--state", "RELATED,ESTABLISHED", "-j", "RETURN"},
|
{"-m", "state", "--state", "RELATED,ESTABLISHED", "-j", "ACCEPT"},
|
||||||
{"-m", "state", "--state", "NEW", "-m", "set", "!", "--match-set", npc.LocalIpset, "src", "-j", "RETURN"},
|
{"-m", "state", "--state", "NEW", "-m", "set", "!", "--match-set", npc.LocalIpset, "src", "-j", "RETURN"},
|
||||||
}
|
}
|
||||||
if allowMcast {
|
if allowMcast {
|
||||||
|
|||||||
Reference in new issue
Block a user