View Single Post
  #1 (permalink)  
Old 01-01-2009, 07:45 PM
carl owen carl owen is offline
Member
 
Join Date: Dec 2008
Posts: 83
Default Banning an IP address on Linux server

You can easily ban an IP address on your server with APF firewall installed

1) Login to your server as root.

2) Enter apf –d <ip>

3) Rebooting your server resets all your IP bans. This is due to the default settings. This is the reason that APF firewall is recommended for security as it will help you to secure your server.

4) Now open the deny hosts file. Scroll to the bottom and simply enter the IP address you want to ban.

5) Now just press control+X and then Y which will save your setting. These setting become the default settings then.

6) Exit and restart your APF and you are done.
Reply With Quote