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...

(No rating)  1-4-2006    Views: 2315   
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: 2034   
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: 963   

User Comments

Add Comment
No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005, 2006, 2007, Advantagecom Networks, Inc.