summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_DNAT.t
diff options
context:
space:
mode:
authorThierry Du Tre <thierry@dtsystems.be>2018-05-07 22:31:31 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-08 14:25:06 +0200
commitf4ffda1e7dea60724a9c522787226eb1d3c59f7c (patch)
tree8b117d783e663469181ba230463e23652e75384f /extensions/libip6t_DNAT.t
parent6a9ffb114ac67cf3c23ab5969153f9213492a07f (diff)
extensions: libipt_DNAT: tests added for shifted portmap range
I added and verified these tests after applying Florian's fixed wrt. nf_nat_range2 size for rev2. Signed-off-by: Thierry Du Tre <thierry@dtsystems.be> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_DNAT.t')
-rw-r--r--extensions/libip6t_DNAT.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libip6t_DNAT.t b/extensions/libip6t_DNAT.t
index 6d8f1dab..ec7d61f4 100644
--- a/extensions/libip6t_DNAT.t
+++ b/extensions/libip6t_DNAT.t
@@ -8,4 +8,9 @@
-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1025-65535;=;OK
-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1025-65536;;FAIL
-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1025-65535 --to-destination [dead::beef-dead::fee8]:1025-65535;;FAIL
+-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1000-2000/1000;=;OK
+-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1000-2000/3000;=;OK
+-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1000-2000/65535;=;OK
+-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1000-2000/0;;FAIL
+-p tcp -j DNAT --to-destination [dead::beef-dead::fee7]:1000-2000/65536;;FAIL
-j DNAT;;FAIL