From 18c96821b5901ac5c66dcbc5f299bd07ef5569ef Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 31 Mar 2022 02:22:08 +0200 Subject: 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 --- extensions/libxt_DNAT.man | 2 ++ extensions/libxt_REDIRECT.man | 1 + 2 files changed, 3 insertions(+) (limited to 'extensions') 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 -- cgit v1.2.3