libxt_MARK.man revision c9be7f153f7bf112640057a0cb6108b686041029
1This target is used to set the Netfilter mark value associated with the packet.
2It can, for example, be used in conjunction with routing based on fwmark (needs
3iproute2). If you plan on doing so, note that the mark needs to be set in the
4PREROUTING chain of the mangle table to affect routing.
5The mark field is 32 bits wide.
6.TP
7\fB\-\-set\-xmark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
8Zeroes out the bits given by \fImask\fR and XORs \fIvalue\fR into the packet
9mark ("nfmark"). If \fImask\fR is omitted, 0xFFFFFFFF is assumed.
10.TP
11\fB\-\-set\-mark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
12Zeroes out the bits given by \fImask\fR and ORs \fIvalue\fR into the packet
13mark. If \fImask\fR is omitted, 0xFFFFFFFF is assumed.
14.PP
15The following mnemonics are available:
16.TP
17\fB\-\-and\-mark\fP \fIbits\fP
18Binary AND the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark
190/\fR\fIinvbits\fR, where \fIinvbits\fR is the binary negation of \fIbits\fR.)
20.TP
21\fB\-\-or\-mark\fP \fIbits\fP
22Binary OR the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark\fP
23\fIbits\fR\fB/\fR\fIbits\fR.)
24.TP
25\fB\-\-xor\-mark\fP \fIbits\fP
26Binary XOR the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark\fP
27\fIbits\fR\fB/0\fR.)
28