Blame extensions/libxt_REDIRECT.man

Packit 7b22a4
This target is only valid in the
Packit 7b22a4
.B nat
Packit 7b22a4
table, in the
Packit 7b22a4
.B PREROUTING
Packit 7b22a4
and
Packit 7b22a4
.B OUTPUT
Packit 7b22a4
chains, and user-defined chains which are only called from those
Packit 7b22a4
chains.  It redirects the packet to the machine itself by changing the
Packit 7b22a4
destination IP to the primary address of the incoming interface
Packit 7b22a4
(locally-generated packets are mapped to the localhost address,
Packit 7b22a4
127.0.0.1 for IPv4 and ::1 for IPv6, and packets arriving on
Packit 7b22a4
interfaces that don't have an IP address configured are dropped).
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
Packit 7b22a4
This specifies a destination port or range of ports to use: without
Packit 7b22a4
this, the destination port is never altered.  This is only valid
Packit 7b22a4
if the rule also specifies one of the following protocols:
Packit 7b22a4
\fBtcp\fP, \fBudp\fP, \fBdccp\fP or \fBsctp\fP.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-random\fP
Packit 7b22a4
If option
Packit 7b22a4
\fB\-\-random\fP
Packit 7b22a4
is used then port mapping will be randomized (kernel >= 2.6.22).
Packit 7b22a4
.TP
Packit 7b22a4
IPv6 support available starting Linux kernels >= 3.7.