summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-03-31 02:22:08 +0200
committerPhil Sutter <phil@nwl.cc>2022-04-08 18:00:42 +0200
commit18c96821b5901ac5c66dcbc5f299bd07ef5569ef (patch)
tree85a88dd6a0de31c523635bc7ba8e7950041a8e47
parent72d542b69ae2f780d9c9307231dcc3a2e3bed3b7 (diff)
extensions: man: Document service name support in DNAT and REDIRECT
Unless as part of a range, service names may be used. Point this out to avoid confusion. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--extensions/libxt_DNAT.man2
-rw-r--r--extensions/libxt_REDIRECT.man1
2 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libxt_DNAT.man b/extensions/libxt_DNAT.man
index e044c821..12d334af 100644
--- a/extensions/libxt_DNAT.man
+++ b/extensions/libxt_DNAT.man
@@ -21,6 +21,8 @@ will be modified.
If \fBbaseport\fP is given, the difference of the original destination port and
its value is used as offset into the mapping port range. This allows to create
shifted portmap ranges and is available since kernel version 4.18.
+For a single port or \fIbaseport\fP, a service name as listed in
+\fB/etc/services\fP may be used.
.TP
\fB\-\-random\fP
If option
diff --git a/extensions/libxt_REDIRECT.man b/extensions/libxt_REDIRECT.man
index 28d4d10b..10305597 100644
--- a/extensions/libxt_REDIRECT.man
+++ b/extensions/libxt_REDIRECT.man
@@ -16,6 +16,7 @@ This specifies a destination port or range of ports to use: without
this, the destination port is never altered. This is only valid
if the rule also specifies one of the following protocols:
\fBtcp\fP, \fBudp\fP, \fBdccp\fP or \fBsctp\fP.
+For a single port, a service name as listed in \fB/etc/services\fP may be used.
.TP
\fB\-\-random\fP
If option