SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Virtuozzo and OpenVz Based Accounts .: How can I block an IP address using iptables?

How can I block an IP address using iptables?

To block an IP address from accessing your VPS using IP tables follow these steps:

1. Log into your VPS using an SSH client such as Putty

2. Type the following command, replacing xx.xx.xx.xx with the actual IP address you wish to block:

iptables -A INPUT -s xx.xx.xx.xx -j DROP

3. To save the iptables settings, enter the following command

iptables-save > /etc/sysconfig/iptables


How helpful was this article to you?

Related Articles

article What is the difference between a shared IP address and a dedicated IP address?
A dedicated IP address will allow you to access...

  1-4-2006    Views: 13405   
article How do I create an A record for an external IP address?
To add an A record for a domain hosted in HPSC...

(No rating)  1-16-2006    Views: 8813   
article How can I block traffic from a specific site to one of my sites?
You can set up an .htaccess file to deny access...

(No rating)  3-28-2006    Views: 6528   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted