]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: man: Document service name support in DNAT and REDIRECT
authorPhil Sutter <phil@nwl.cc>
Thu, 31 Mar 2022 00:22:08 +0000 (02:22 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 8 Apr 2022 16:00:42 +0000 (18:00 +0200)
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>
extensions/libxt_DNAT.man
extensions/libxt_REDIRECT.man

index e044c8216fc09ed723e419e99bf0de9d7cdca105..12d334af5a47957008772ee12029b6dd699fd4cb 100644 (file)
@@ -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
index 28d4d10b79046e6a0e22da69cee878f40ce5b61a..10305597f87a3641759947effedd5bf6bda9e50c 100644 (file)
@@ -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