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@xxxxxxxxxxxx> --- extensions/libip6t_DNAT.t | 5 +++++ extensions/libipt_DNAT.t | 5 +++++ 2 files changed, 10 insertions(+) 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 diff --git a/extensions/libipt_DNAT.t b/extensions/libipt_DNAT.t index 1959801d..1c4413b9 100644 --- a/extensions/libipt_DNAT.t +++ b/extensions/libipt_DNAT.t @@ -8,4 +8,9 @@ -p tcp -j DNAT --to-destination 1.1.1.1-1.1.1.10:1025-65535;=;OK -p tcp -j DNAT --to-destination 1.1.1.1-1.1.1.10:1025-65536;;FAIL -p tcp -j DNAT --to-destination 1.1.1.1-1.1.1.10:1025-65535 --to-destination 2.2.2.2-2.2.2.20:1025-65535;;FAIL +-p tcp -j DNAT --to-destination 1.1.1.1:1000-2000/1000;=;OK +-p tcp -j DNAT --to-destination 1.1.1.1:1000-2000/3000;=;OK +-p tcp -j DNAT --to-destination 1.1.1.1:1000-2000/65535;=;OK +-p tcp -j DNAT --to-destination 1.1.1.1:1000-2000/0;;FAIL +-p tcp -j DNAT --to-destination 1.1.1.1:1000-2000/65536;;FAIL -j DNAT;;FAIL -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html