From 640dc0c8a3daef65cd93868939b5a2877615f2d5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 14 Jul 2021 12:05:24 +0200 Subject: 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 --- tests/py/ip/dnat.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/py/ip/dnat.t') 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 -- cgit v1.2.3