summaryrefslogtreecommitdiffstats
path: root/tests/iptables.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2016-01-13 09:28:07 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2016-01-13 09:28:07 +0100
commit9592763b89d03e988fb46f2fc05c0cdc992534d3 (patch)
tree9c06d11a2caf27716b74c141afddbdcb90a37d79 /tests/iptables.sh
parent9b0be3d2545bfd0b482883bada1f4f0410b683ef (diff)
Test added to check 0.0.0.0/0,iface to be matched in hash:net,iface type
Diffstat (limited to 'tests/iptables.sh')
-rwxr-xr-xtests/iptables.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/iptables.sh b/tests/iptables.sh
index 7ea90e0..490d42d 100755
--- a/tests/iptables.sh
+++ b/tests/iptables.sh
@@ -111,6 +111,12 @@ mangle)
$cmd -t mangle -A INPUT -m mark --mark 0x1234 -j LOG --log-prefix "in set mark: "
$cmd -t mangle -A INPUT -s 10.255.0.0/16 -j DROP
;;
+netiface)
+ $ipset n test hash:net,iface
+ $ipset a test 0.0.0.0/0,eth0
+ $cmd -A OUTPUT -m set --match-set test dst,dst -j LOG --log-prefix "in set netiface: "
+ $cmd -A OUTPUT -d 10.255.255.254 -j DROP
+ ;;
stop)
$cmd -F
$cmd -X