summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/dnat.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-07-14 12:05:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-07-14 12:05:24 +0200
commit640dc0c8a3daef65cd93868939b5a2877615f2d5 (patch)
tree6bda36606ef3640f0916d576486e54aa262a69d0 /tests/py/ip/dnat.t
parent66746e7dedeb0cdc5d63b388ad923ac35b25a2ca (diff)
tests: py: extend coverage for dnat with classic range representation
Add a few more tests for the classic dnat range representation. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/dnat.t')
-rw-r--r--tests/py/ip/dnat.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/py/ip/dnat.t b/tests/py/ip/dnat.t
index 6587237a..c5ca4c40 100644
--- a/tests/py/ip/dnat.t
+++ b/tests/py/ip/dnat.t
@@ -8,6 +8,9 @@ iifname "eth0" tcp dport {80, 90, 23} dnat to 192.168.3.2;ok
iifname "eth0" tcp dport != {80, 90, 23} dnat to 192.168.3.2;ok
iifname "eth0" tcp dport != 23-34 dnat to 192.168.3.2;ok
iifname "eth0" tcp dport 81 dnat to 192.168.3.2:8080;ok
+iifname "eth0" tcp dport 81 dnat to 192.168.3.2:8080-8999;ok
+iifname "eth0" tcp dport 81 dnat to 192.168.3.2-192.168.3.4:8080;ok
+iifname "eth0" tcp dport 81 dnat to 192.168.3.2-192.168.3.4:8080-8999;ok
dnat to ct mark map { 0x00000014 : 1.2.3.4};ok
dnat to ct mark . ip daddr map { 0x00000014 . 1.1.1.1 : 1.2.3.4};ok