Live Chat Software by Kayako
Knowledgebase: Web Host Manager (WHM)
Ban IP
Posted by Ahman donk on 21 April 2008 05:07 PM
Ban an IP Address From The Server

1) Login to the server as and su - to root.

2) If you are running iptables, you can enter:

iptables -A INPUT -s -j DROP

3) If you have APF firewall installed

apf -d

4) When you reboot this IP ban will be removed, meaning the IP will no longer be banned anymore.
If you have APF you can get around this by opening the deny hosts file.

pico /etc/apf/deny_hosts.rules

Scroll to the bottom and paste in the IP address.
Ctrl+X then Y to save the changes and exit.

5) Restart APF
/etc/apf/apf -r
(81 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Kayako