NEXUCOM - Support / Knowledge Base

Search:     Advanced search
Browse by category:
Contact Us

How to Ban an IP Address From The Server

Views: 185
Votes: 0
Posted: 20 Dec, 2007
by: Tech A.
Updated: 25 Dec, 2007
by: Tech A.

Informations:

Have a user that keeps hammering your FTP or trying to login over and over and over again that you just want to ban and never see again? We'll show a quick and dirty method to 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 <IP> -j DROP

3. If you have APF firewall installed
apf -d <ip>

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
 


Others in this Category
document How to add Frame Forwarding to your website
document How to FTP Connection with IE6 [Internet Explorer 6]
document How to ROBOTS.TXT File Use
document How to Email Account Configuration [Microsoft Outlook 2003]
document Netstat Command [Linux/Unix]
document How to install PRM [Process Resource Monitor]
document How to Install mod_evasive
document How to Close Open DNS Servers
document How to Install DDoS Deflate
document How to Disable Direct Root Logins
document How to Creating a Welcome message for SSH logins
document How to Hide BIND version
document How to Install TeamSpeak Server [linux]



RSS

Services d'Hébergement: Hébergement Web | Serveurs Dédiés | Streaming | Colocation Serveurs | Nom de Domaine | Support |

Hosting Services: Web Hosting | Dedicated Servers | Streaming | Servers Colocation | Domain Name | Support |

Services: | Hébergement | Serveurs | Colocation |

Copyright © 2003-2008. All Rights Reserved.

Mascot - DirectAdmin - big - mf - Boiler Biomass - Mascot - Mascotte - Webmail - gt - eq - Chaudière Biomasse - Mascotte -