blob: a99dc73f6cf4eab7a2b6d477addf4892a83b4544 [file] [log] [blame]
Jonas Berlinf33c4612005-04-01 06:54:23 +00001Similar to SNAT/DNAT depending on chain: it takes a range of addresses
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01002(`\-\-to 1.2.3.4\-1.2.3.7') and gives a client the same
Jonas Berlinf33c4612005-04-01 06:54:23 +00003source-/destination-address for each connection.
Jan Engelhardt6d7d91e2009-06-08 15:46:19 +02004.PP
5N.B.: The DNAT target's \fB\-\-persistent\fP option replaced the SAME target.
Jonas Berlinf33c4612005-04-01 06:54:23 +00006.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01007\fB\-\-to\fP \fIipaddr\fP[\fB\-\fP\fIipaddr\fP]
Jonas Berlinf33c4612005-04-01 06:54:23 +00008Addresses to map source to. May be specified more than once for
9multiple ranges.
10.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010011\fB\-\-nodst\fP
Jonas Berlinf33c4612005-04-01 06:54:23 +000012Don't use the destination-ip in the calculations when selecting the
13new source-ip
Eric Leblondae4b0b32007-02-24 15:11:33 +000014.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010015\fB\-\-random\fP
Jan Engelhardt6cf172e2008-03-10 17:48:59 +010016Port mapping will be forcibly randomized to avoid attacks based on
Eric Leblondae4b0b32007-02-24 15:11:33 +000017port prediction (kernel >= 2.6.21).