Blame bootstrap_ver/extensions/libxt_MASQUERADE.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 POSTROUTING
Packit Service fa126c
chain.  It should only be used with dynamically assigned IP (dialup)
Packit Service fa126c
connections: if you have a static IP address, you should use the SNAT
Packit Service fa126c
target.  Masquerading is equivalent to specifying a mapping to the IP
Packit Service fa126c
address of the interface the packet is going out, but also has the
Packit Service fa126c
effect that connections are
Packit Service fa126c
.I forgotten
Packit Service fa126c
when the interface goes down.  This is the correct behavior when the
Packit Service fa126c
next dialup is unlikely to have the same interface address (and hence
Packit Service fa126c
any established connections are lost anyway).
Packit Service fa126c
.TP
Packit Service fa126c
\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
Packit Service fa126c
This specifies a range of source ports to use, overriding the default
Packit Service fa126c
.B SNAT
Packit Service fa126c
source port-selection heuristics (see above).  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
Randomize source port mapping
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.21).
Packit Service fa126c
.TP
Packit Service fa126c
\fB\-\-random-fully\fP
Packit Service fa126c
Full randomize source port mapping
Packit Service fa126c
If option
Packit Service fa126c
\fB\-\-random-fully\fP
Packit Service fa126c
is used then port mapping will be fully randomized (kernel >= 3.13).
Packit Service fa126c
.TP
Packit Service fa126c
IPv6 support available since Linux kernels >= 3.7.