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