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 ..... 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 .....
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”.