On Sat, 3 Feb 2001, Drew Hunt wrote:

> Issuing your recommended commands gives the following errors:
> SIOCADDRT: Invalid argument
>
> Any fixes?
> Drew
>
I forgot the netmask.  I usualy just block single hosts..

> route add -net 211.54.136.0 reject
> route add -net 168.126.63.0 reject
>
route add -net 211.54.136.0 netmask 255.255.255.0 reject
route add -net 168.126.63.0 netmask 255.255.255.0 reject

To block a single IP, you can use:

route add -host 211.54.136.12 reject

Note, the commands completely block any trafic with the host or subnet
you specify.  This means you also can not contact any address in the
range your specify.

To remove the block, use the same command, but change add to del.

Have fun!
Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to