[Swan] How to configure LibreSwan to auto-restart IPSec-tunnel when it go down?

Paul Wouters paul at nohats.ca
Mon Mar 18 08:38:29 UTC 2019


On Mon, 18 Mar 2019, yuryb wrote:

> On your advice, I set the "keyingtrays = 0" option on Friday and restarted LibreSwan. But this morning I
> discovered that L2TP-connection is disabled again. I executed the command "ipsec auto --up myvpn" and
> the connection was restored. That is, the problem remains. What else can be done to solve the problem?
> 
> Auto=omdemand or auto=start but leaves keyingtries to 0 (infinite)

Does the other side hang up on you? You should provide some more context
to see what is happening.

Paul


More information about the Swan mailing list