0

import a blocklist into iptables

sometimes, we need only to import a custom ip liste to iptables. here is the solution: create a text file contains all the ip to be blocked (one per line), ex: blocklist.txt create a shell script: