From 780f6384c5c6639da3f5a6ac8d30653e8a26d6c0 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 25 Jun 2010 16:30:52 +0200 Subject: ipset 5: IPv6 port related and manpage fixes, more tests - getting ports for family INET6 fixed - more manpage polishing - tests to check the iptables/ip6tables match and target added --- tests/match_target.t | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/match_target.t (limited to 'tests/match_target.t') diff --git a/tests/match_target.t b/tests/match_target.t new file mode 100644 index 0000000..8c3f3f9 --- /dev/null +++ b/tests/match_target.t @@ -0,0 +1,21 @@ +# Create sets and inet rules which call set match and SET target +0 ./iptables.sh inet start +# Send probe packet from 10.255.255.64,tcp:1025 +0 sendip -p ipv4 -id 127.0.0.1 -is 10.255.255.64 -p tcp -td 80 -ts 1025 127.0.0.1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 10.255.255.64 tcp 1025 ipport list +# Send probe packet from 10.255.255.64,udp:1025 +0 sendip -p ipv4 -id 127.0.0.1 -is 10.255.255.64 -p udp -ud 80 -us 1025 127.0.0.1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 10.255.255.64 udp 1025 ipport list +# Send probe packet from 10.255.255.1,tcp:1025 +0 sendip -p ipv4 -id 127.0.0.1 -is 10.255.255.1 -p tcp -td 80 -ts 1025 127.0.0.1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 10.255.255.1 tcp 1025 ip1 list +# Send probe packet from 10.255.255.32,tcp:1025 +0 sendip -p ipv4 -id 127.0.0.1 -is 10.255.255.32 -p tcp -td 80 -ts 1025 127.0.0.1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 10.255.255.32 tcp 1025 ip2 +# Destroy sets and rules +0 ./iptables.sh inet stop +# eof -- cgit v1.2.3