Manage multiple IP addresses with CSF
The command to deny an IP:
# csf -d ip.address
Click here for more CSF commands
Here is the script to block number of IPs:
1, Save the IPs in a text file:
vi block.txt ..... 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 .....
2, Blocking them using for loop:
# for i in `cat block.txt`; do csf -d $i;done
If you want to add UIP address change the “do” part with “csf -a $i”.