/etc/xl2tpd/xl2tpd.conf:
redial = yes
redial timeout = 1
autodial = yes
Version of xl2tpd default, latest Ubuntu 14.04 ( Trusty ):
xl2tpd 1.3.6+dfsg-1 amd64 layer 2 tunneling protocol implementation
I'm always pinging some host like Google, default DNS - 8.8.8.8.
From time to time I'm losing the connection, ping is silent and xl2tpd doesn't reconnect.
Seems like xl2tpd doesn't know that the connection is broken.
Is there any option to keep an internet connection alive, to keep xl2tpd redial automatically?
Now, I use a raw and dirty bash script wrapper around ping and also service xl2tpd restart to redial xl2tpd.
Is there a more program (xl2tpd) friendly way?