[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
> UH    0      0        0 ipsec0
> Is there a way for ipsec to only add this route after the IPsec SA is
> established?


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


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


More information about the Users mailing list