npc: Add WEAVE-NPC-EGRESS-ACCEPT chain
For improving readability of NPC rules. The chain marks to-be-allowed egress traffic.
This commit is contained in:
1 parent
1f86ed55ba
commit
c0e2deb5a0
4 files changed
+12
-2
No files matched your search
+1
-1
@@ -449,7 +449,7 @@ func bypassRuleIngress(nsIpsetName ipset.Name, namespace string) []string {
|
||||
|
||||
func bypassRuleEgress(nsIpsetName ipset.Name, namespace string) [][]string {
|
||||
return [][]string{
|
||||
{"-m", "set", "--match-set", string(nsIpsetName), "src", "-j", "MARK", "--set-xmark", EgressMark, "-m", "comment", "--comment", "DefaultAllow isolation for namespace: " + namespace},
|
||||
{"-m", "set", "--match-set", string(nsIpsetName), "src", "-j", EgressMarkChain, "-m", "comment", "--comment", "DefaultAllow isolation for namespace: " + namespace},
|
||||
{"-m", "set", "--match-set", string(nsIpsetName), "src", "-j", "RETURN", "-m", "comment", "--comment", "DefaultAllow isolation for namespace: " + namespace},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user