Blame extensions/libxt_connlabel.man

Packit Service d1fe03
Module matches or adds connlabels to a connection.
Packit Service d1fe03
connlabels are similar to connmarks, except labels are bit-based; i.e.
Packit Service d1fe03
all labels may be attached to a flow at the same time.
Packit Service d1fe03
Up to 128 unique labels are currently supported.
Packit Service d1fe03
.TP
Packit Service d1fe03
[\fB!\fP] \fB\-\-label\fP \fBname\fP
Packit Service d1fe03
matches if label \fBname\fP has been set on a connection.
Packit Service d1fe03
Instead of a name (which will be translated to a number, see EXAMPLE below),
Packit Service d1fe03
a number may be used instead.  Using a number always overrides connlabel.conf.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-set\fP
Packit Service d1fe03
if the label has not been set on the connection, set it.
Packit Service d1fe03
Note that setting a label can fail.  This is because the kernel allocates the
Packit Service d1fe03
conntrack label storage area when the connection is created, and it only
Packit Service d1fe03
reserves the amount of memory required by the ruleset that exists at
Packit Service d1fe03
the time the connection is created.
Packit Service d1fe03
In this case, the match will fail (or succeed, in case \fB\-\-label\fP
Packit Service d1fe03
option was negated).
Packit Service d1fe03
.PP
Packit Service d1fe03
This match depends on libnetfilter_conntrack 1.0.4 or later.
Packit Service d1fe03
Label translation is done via the \fB/etc/xtables/connlabel.conf\fP configuration file.
Packit Service d1fe03
.PP
Packit Service d1fe03
Example:
Packit Service d1fe03
.IP
Packit Service d1fe03
.nf
Packit Service d1fe03
0	eth0-in
Packit Service d1fe03
1	eth0-out
Packit Service d1fe03
2	ppp-in
Packit Service d1fe03
3	ppp-out
Packit Service d1fe03
4	bulk-traffic
Packit Service d1fe03
5	interactive
Packit Service d1fe03
.fi
Packit Service d1fe03
.PP