Blame bootstrap_ver/extensions/libxt_CONNMARK.man

Packit Service dd8e2b
This module sets the netfilter mark value associated with a connection. The
Packit Service dd8e2b
mark is 32 bits wide.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-set\-xmark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
Packit Service dd8e2b
Zero out the bits given by \fImask\fP and XOR \fIvalue\fP into the ctmark.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-save\-mark\fP [\fB\-\-nfmask\fP \fInfmask\fP] [\fB\-\-ctmask\fP \fIctmask\fP]
Packit Service dd8e2b
Copy the packet mark (nfmark) to the connection mark (ctmark) using the given
Packit Service dd8e2b
masks. The new nfmark value is determined as follows:
Packit Service dd8e2b
.IP
Packit Service dd8e2b
ctmark = (ctmark & ~ctmask) ^ (nfmark & nfmask)
Packit Service dd8e2b
.IP
Packit Service dd8e2b
i.e. \fIctmask\fP defines what bits to clear and \fInfmask\fP what bits of the
Packit Service dd8e2b
nfmark to XOR into the ctmark. \fIctmask\fP and \fInfmask\fP default to
Packit Service dd8e2b
0xFFFFFFFF.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-restore\-mark\fP [\fB\-\-nfmask\fP \fInfmask\fP] [\fB\-\-ctmask\fP \fIctmask\fP]
Packit Service dd8e2b
Copy the connection mark (ctmark) to the packet mark (nfmark) using the given
Packit Service dd8e2b
masks. The new ctmark value is determined as follows:
Packit Service dd8e2b
.IP
Packit Service dd8e2b
nfmark = (nfmark & ~\fInfmask\fP) ^ (ctmark & \fIctmask\fP);
Packit Service dd8e2b
.IP
Packit Service dd8e2b
i.e. \fInfmask\fP defines what bits to clear and \fIctmask\fP what bits of the
Packit Service dd8e2b
ctmark to XOR into the nfmark. \fIctmask\fP and \fInfmask\fP default to
Packit Service dd8e2b
0xFFFFFFFF.
Packit Service dd8e2b
.IP
Packit Service dd8e2b
\fB\-\-restore\-mark\fP is only valid in the \fBmangle\fP table.
Packit Service dd8e2b
.PP
Packit Service dd8e2b
The following mnemonics are available for \fB\-\-set\-xmark\fP:
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-and\-mark\fP \fIbits\fP
Packit Service dd8e2b
Binary AND the ctmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark
Packit Service dd8e2b
0/\fP\fIinvbits\fP, where \fIinvbits\fP is the binary negation of \fIbits\fP.)
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-or\-mark\fP \fIbits\fP
Packit Service dd8e2b
Binary OR the ctmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark\fP
Packit Service dd8e2b
\fIbits\fP\fB/\fP\fIbits\fP.)
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-xor\-mark\fP \fIbits\fP
Packit Service dd8e2b
Binary XOR the ctmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark\fP
Packit Service dd8e2b
\fIbits\fP\fB/0\fP.)
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-set\-mark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
Packit Service dd8e2b
Set the connection mark. If a mask is specified then only those bits set in the
Packit Service dd8e2b
mask are modified.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-save\-mark\fP [\fB\-\-mask\fP \fImask\fP]
Packit Service dd8e2b
Copy the nfmark to the ctmark. If a mask is specified, only those bits are
Packit Service dd8e2b
copied.
Packit Service dd8e2b
.TP
Packit Service dd8e2b
\fB\-\-restore\-mark\fP [\fB\-\-mask\fP \fImask\fP]
Packit Service dd8e2b
Copy the ctmark to the nfmark. If a mask is specified, only those bits are
Packit Service dd8e2b
copied. This is only valid in the \fBmangle\fP table.