From a931115b4f26f4c69bc79f8b362dd194943d2a44 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Sun, 14 Sep 2014 21:50:28 +0200 Subject: Add test to check mark mapping Signed-off-by: Jozsef Kadlecsik --- 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 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 -- cgit v1.2.3