blob: 0df73c12209f5708ecbbdd0cf12522c4fd01c27d [file] [log] [blame]
Joszef Kadlecsikb9a49382004-12-01 09:11:33 +00001This modules macthes IP sets which can be defined by ipset(8).
2.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01003[\fB!\fP] \fB\-\-set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
Joszef Kadlecsikb9a49382004-12-01 09:11:33 +00004where flags are
5.BR "src"
6and/or
7.BR "dst"
8and there can be no more than six of them. Hence the command
9.nf
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010010 iptables \-A FORWARD \-m set \-\-set test src,dst
Joszef Kadlecsikb9a49382004-12-01 09:11:33 +000011.fi
12will match packets, for which (depending on the type of the set) the source
13address or port number of the packet can be found in the specified set. If
14there is a binding belonging to the mached set element or there is a default
15binding for the given set, then the rule will match the packet only if
16additionally (depending on the type of the set) the destination address or
17port number of the packet can be found in the set according to the binding.