Diffstat (limited to 'ipset.8')
1 files changed, 65 insertions, 0 deletions
@@ -245,6 +245,18 @@ When the optional
parameter specified, IP addresses which could be stored
in the set but not set yet, will always match.
+Please note, the
+netfilter kernel modules
+use the source MAC address from the packet to match, add or delete
+entries from a macipmap type of set.
The portmap set type uses a memory range, where each bit represents
one port. A portmap set type can store up to 65535 ports.
@@ -288,9 +300,62 @@ When the optional
parameter specified, network addresses will be
stored in the set instead of IP addresses.
+The nethash set type uses a hash to store different size of
+network addresses. The
+"address" used in the ipset command must be in the form
+where the CIDR block size must be in the inclusive range of 1-31.
+In order to avoid clashes in the hash,
+double-hashing and, as a last resort, dynamic growing of the hash performed.
+Options to use when creating an iphash set:
+.BR "--hashsize " hashsize
+The initial hash size (default 1024)
+.BR "--probes " probes
+How many times try to resolve clashing at adding an IP to the hash
+by double-hashing (default 2).
+.BR "--resize " percent
+Increase the hash size by this many percent (default 50) when adding
+an IP to the hash could not be performed after
+An IP address will be in a nethash type of set if it is in any of the
+netblocks added to the set, where the matching start from the smallest
+size of netblock to the biggest ones. When adding/deleting IP addresses
+to a nethash set by the
+netfilter kernel module, it will be added/deleted by the smallest
+netblock size which can be found in the set.
+The iptree set type uses a tree to store IP addresses, optionally
+with timeout values.
+Options to use when creating an iptree set:
+.BR "--timeout " value
+The timeout value for the entries in seconds (default 0)
+When adding an IP address to a set, one may add it with a specific timeout
+value using the syntax
.SH GENERAL RESTRICTIONS
Setnames starting with colon (:) cannot be defined. Zero valued set
entries cannot be used.
+If you want to store same size subnets from a given network
+(say /24 blocks from a /8 network), use the ipmap set type.
+If you want to store random same size networks (say random /24 blocks),
+use the iphash set type. If you have got random size of netblocks,
Various error messages are printed to standard error. The exit code
is 0 for correct functioning. Errors which appear to be caused by