k 3 iptables: allow REDIRECT target

This commit is contained in:
lassulus 2016-04-12 15:09:08 +02:00
parent 4d3e713198
commit 7023d41410

View File

@ -20,6 +20,7 @@ let
flatten
length
hasAttr
hasPrefix
mkEnableOption
mkOption
mkIf
@ -123,7 +124,7 @@ let
buildRule = tn: cn: rule:
#target validation test:
assert (elem rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}")));
assert (elem rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}"))) || hasPrefix "REDIRECT" rule.target;
#predicate validation test:
#maybe use iptables-test