From ebd4a00b74aa99ed25841a235fe79b1462baea7f Mon Sep 17 00:00:00 2001 From: Mart Frauenlob Date: Wed, 10 Apr 2013 06:48:49 +0000 Subject: extensions: libxt_REDIRECT: rename IPv4 manpage and tell about IPv6 support This patch renames libipt_REDIRECT.man to libxt_REDIRECT.man thus informing about the IPv6 version. Also the list of valid protocols for port mapping is updated to: tcp, udp, dccp and sctp. Signed-off-by: Mart Frauenlob Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_REDIRECT.man | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 extensions/libxt_REDIRECT.man (limited to 'extensions/libxt_REDIRECT.man') diff --git a/extensions/libxt_REDIRECT.man b/extensions/libxt_REDIRECT.man new file mode 100644 index 00000000..3400a6df --- /dev/null +++ b/extensions/libxt_REDIRECT.man @@ -0,0 +1,24 @@ +This target is only valid in the +.B nat +table, in the +.B PREROUTING +and +.B OUTPUT +chains, and user-defined chains which are only called from those +chains. It redirects the packet to the machine itself by changing the +destination IP to the primary address of the incoming interface +(locally-generated packets are mapped to the localhost address, +127.0.0.1 for IPv4 and ::1 for IPv6). +.TP +\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP] +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. +.TP +\fB\-\-random\fP +If option +\fB\-\-random\fP +is used then port mapping will be randomized (kernel >= 2.6.22). +.TP +IPv6 support available starting Linux kernels >= 3.7. -- cgit v1.2.3