[Openswan Users] Add route only after the connection was sucessful

Wolfgang Kueter wolfgang at shconnect.de
Wed Apr 27 11:03:26 EDT 2011


On Wed, 27 Apr 2011, Diogo V. kersting wrote:

> Hello.
> 
> I'm using IPSec and KLIPs, and when I start the ipsec daemon(pluto) it
> adds the following route:
> 
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.10.70   0.0.0.0         255.255.255.255 UH    0      0        0 ipsec0
> 
> Is there a way for ipsec to only add this route after the IPsec SA is
> established?

RTFM

You'll probably find the solution, if you read the section 'auto' of the 
manpage of ipsec.conf.

http://linux.die.net/man/5/ipsec.conf

auto=start is probably not what you want ...

Wolfgang



More information about the Users mailing list