diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-06-25 16:30:52 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-06-25 16:30:52 +0200 |
commit | 780f6384c5c6639da3f5a6ac8d30653e8a26d6c0 (patch) | |
tree | 9c8091a4d0a01f0f3216dd5758bf4d07e81cb843 /tests/match_target6.t | |
parent | 020936c8c3375e1efe44a3087c891a4b2cbfe044 (diff) | |
download | ipset-780f6384c5c6639da3f5a6ac8d30653e8a26d6c0.tar.gz |
ipset 5: IPv6 port related and manpage fixes, more testsv5.0-pre4
- getting ports for family INET6 fixed
- more manpage polishing
- tests to check the iptables/ip6tables match and target added
Diffstat (limited to 'tests/match_target6.t')
-rw-r--r-- | tests/match_target6.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/match_target6.t b/tests/match_target6.t new file mode 100644 index 0000000..58888bd --- /dev/null +++ b/tests/match_target6.t @@ -0,0 +1,21 @@ +# Create sets and inet6 rules which call set match and SET target +0 ./iptables.sh inet6 start +# Send probe packet from 1002:1002:1002:1002::64,tcp:1025 +0 sendip -p ipv6 -6d ::1 -6s 1002:1002:1002:1002::64 -p tcp -td 80 -ts 1025 ::1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 1002:1002:1002:1002::64 tcp 1025 ipport list +# Send probe packet from 1002:1002:1002:1002::64,udp:1025 +0 sendip -p ipv6 -6d ::1 -6s 1002:1002:1002:1002::64 -p udp -ud 80 -us 1025 ::1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 1002:1002:1002:1002::64 udp 1025 ipport list +# Send probe packet from 1002:1002:1002:1002::1,tcp:1025 +0 sendip -p ipv6 -6d ::1 -6s 1002:1002:1002:1002::1 -p tcp -td 80 -ts 1025 ::1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 1002:1002:1002:1002::1 tcp 1025 ip1 list +# Send probe packet from 1002:1002:1002:1002::32,tcp:1025 +0 sendip -p ipv6 -6d ::1 -6s 1002:1002:1002:1002::32 -p tcp -td 80 -ts 1025 ::1 +# Check that proper sets matched and target worked +0 ./check_klog.sh 1002:1002:1002:1002::32 tcp 1025 ip2 +# Destroy sets and rules +0 ./iptables.sh inet6 stop +# eof |