diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-04-29 14:11:13 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-04-30 14:01:30 +0200 |
commit | ee4391d0ac1e7af57e4c707be81e83fc59002272 (patch) | |
tree | d199956dbe66fd6e4cc73cc101cff68785b62f15 /tests | |
parent | 12467ee9379ee16cf0e9a943ded8054710097134 (diff) |
nat: transform range to prefix expression when possible
This patch transform a range of IP addresses to prefix when listing the
ruleset.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/ip6/dnat.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip6/dnat.t b/tests/py/ip6/dnat.t index db5fde58..28bd7ef9 100644 --- a/tests/py/ip6/dnat.t +++ b/tests/py/ip6/dnat.t @@ -5,5 +5,5 @@ tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:80-100;ok tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:100;ok;tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:100 tcp dport 80-90 dnat to [2001:838:35f:1::]:80;ok -dnat to [2001:838:35f:1::]/64;ok;dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff -dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff;ok +dnat to [2001:838:35f:1::]/64;ok;dnat to 2001:838:35f:1::/64 +dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff;ok;dnat to 2001:838:35f:1::/64 |