k 3 iptables: allow DNAT rules
This commit is contained in:
parent
39be633cf4
commit
cc938e61f8
|
@ -124,7 +124,7 @@ let
|
|||
|
||||
buildRule = tn: cn: rule:
|
||||
#target validation test:
|
||||
assert (elem rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}"))) || hasPrefix "REDIRECT" rule.target;
|
||||
assert (elem rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}"))) || hasPrefix "REDIRECT" rule.target || hasPrefix "DNAT" rule.target;
|
||||
|
||||
#predicate validation test:
|
||||
#maybe use iptables-test
|
||||
|
|
Loading…
Reference in a new issue