ipset save and restore - narkive
netfilter.vger.kernel.narkive.com › tJsj5nGC › ipsetipset restore < file gives me errors about the sets already existing, but even with -exist it doesn't help a lot, because entries removed from the file, are not removed from the actual ipsets. So it seems as if ipset restore is not what the manpage describes (restore a session) but rather an additive merge of another session to the current one.
iptables and ipsets - Michael Warren Lucas
https://mwl.io/archives/167903.05.2013 · This tells ipset to ignore that the ipset already exists, and restore the contents of the ipset from the file. # ipset restore -! < iptables.mgmt.conf I can now copy this file to my hosts, run a command, and the packet filter rules are updated, without touching my main rules file.
ipset(8): administration tool for IP sets - Linux man page
linux.die.net › man › 8ipset test SETNAME TEST-ENTRY [ TEST-OPTIONS] ipset destroy [ SETNAME] ipset list [ SETNAME] ipset save [ SETNAME] ipset restore. ipset flush [ SETNAME] ipset rename SETNAME-FROM SETNAME-TO. ipset swap SETNAME-FROM SETNAME-TO. ipset help [ TYPENAME] ipset version. ipset - Description ipset is used to set up, maintain and inspect so called IP sets in the Linux kernel. Depending on the type of the set, an IP set may store IP(v4/v6) addresses, (TCP/UDP) port numbers, IP and MAC address pairs ...
iptables and ipsets - Michael Warren Lucas
mwl.io › archives › 1679May 03, 2013 · When you update the iptables.mgmt.conf file, read it in with ipset restore. You must use the -! flag. This tells ipset to ignore that the ipset already exists, and restore the contents of the ipset from the file. # ipset restore -! iptables.mgmt.conf