Block IP from your server via iptables

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

# iptables -I INPUT -s -j DROP

You can remove it also via the following command:

# iptables -D INPUT -s -j DROP
  • 83 Users Found This Useful
Was this answer helpful?

Related Articles

Check port used in linux

If you want to see which process is using which port (in this case, port 53), you can do it with...

Mass change in file

If you have switched to a new service provider and all DNS records need to be adjusted to the new...

How to import and export a mysql database via ssh

A mysql database can be easily imported and exported via SSH:1) You can export a MYSQL database...

Enable DMA on disk - against slow disk speed

We had a server performing pretty poorly and we went to investigate.It seemed the disk speed was...

How do I rename a database in phpMyAdmin?

You can rename a database easily via phpMyAdmin.We'll show you how it's done:Step 1. Login to...