From 0f27e258b37a592233d6ad5381cd1fae65e57514 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 22 Jul 2021 17:43:56 +0200 Subject: 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 --- tests/py/inet/dnat.t.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/py/inet/dnat.t.json') diff --git a/tests/py/inet/dnat.t.json b/tests/py/inet/dnat.t.json index 1b8aba62..c341a045 100644 --- a/tests/py/inet/dnat.t.json +++ b/tests/py/inet/dnat.t.json @@ -219,3 +219,23 @@ } ] +# meta l4proto tcp dnat to :80 +[ + { + "match": { + "left": { + "meta": { + "key": "l4proto" + } + }, + "op": "==", + "right": 6 + } + }, + { + "dnat": { + "port": 80 + } + } +] + -- cgit v1.2.3