summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/redirect.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/redirect.t')
-rw-r--r--tests/py/ip/redirect.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/py/ip/redirect.t b/tests/py/ip/redirect.t
index 8161ae6d..7e205a90 100644
--- a/tests/py/ip/redirect.t
+++ b/tests/py/ip/redirect.t
@@ -22,6 +22,7 @@ tcp dport 22 redirect to 22;ok
udp dport 1234 redirect to 4321;ok
ip daddr 172.16.0.1 udp dport 9998 redirect to 6515;ok
tcp dport 39128 redirect to 993;ok
+ip protocol tcp redirect to 100-200;ok;ip protocol 6 redirect to 100-200
redirect to 1234;fail
redirect to 12341111;fail
@@ -44,3 +45,7 @@ ip saddr 10.1.1.1 redirect drop;fail
tcp dport { 1, 2, 3, 4, 5, 6, 7, 8, 101, 202, 303, 1001, 2002, 3003} redirect;ok
ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 redirect;ok
iifname eth0 ct state new,established tcp dport vmap {22 : drop, 222 : drop } redirect;ok
+
+# redirect with maps
+ip protocol 6 redirect to tcp dport map { 22 : 8000, 80 : 8080};ok
+