[Openswan Users] route-host command exited with status 2

Robert W. Burgholzer rburgholzer at maptech-inc.com
Thu Mar 25 18:28:56 CET 2004


Paul/list members,
Thanks for the suggestions. 12.5.17.226 is the IP of the gateway that I am 
trying to reach at work, and unfortunately, the route command you suggested 
did not work either (it didn't like the netmask).

My legitimate point to point tunnel is 10.22.1.1, is that perhaps my 
"nexthop" value? If so, I need some advice because setting 
rightnexthop=10.22.1.1 has yielded a fatal error each time.

Thanks again for any guidance.

r.b.

At 09:55 PM 3/25/2004 +0100, Paul Wouters wrote:
>On Thu, 25 Mar 2004, Robert W. Burgholzer wrote:
>
> > Output of route -n:
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use 
> Iface
> > 10.22.1.1       0.0.0.0         255.255.255.255 UH    0      0        0 
> ppp0
> > 10.22.1.1       0.0.0.0         255.255.255.255 UH    0      0        0 
> ipsec0
> > 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 
> eth1
> > 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> > 0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 
> ppp0
>
>That last line is a somewhat bogus default route, but it works because this
>is a point to point link.
>
>
> > /usr/local/lib/ipsec/_updown: `ip route add 192.168.1.0/24 via 12.5.17.226
> > dev ipsec0' failed
>
>Somehow, your system also things that 12.5.17.226 is your default gateway. It
>might be the other end of your ppp link. One possible fix is to add a network
>or host route to the range of the gateway.
>
>Try adding this before starting ipsec:
>
>route add 12.5.17.0 netmask 255.255.255.0 dev ppp0
>
>Paul

Robert Burgholzer
Environmental Engineer
MapTech Inc.
http://www.maptech-inc.com/ 



More information about the Users mailing list