VPS Hosting KNOWLEDGEBASE
1page_img1
How to ban an ipaddress from accessing your server.
Here is how you ban an IP from accessing your 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

Customer Feedback...

1page_img1
Mark Rightson...
"This is by far the best service I have ever seen from a server hosting provider. Their virtual servers are no different than the dedicated server I moved from and they managed to import my dedicated server.. like magic! Thanks guys for the excellent service"
1page_img1
Bill Meyer...
"I got my first VMware server from vps-hosting.ca and I have to say I was very impressed. I realize I was wasting money on my dedicated server as these virtuals seem to perform extremely well. Also I really didn't expect to have the server up and running in 3 minutes which was great"