Man page - shorewall-ipsets(5)
Packages contas this manual
- shorewall-tcinterfaces(5)
- shorewall-proxyndp(5)
- shorewall-blrules(5)
- shorewall-nesting(5)
- shorewall-files(5)
- shorewall-tcfilters(5)
- shorewall-stoppedrules(5)
- shorewall-actions(5)
- shorewall-routes(5)
- shorewall-logging(5)
- shorewall-names(5)
- shorewall-interfaces(5)
- shorewall-rtrules(5)
- shorewall-arprules(5)
- shorewall-params(5)
- shorewall-proxyarp(5)
- shorewall-addresses(5)
- shorewall-maclist(5)
- shorewall-tcpri(5)
- shorewall-nat(5)
- shorewall-ipsets(5)
- shorewall-zones(5)
- shorewall-providers(5)
- shorewall-vardir(5)
- shorewall-accounting(5)
- shorewall-policy(5)
- shorewall-tcdevices(5)
- shorewall-rules(5)
- shorewall-tunnels(5)
- shorewall-conntrack(5)
- shorewall-exclusion(5)
- shorewall-ecn(5)
- shorewall-modules(5)
- shorewall-snat(5)
- shorewall-tcclasses(5)
- shorewall-mangle(5)
- shorewall-secmarks(5)
- shorewall-netmap(5)
- shorewall.conf(5)
- shorewall-init(8)
- shorewall-hosts(5)
apt-get install shorewall
Manual
| SHOREWALL-IPSETS(5) | Configuration Files | SHOREWALL-IPSETS(5) |
NAME
ipsets - Specifying the name if an ipset in Shorewall configuration files
SYNOPSIS
+ipsetname
+ipsetname[flag,...]
+[ipsetname,...]
DESCRIPTION
Note: In the above syntax descriptions, the square brackets ("[]") are to be taken literally rather than as meta-characters.
In most places where a network address may be entered, an ipset may be substituted. Set names must be prefixed by the character "+", must start with a letter and may be composed of alphanumeric characters, "-" and "_".
Whether the set is matched against the packet source or destination is determined by which column the set name appears (SOURCE or DEST). For those set types that specify a tuple, two alternative syntaxes are available:
'dst' should be repeated number times.
Example: myset[2].
flag is src or
dst. Example: myset[src,dst].
In a SOURCE or SPORT column, the following pairs are equivalent:
In a DEST or DPORT column, the following pairs are equivalent:
Beginning with Shorewall 4.4.14, multiple source or destination matches may be specified by enclosing the set names within +[...]. The set names need not be prefixed with '+'. When such a list of sets is specified, matching packets must match all of the listed sets.
For information about set lists and exclusion, see shorewall-exclusion[1] (5).
Beginning with Shorewall 4.5.16, you can increment one or more nfacct objects each time a packet matches an ipset. You do that by listing the objects separated by commas within parentheses.
Example:
In that example, when the source address of a packet matches the myset ipset, the myobject nfacct counter will be incremented.
Beginning with Shorewall 4.6.0, an ipset name (and src/dst list, if any) can be immediately be followed by a list of match options.
Important
These additional match options are not available in shorewall-tcfilters(5)[2].
Available options are:
nomatch
no-update-counters
no-update-subcounters
packets=value
packets<value
packets>value
packets!=value
bytes=value
bytes<value
bytes>value
bytes<>value
EXAMPLES
In the examples that follow, myset, myset1 and myset2 are ipsets and myObject is an NFacct object name.
+myset
+myset[src]
+myset[2]
+[myset1,myset2[dst]]
+myset[src](myObject)
+myset[src,nomatch,packets>100]
+myset[nomatch,no-update-counters](myObject)
FILES
/etc/shorewall/accounting
/etc/shorewall6/accounting
/etc/shorewall/blrules
/etc/shorewall6/blrules
/etc/shorewall/hosts -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall6/hosts -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall/maclist -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall6/maclist -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall/rules
/etc/shorewall6/rules
/etc/shorewall/secmarks
/etc/shorewall6/secmarks
/etc/shorewall/mangle
/etc/shorewall6/mangle
/etc/shorewall/snat
/etc/shorewall6/snat
SEE ALSO
shorewall(8)
NOTES
- 1.
- shorewall-exclusion
- 2.
- shorewall-tcfilters(5)
| 09/24/2020 | Configuration Files |