Cloudkul Support

How to ban an IP from accessing the server?

To ban an IP address from accessing the server, we can set rule in iptables to drop all the packets coming from undesirable IP address.

Open your terminal and execute the command as:

iptables -I INPUT -s a.b.c.d -j DROP

It will ban IP a.b.c.d from accessing the server.

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request