Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Used to ban some flood-bots with

route add -host $ip reject

But couple of 'good' IPs were banned as well. My question is stupid (but I've searched and found no good solution (all were large and/or didn't work)):

How to unban it if I know the IP ?

Tried to use this:

route del -host - just for example. I tried the exactly banned IP.

It said:

SIOCDELRT: No such process

Hoping for answers. Thanks.

share|improve this question
up vote 2 down vote accepted

route add reject blocks the IP.

route del reject unblocks it.

share|improve this answer
Solved. Grand Merci! – ABTOMAT Dec 4 '11 at 9:19

Use man route:

route del -host $ip

To block certain IPs you should however use iptables (route is not for firewalling).

iptables -I INPUT -s $ip/32 -j DROP
share|improve this answer
Thanks for answer. I already tried route del, but it doesn't do the trick: s090:/home/www/web5 # route del -host [some ip] SIOCDELRT: No such process – ABTOMAT Dec 3 '11 at 11:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.