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