Block IP from your server

You can block an IP (12.12.12.12) from your server with the following command:

# iptables -I INPUT -s 12.12.12.12 -j DROP

You can remove it also via the follwoing command:

# iptables -D INPUT -s 12.12.12.12 -j DROP

  • 34 Users Found This Useful
Was this answer helpful?

Related Articles

Linux rebuild broken software raid array - CENTOS

With this article I will show you how to look if a raid array (in our case a RAID1 array) is...

Check port used in linux

If you want to see which process is using which port, you can do it with the following command:#...

Empty mail queue in exim

So you have a lot of mails in the mail queue, from f.e spam accounts?First check how many mails...

SATA drive not recognized in linux

If your SATA drive does not get recognized when installing linux (happens on older linux...

Stuck on Probing PCI hardware

If you are trying to install CentOS 4.6 and it hangs on "Probing PCI hardware" then you can fix...