This is an ipset-specific module designed to manage IPSets for use in IPTables Firewalls.
setname:
ipset.set_present:
- set_type: bitmap:ip
- range: 192.168.0.0/16
- comment: True
setname:
ipset.set_absent:
- set_type: bitmap:ip
- range: 192.168.0.0/16
- comment: True
setname_entries:
ipset.present:
- set_name: setname
- entry: 192.168.0.3
- comment: Hello
- require:
- ipset: baz
setname_entries:
ipset.present:
- set_name: setname
- entry:
- 192.168.0.3
- 192.168.1.3
- comment: Hello
- require:
- ipset: baz
setname_entries:
ipset.absent:
- set_name: setname
- entry:
- 192.168.0.3
- 192.168.1.3
- comment: Hello
- require:
- ipset: baz
setname:
ipset.flush:
New in version 2014.7.0.
Remove a entry or entries from a chain
A user-defined name to call this entry by in another part of a state or formula. This should not be an actual entry.
Network family, ipv4 or ipv6.
New in version 2014.7.0.
Flush current ipset set
Networking family, either ipv4 or ipv6
New in version 2014.7.0.
Append a entry to a set
A user-defined name to call this entry by in another part of a state or formula. This should not be an actual entry.
A single entry to add to a set or a list of entries to add to a set
Network family, ipv4 or ipv6.
New in version 2014.7.0.
Verify the set is absent.
Networking family, either ipv4 or ipv6
New in version 2014.7.0.
Verify the set exists.
A user-defined set name.
The type for the set.
Networking family, either ipv4 or ipv6