Normally if you want to block all requests to and from an IP address, iptables is an ideal solution. A rule similar to this one would be handy

/sbin/iptables -A INPUT -s -j DROP

What if you want to block that IP without using iptables, route command would do the job

 /sbin/route add -host reject

Leave a Reply

Your email address will not be published. Required fields are marked *


Post Navigation