[Openswan Users] Problem: default route keeps going away

Paul Wouters paul at xelerance.com
Sun Dec 2 23:21:37 EST 2007


On Mon, 3 Dec 2007, Phil Wild wrote:

> I have openswan working fine between two systems. One of them connects to
> the internet via a pppoe/dsl link with fixed IP address. When I start up
> openswan, everything works great and the startup process creates a network
> route for the openswan connection. However, if the dsl connection drops out
> and is automatically restarted, the openswan network route disappears. A
> restart of openswan vi /etc/init.d/ipsec restart fixes the problem. Any
> suggestions on the best way of addressing this automatically?

In your /etc/ppp/ip.up.d/ add a script that runs ipsec auto --replace connname
and ipsec auto --up connname. If your IP also changes, you will nee to
restart openswan completely (perhaps ipsec whack --listen would be enough)

Paul
-- 
Building and integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


More information about the Users mailing list