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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I add a user for my website in the BlueOnyx control panel?

To add a user for a website in the BlueOnyx control panel, follow these steps: Click on the...

How do I add a website in the BlueOnyx control panel?

Follow these steps to create a website in the BlueOnyx control panel: Login to the BlueOnyx...

How do I add DNS records for my hwVPS account?

The steps to add DNS records for your hwVPS account are as follows: Log into the hwVPS DNS...

How can I add a new mailbox?

To add a new mailbox follow these steps: Go to your control panel at...

Powered by WHMCompleteSolution