08 Sep 2010 
Support Center » Knowledgebase » Checking if IP is blocked from Iptables
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
 Checking if IP is blocked from Iptables
Solution How to check if IP is blocked from Iptables

Check if IP is blocked:
# 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

Note: Full path to IPTABLES is /sbin/iptables, you can replace command # iptables with /sbin/iptables

Article Details
Article ID: 6
Created On: 16 Jul 2007 02:02 PM

 This answer was helpful  This answer was not helpful

Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software By Kayako eSupport v3.10.02