libxt_set.man revision c6775d6c192f7e337360f238cc3ab224a406d5b8
1This module matches IP sets which can be defined by ipset(8).
2.TP
3[\fB!\fP] \fB\-\-match\-set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
4where flags are the comma separated list of
5.BR "src"
6and/or
7.BR "dst" 
8specifications and there can be no more than six of them. Hence the command
9.IP
10 iptables \-A FORWARD \-m set \-\-match\-set test src,dst
11.IP
12will match packets, for which (if the set type is ipportmap) the source
13address and destination port pair can be found in the specified set. If
14the set type of the specified set is single dimension (for example ipmap),
15then the command will match packets for which the source address can be
16found in the specified set. 
17.PP
18The option \fB\-\-match\-set\fP can be replaced by \fB\-\-set\fP if that does 
19not clash with an option of other extensions.
20.PP
21Use of -m set requires that ipset kernel support is provided. As standard
22kernels do not ship this currently, the ipset or Xtables-addons package needs
23to be installed.
24