Home | History | Annotate | Download | only in extensions
      1 This target is only valid in the
      2 .B nat
      3 table, in the
      4 .B PREROUTING
      5 and
      6 .B OUTPUT
      7 chains, and user-defined chains which are only called from those
      8 chains.  It redirects the packet to the machine itself by changing the
      9 destination IP to the primary address of the incoming interface
     10 (locally-generated packets are mapped to the 127.0.0.1 address).
     11 .TP
     12 \fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
     13 This specifies a destination port or range of ports to use: without
     14 this, the destination port is never altered.  This is only valid
     15 if the rule also specifies
     16 \fB\-p tcp\fP
     17 or
     18 \fB\-p udp\fP.
     19 .TP
     20 \fB\-\-random\fP
     21 If option
     22 \fB\-\-random\fP
     23 is used then port mapping will be randomized (kernel >= 2.6.22).
     24 .RS
     25 .PP
     26