ipset - ArchWiki - Arch Linux
https://wiki.archlinux.org/title/IpsetFinally, configure iptables to block any address in that set. This command will add a rule to the top of the "INPUT" chain to "-m" match the set named "myset" from ipset (--match-set) when it is a "src" packet and "DROP", or block, it. # iptables -I INPUT -m set --match-set myset src -j DROP Blocking a list of IP addresses