Use IPSet to Block Multiple IPs

Instead of adding individual IP addresses that need to be blocked to IPTables, it is easier to maintain a a single blacklist using IPSet and reference it in IPTables. Install IPSet sudo apt-get install ipset Create the blacklist list sudo ipset create blacklist hash:ip hashsize 4096 Tell IPTables to reference the newly created list sudo…

Continue reading →