Blame bootstrap_ver/extensions/libxt_DNAT.man

Packit Service dd8e2b
This target is only valid in the
Packit Service dd8e2b
.B nat
Packit Service dd8e2b
table, in the
Packit Service dd8e2b
.B PREROUTING
Packit Service dd8e2b
and
Packit Service dd8e2b
.B OUTPUT
Packit Service dd8e2b
chains, and user-defined chains which are only called from those
Packit Service dd8e2b
chains.  It specifies that the destination address of the packet
Packit Service dd8e2b
should be modified (and all future packets in this connection will
Packit Service dd8e2b
also be mangled), and rules should cease being examined.  It takes the
Packit Service dd8e2b
following options:
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-to\-destination\fP [\fIipaddr\fP[\fB\-\fP\fIipaddr\fP]][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
Packit Service dd8e2b
which can specify a single new destination IP address, an inclusive
Packit Service dd8e2b
range of IP addresses. Optionally a port range,
Packit Service dd8e2b
if the rule also specifies one of the following protocols:
Packit Service dd8e2b
\fBtcp\fP, \fBudp\fP, \fBdccp\fP or \fBsctp\fP.
Packit Service dd8e2b
If no port range is specified, then the destination port will never be
Packit Service dd8e2b
modified. If no IP address is specified then only the destination port
Packit Service dd8e2b
will be modified.
Packit Service dd8e2b
In Kernels up to 2.6.10 you can add several \-\-to\-destination options. For
Packit Service dd8e2b
those kernels, if you specify more than one destination address, either via an
Packit Service dd8e2b
address range or multiple \-\-to\-destination options, a simple round-robin (one
Packit Service dd8e2b
after another in cycle) load balancing takes place between these addresses.
Packit Service dd8e2b
Later Kernels (>= 2.6.11-rc1) don't have the ability to NAT to multiple ranges
Packit Service dd8e2b
anymore.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-random\fP
Packit Service dd8e2b
If option
Packit Service dd8e2b
\fB\-\-random\fP
Packit Service dd8e2b
is used then port mapping will be randomized (kernel >= 2.6.22).
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-persistent\fP
Packit Service dd8e2b
Gives a client the same source-/destination-address for each connection.
Packit Service dd8e2b
This supersedes the SAME target. Support for persistent mappings is available
Packit Service dd8e2b
from 2.6.29-rc2.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
IPv6 support available since Linux kernels >= 3.7.