diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-07-22 17:43:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-07-22 17:45:31 +0200 |
commit | 0f27e258b37a592233d6ad5381cd1fae65e57514 (patch) | |
tree | 3b9981dea0dfa6c544365905852165cfac96d063 /tests/py/inet/dnat.t.json | |
parent | cd1693915ca47acc2f6ca9c63db9be2da4206bf2 (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.json')
-rw-r--r-- | tests/py/inet/dnat.t.json | 20 |
1 files changed, 20 insertions, 0 deletions
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 + } + } +] + |