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_REDIRECT.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_REDIRECT.t')
-rw-r--r-- | extensions/libipt_REDIRECT.t | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extensions/libipt_REDIRECT.t b/extensions/libipt_REDIRECT.t deleted file mode 100644 index a0fb0ed1..00000000 --- a/extensions/libipt_REDIRECT.t +++ /dev/null @@ -1,6 +0,0 @@ -:PREROUTING,OUTPUT -*nat --p tcp -j REDIRECT --to-ports 42;=;OK --p udp -j REDIRECT --to-ports 42-1234;=;OK --p tcp -j REDIRECT --to-ports 42-1234 --random;=;OK --j REDIRECT --to-ports 42;;FAIL |