• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This modules macthes IP sets which can be defined by ipset(8).
2.TP
3.BR "--set " "setname flag[,flag...]"
4where 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
10 iptables -A FORWARD -m set --set test src,dst
11.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.
18