diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-15 23:51:10 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-15 23:51:46 +0100 |
commit | bb3c742a726ab7893015cb0c820e1482c17a0602 (patch) | |
tree | 5eb5e8af9f13954b26667695019a0909ff2cef99 /tests/shell/testcases/sets/dumps | |
parent | 9d115ecaa6b7140188f68e0337787991f628f73a (diff) |
tests: shell: extend catchall tests for maps
Add a few tests for the catchall features and maps.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets/dumps')
-rw-r--r-- | tests/shell/testcases/sets/dumps/0064map_catchall_0.nft | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/dumps/0064map_catchall_0.nft b/tests/shell/testcases/sets/dumps/0064map_catchall_0.nft index 286683a0..890ed2aa 100644 --- a/tests/shell/testcases/sets/dumps/0064map_catchall_0.nft +++ b/tests/shell/testcases/sets/dumps/0064map_catchall_0.nft @@ -9,4 +9,10 @@ table ip x { flags interval elements = { 10.141.0.0/24 : 192.168.0.2, * : 192.168.0.3 } } + + chain y { + snat to ip saddr map @z + snat to ip saddr map { 10.141.0.0/24 : 192.168.0.2, * : 192.168.0.3 } + snat to ip saddr . ip daddr map { 10.141.0.0/24 . 10.0.0.0/8 : 192.168.0.2, 192.168.9.0/24 . 192.168.10.0/24 : 192.168.0.4, * : 192.168.0.3 } + } } |