B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
utilerias
/
Filename :
csfmx_remove
back
Copy
#!/bin/bash ### Grep Ips addresses from Mexico cat /etc/csf/csf.deny | grep MX |awk {'print $1'} >> /utilerias/csfmx_ips.txt ### Remove the IP block and temporarily allow them in firewall for i in `cat /utilerias/csfmx_ips.txt`; do /usr/sbin/csf -dr $i /usr/sbin/csf -ta $i 3600 done rm -f /utilerias/csfmx_ips.txt