Subject: Re: writing to routing socket: File exists
To: Andrew Brown <atatat@atatdot.net>
From: None <itojun@iijlab.net>
List: current-users
Date: 12/05/2000 09:37:15
>/etc/rc.d/network has the following line in its start section:
>
> route add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
>
>which, i would assume from reading it, sets up a blockhole route for
>127.0.0.0/8 through lo0 (127.0.0.1 to be precise, since netbsd doesn't
>do interface routing).
>
>what confuses me is that it (a) doesn't seem to have any effect on the
>routing table, and (b) always reports this:
>
> writing to routing socket: File exists
> add net 127.0.0.0: gateway 127.0.0.1: Bad file descriptor
>
>which looks like an error. is this "right"?
for me it works fine (on both 1.5 and 1.5L). the command
will configure the route marked with the arrow, and will reject
any traffic that matches 127/8 (except 127.0.0.1).
itojun
itojun[mango:/home/itojun] netstat -rn -f inet | grep 127
127 127.0.0.1 UGRS 0 0 33228 lo0 <--
127.0.0.1 127.0.0.1 UH 1 0 33228 lo0