summaryrefslogtreecommitdiffstats
path: root/tests/match_target.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/match_target.t')
-rw-r--r--tests/match_target.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/match_target.t b/tests/match_target.t
index cab8184..1739fae 100644
--- a/tests/match_target.t
+++ b/tests/match_target.t
@@ -80,4 +80,12 @@
0 ipset test test 10.255.255.64,icmp:host-prohibited
# Destroy sets and rules
0 ./iptables.sh inet stop
+# Create test set and iptables rules
+0 ./iptables.sh inet mangle
+# 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 mark
+# Destroy sets and rules
+0 ./iptables.sh inet stop
# eof