diff options
author | Florian Westphal <fw@strlen.de> | 2022-07-06 23:49:21 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-07-07 00:31:29 +0200 |
commit | 45c097c60b3a5a2151fad976a0006048afce869a (patch) | |
tree | a148099f1094e838c7163eea83af0e280d9da180 /tests/shell/testcases/sets/0046netmap_0 | |
parent | 6c23bfa512187d509ecc188653a6f232b0695d1d (diff) |
scanner: allow prefix in ip6 scope
'ip6 prefix' is valid syntax, so make sure scanner recognizes it
also in ip6 context.
Also add test case.
Fixes: a67fce7ffe7e ("scanner: nat: Move to own scope")
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1619
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets/0046netmap_0')
-rwxr-xr-x | tests/shell/testcases/sets/0046netmap_0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0046netmap_0 b/tests/shell/testcases/sets/0046netmap_0 index 2804a4a2..60bda401 100755 --- a/tests/shell/testcases/sets/0046netmap_0 +++ b/tests/shell/testcases/sets/0046netmap_0 @@ -8,6 +8,12 @@ EXPECTED="table ip x { 10.141.13.0/24 : 192.168.4.0/24 } } } + table ip6 x { + chain y { + type nat hook postrouting priority srcnat; policy accept; + snat ip6 prefix to ip6 saddr map { 2001:db8:1111::/64 : 2001:db8:2222::/64 } + } + } " set -e |