Create a new ipset that uses network blocks (as apposed to individual IPs)
firewall-cmd --permanent --new-ipset=geo-blacklist --type=hash:net --option=family=inet --option=hashsize=4096 --option=maxelem=200000
Add the ipset as a source
firewall-cmd --permanent --zone=drop --add-source=ipset:geo-blacklist
Import a list of networks
firewall-cmd --permanent --ipset=geo-blacklist --add-entries-from-file=./cn.zone
Add a single entry
firewall-cmd --permanent --ipset=geo-blacklist --add-entry=1.1.1.1
Remove an entry
firewall-cmd --permanent --ipset=geo-blacklist --remove-entry=1.1.1.1
firewall-cmd --get-ipsets
Show details of an ipset
firewall-cmd --permanent --info-ipset=geo-blacklist