Blame extensions/libxt_set.man

Packit Service d1fe03
This module matches IP sets which can be defined by ipset(8).
Packit Service d1fe03
.TP
Packit Service d1fe03
[\fB!\fP] \fB\-\-match\-set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
Packit Service d1fe03
where flags are the comma separated list of
Packit Service d1fe03
.BR "src"
Packit Service d1fe03
and/or
Packit Service d1fe03
.BR "dst" 
Packit Service d1fe03
specifications and there can be no more than six of them. Hence the command
Packit Service d1fe03
.IP
Packit Service d1fe03
 iptables \-A FORWARD \-m set \-\-match\-set test src,dst
Packit Service d1fe03
.IP
Packit Service d1fe03
will match packets, for which (if the set type is ipportmap) the source
Packit Service d1fe03
address and destination port pair can be found in the specified set. If
Packit Service d1fe03
the set type of the specified set is single dimension (for example ipmap),
Packit Service d1fe03
then the command will match packets for which the source address can be
Packit Service d1fe03
found in the specified set. 
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-return\-nomatch\fP
Packit Service d1fe03
If the \fB\-\-return\-nomatch\fP option is specified and the set type
Packit Service d1fe03
supports the \fBnomatch\fP flag, then the matching is reversed: a match
Packit Service d1fe03
with an element flagged with \fBnomatch\fP returns \fBtrue\fP, while a
Packit Service d1fe03
match with a plain element returns \fBfalse\fP.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB!\fP \fB\-\-update\-counters\fP
Packit Service d1fe03
If the \fB\-\-update\-counters\fP flag is negated, then the packet and
Packit Service d1fe03
byte counters of the matching element in the set won't be updated. Default
Packit Service d1fe03
the packet and byte counters are updated.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB!\fP \fB\-\-update\-subcounters\fP
Packit Service d1fe03
If the \fB\-\-update\-subcounters\fP flag is negated, then the packet and
Packit Service d1fe03
byte counters of the matching element in the member set of a list type of
Packit Service d1fe03
set won't be updated. Default the packet and byte counters are updated.
Packit Service d1fe03
.TP
Packit Service d1fe03
[\fB!\fP] \fB\-\-packets\-eq\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
packet counter of the element matches the given value too.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-packets\-lt\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
packet counter of the element is less than the given value as well.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-packets\-gt\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
packet counter of the element is greater than the given value as well.
Packit Service d1fe03
.TP
Packit Service d1fe03
[\fB!\fP] \fB\-\-bytes\-eq\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
byte counter of the element matches the given value too.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-bytes\-lt\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
byte counter of the element is less than the given value as well.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-bytes\-gt\fP \fIvalue\fP
Packit Service d1fe03
If the packet is matched an element in the set, match only if the
Packit Service d1fe03
byte counter of the element is greater than the given value as well.
Packit Service d1fe03
.PP
Packit Service d1fe03
The packet and byte counters related options and flags are ignored
Packit Service d1fe03
when the set was defined without counter support.
Packit Service d1fe03
.PP
Packit Service d1fe03
The option \fB\-\-match\-set\fP can be replaced by \fB\-\-set\fP if that does 
Packit Service d1fe03
not clash with an option of other extensions.
Packit Service d1fe03
.PP
Packit Service d1fe03
Use of -m set requires that ipset kernel support is provided, which, for
Packit Service d1fe03
standard kernels, is the case since Linux 2.6.39.