From 9592763b89d03e988fb46f2fc05c0cdc992534d3 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 13 Jan 2016 09:28:07 +0100 Subject: Test added to check 0.0.0.0/0,iface to be matched in hash:net,iface type --- tests/match_target.t | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/match_target.t') diff --git a/tests/match_target.t b/tests/match_target.t index 02a0ea3..59e1643 100644 --- a/tests/match_target.t +++ b/tests/match_target.t @@ -104,4 +104,12 @@ 0 ipset t test 10.255.255.0/24 # Destroy sets and rules 0 ./iptables.sh inet stop +# Create set and rules for 0.0.0.0/0 check in hash:net,iface +0 ./iptables.sh inet netiface +# Send probe packet +0 sendip -p ipv4 -id 10.255.255.254 -is 10.255.255.64 -p udp -ud 80 -us 1025 10.255.255.254 >/dev/null 2>&1 +# Check kernel log that the packet matched the set +0 ./check_klog.sh 10.255.255.64 udp 1025 netiface +# Destroy sets and rules +0 ./iptables.sh inet stop # eof -- cgit v1.2.3