summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/dnat.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-07-22 17:43:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-07-22 17:45:31 +0200
commit0f27e258b37a592233d6ad5381cd1fae65e57514 (patch)
tree3b9981dea0dfa6c544365905852165cfac96d063 /tests/py/inet/dnat.t
parentcd1693915ca47acc2f6ca9c63db9be2da4206bf2 (diff)
tests: py: add dnat to port without defining destination address
Add a test to cover dnat to port without destination address. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1428 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/dnat.t')
-rw-r--r--tests/py/inet/dnat.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/inet/dnat.t b/tests/py/inet/dnat.t
index b460af39..e4e169f2 100644
--- a/tests/py/inet/dnat.t
+++ b/tests/py/inet/dnat.t
@@ -6,6 +6,7 @@ iifname "foo" tcp dport 80 redirect to :8080;ok
iifname "eth0" tcp dport 443 dnat ip to 192.168.3.2;ok
iifname "eth0" tcp dport 443 dnat ip6 to [dead::beef]:4443;ok
+meta l4proto tcp dnat to :80;ok;meta l4proto 6 dnat to :80
dnat ip to ct mark map { 0x00000014 : 1.2.3.4};ok
dnat ip to ct mark . ip daddr map { 0x00000014 . 1.1.1.1 : 1.2.3.4};ok