diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-17 14:42:51 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-04-08 18:00:42 +0200 |
commit | 72d542b69ae2f780d9c9307231dcc3a2e3bed3b7 (patch) | |
tree | 2c12162c84a5dde3818852cf19c95f651abfe63e /extensions/libipt_DNAT.t | |
parent | 14d77c8aa29a7b361d7830e40a7f75a05b29f717 (diff) |
extensions: Merge REDIRECT into DNAT
Code is very similar, join them to reuse parsing code at least.
As a side-effect, this enables parsing of service names for ports in
DNAT as well as using port number 0 as that's what REDIRECT allows.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libipt_DNAT.t')
-rw-r--r-- | extensions/libipt_DNAT.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/libipt_DNAT.t b/extensions/libipt_DNAT.t index 1c4413b9..9007572a 100644 --- a/extensions/libipt_DNAT.t +++ b/extensions/libipt_DNAT.t @@ -13,4 +13,8 @@ -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 +-p tcp -j DNAT --to-destination 1.1.1.1:ssh;-p tcp -j DNAT --to-destination 1.1.1.1:22;OK +-p tcp -j DNAT --to-destination 1.1.1.1:ftp-data;-p tcp -j DNAT --to-destination 1.1.1.1:20;OK +-p tcp -j DNAT --to-destination 1.1.1.1:echo-ssh;;FAIL +-p tcp -j DNAT --to-destination 1.1.1.1:10-20/ftp;-p tcp -j DNAT --to-destination 1.1.1.1:10-20/21;OK -j DNAT;;FAIL |