Blame extensions/libxt_DNAT.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 specifies that the destination address of the packet
Packit Service d1fe03
should be modified (and all future packets in this connection will
Packit Service d1fe03
also be mangled), and rules should cease being examined.  It takes the
Packit Service d1fe03
following options:
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-to\-destination\fP [\fIipaddr\fP[\fB\-\fP\fIipaddr\fP]][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
Packit Service d1fe03
which can specify a single new destination IP address, an inclusive
Packit Service d1fe03
range of IP addresses. Optionally a port range,
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
If no port range is specified, then the destination port will never be
Packit Service d1fe03
modified. If no IP address is specified then only the destination port
Packit Service d1fe03
will be modified.
Packit Service d1fe03
In Kernels up to 2.6.10 you can add several \-\-to\-destination options. For
Packit Service d1fe03
those kernels, if you specify more than one destination address, either via an
Packit Service d1fe03
address range or multiple \-\-to\-destination options, a simple round-robin (one
Packit Service d1fe03
after another in cycle) load balancing takes place between these addresses.
Packit Service d1fe03
Later Kernels (>= 2.6.11-rc1) don't have the ability to NAT to multiple ranges
Packit Service d1fe03
anymore.
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
\fB\-\-persistent\fP
Packit Service d1fe03
Gives a client the same source-/destination-address for each connection.
Packit Service d1fe03
This supersedes the SAME target. Support for persistent mappings is available
Packit Service d1fe03
from 2.6.29-rc2.
Packit Service d1fe03
.TP
Packit Service d1fe03
IPv6 support available since Linux kernels >= 3.7.