Checking
if IP is blocked from Iptables
How to check if IP is blocked from
Iptables
# iptables -L -n --line | grep [IP Address]
If IP appear as DROP or REJECT, the IP has been blocked
Unblock the IP Address:
# iptables -I INPUT -s [IP Address] -j ACCEPT
Blocking back an IP Address:
# iptables -A INPUT -d [IP Address] -j DROP
# service iptables save
===============================================================
edit CSF: /etc/csf/csf.deny
# vi /etc/csf/csf.deny
comment the IP to be unblocked
# csf -r
===============================================================
Note: Full path to IPTABLES is /sbin/iptables, you can replace command # iptables with /sbin/iptables
Anzil Ali Liyakkath
anzil.ali@webhostrepo.com
No comments:
Post a Comment