blob: 01b115f0c5e16093ba1607461a0d8aa522fedf85 [file] [log] [blame]
Patrick McHardycdff3082009-08-24 14:18:27 +02001This module matches IP sets which can be defined by ipset(8).
Joszef Kadlecsikb9a49382004-12-01 09:11:33 +00002.TP
Jozsef Kadlecsik2d280012009-06-11 12:27:09 +02003[\fB!\fP] \fB\-\-match\-set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
4where flags are the comma separated list of
Joszef Kadlecsikb9a49382004-12-01 09:11:33 +00005.BR "src"
6and/or
7.BR "dst"
Jozsef Kadlecsik2d280012009-06-11 12:27:09 +02008specifications 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
Jan Engelhardtc6775d62010-07-23 21:23:05 +020018The option \fB\-\-match\-set\fP can be replaced by \fB\-\-set\fP if that does
Jozsef Kadlecsik2d280012009-06-11 12:27:09 +020019not clash with an option of other extensions.
Jan Engelhardtcd46b142010-01-19 18:47:43 +010020.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.