<html><body><span style="display:block;" class="xfm_35579634"><div>Good for you!</div><div>I configured L2TP/IPSec tunnel, which should work around the clock. But, when I come to work in the morning, I find that the tunnel is disconnected. At the same time, if I run the command "ipsec auto --up myvpn", the connection restores.</div><div>How to automate reconnection using LibreSwan?</div><div><br/></div><div>My configuration:</div><div><div>config setup</div><div>        virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:25.0.0.0/8,%v4:100.64.0.0/10,%v6:fd00::/8,%v6:fe80::/10</div><div>        protostack=netkey</div><div>conn myvpn</div><div>        ikev2=never</div><div>        type=transport</div><div>        authby=secret</div><div>        pfs=no</div><div>        ike=aes128-sha1-modp1024</div><div>        esp=aes128-sha1</div><div>        left=%defaultroute</div><div>        leftprotoport=17/1701</div><div>        right=195.149.70.70</div><div>        rightprotoport=17/1701</div><div>        auto=ondemand</div><div>        keyingtries=3</div><div>        dpddelay=30</div><div>        dpdtimeout=120</div><div>        dpdaction=clear</div><div>        rekey=yes</div><div>        ikelifetime=8h</div><div>        keylife=1h</div></div><div><br/></div></span></body></html>