libxt_set.man 1.2 KB

12345678910111213141516171819202122232425262728
  1. This 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]...
  4. where flags are the comma separated list of
  5. .BR "src"
  6. and/or
  7. .BR "dst"
  8. specifications 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
  12. will match packets, for which (if the set type is ipportmap) the source
  13. address and destination port pair can be found in the specified set. If
  14. the set type of the specified set is single dimension (for example ipmap),
  15. then the command will match packets for which the source address can be
  16. found in the specified set.
  17. .TP
  18. \fB\-\-return\-\-nomatch\fP
  19. If the \fB\-\-return\-\-nomatch\fP option is specified and the set type
  20. supports the \fBnomatch\fP flag, then the matching is reversed: a match
  21. with an element flagged with \fBnomatch\fP returns \fBtrue\fP, while a
  22. match with a plain element returns \fBfalse\fP.
  23. .PP
  24. The option \fB\-\-match\-set\fP can be replaced by \fB\-\-set\fP if that does
  25. not clash with an option of other extensions.
  26. .PP
  27. Use of -m set requires that ipset kernel support is provided, which, for
  28. standard kernels, is the case since Linux 2.6.39.