[Openswan Users] routing problem with netmask 255.255.255.255

Paul Wouters paul at xelerance.com
Sun Sep 5 19:03:30 CEST 2004


On Sun, 5 Sep 2004, Alex, Wheeler wrote:

> Problem: ipsec0 routes do not appear in IP routing table
>
> I have the following ipconfiguration:
>
> Machine A
> ifconfig eth0 w.x.y.z broadcast w.x.y.z netmask 255.255.255.255
> route add 10.255.255.1 dev eth0
> route add default gw 10.255.255.1

That's a pretty bogus network configuration. Assuming "w.x.y.z" is
something your isp gave you, and you don't care for the machines
at z+1 or z-1, you could change this to:

ifconfig eth0 w.x.y.z netmask 255.255.255.252

>
> conn machineA-to-machineB
>       auto=start
>       left=w.x.y.z
>       rightid=@machineB
>       right=a.b.c.d
>       rightrsasigkey=posidcpsodicpsodicpsocipsodicposdicfoobar

Since it is so weird, I'd put a leftnexthop=10.255.255.1 in there.

Paul


More information about the Users mailing list