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