ipset Command Examples

Create IP sets for firewall rules. More information: https://manned.org/ipset.

ipset create {{set_name}} hash:ip

ipset destroy {{set_name}}

ipset add {{set_name}} {{192.168.1.25}}

ipset del {{set_name}} {{192.168.1.25}}

ipset save {{set_name}} > {{path/to/ip_set}}