blob: 2f7d82dca34b56a222971cb164115291b66e44ae [file] [log] [blame]
Jan Engelhardtc6775d62010-07-23 21:23:05 +02001This target is only valid in the \fBmangle\fP table, in the \fBPREROUTING\fP
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +02002chain and user-defined chains which are only called from this chain. It
3redirects the packet to a local socket without changing the packet header in
4any way. It can also change the mark value which can then be used in advanced
5routing rules.
6It takes three options:
7.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01008\fB\-\-on\-port\fP \fIport\fP
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +02009This specifies a destination port to use. It is a required option, 0 means the
10new destination port is the same as the original. This is only valid if the
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010011rule also specifies \fB\-p tcp\fP or \fB\-p udp\fP.
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +020012.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010013\fB\-\-on\-ip\fP \fIaddress\fP
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +020014This specifies a destination address to use. By default the address is the IP
15address of the incoming interface. This is only valid if the rule also
Jan Engelhardt18c475d2009-06-10 20:18:43 +020016specifies \fB\-p tcp\fP or \fB\-p udp\fP.
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +020017.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010018\fB\-\-tproxy\-mark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
KOVACS Krisztian92b54aa2008-10-15 11:49:37 +020019Marks packets with the given value/mask. The fwmark value set here can be used
20by advanced routing. (Required for transparent proxying to work: otherwise
21these packets will get forwarded, which is probably not what you want.)