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

Paul Wouters paul at xelerance.com
Thu Mar 25 21:55:04 CET 2004


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



More information about the Users mailing list