]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: add initial nat map test
authorFlorian Westphal <fw@strlen.de>
Mon, 24 Feb 2020 00:03:19 +0000 (01:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Feb 2020 09:58:04 +0000 (10:58 +0100)
commit16db2440ae5a5d34590b883eea63a238178d6133
tree7e3bd39256b9a50da1fc9fbfc9798a74e2666528
parent32bc5d4e1009192ed4d2a7d102f3c2abb3f2707c
tests: add initial nat map test

Will be extended to cover upcoming
'dnat to ip saddr . tcp dport map { \
  1.2.3.4 . 80 : 5.6.7.8 : 8080,
  2.2.3.4 . 80 : 7.6.7.8 : 1234,
   ...

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/maps/dumps/nat_addr_port.nft [new file with mode: 0644]
tests/shell/testcases/maps/nat_addr_port [new file with mode: 0755]