From: Phil Sutter Date: Thu, 31 Mar 2022 00:22:08 +0000 (+0200) Subject: extensions: man: Document service name support in DNAT and REDIRECT X-Git-Tag: v1.8.8~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18c96821b5901ac5c66dcbc5f299bd07ef5569ef;p=thirdparty%2Fiptables.git 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 --- 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