Добрый день, тестирую сабж и не получатся переподключать устройство при потере связи.
Конфиги устройства: /etc/xl2tpd/xl2tpd.conf
[global]
[lac *****]
lns = *****
redial = yes
redial timeout = 10
max redials = 1000
refuse chap = yes
require authentication = no
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
refuse pap = yes
autodial = yes
length bit = yes
name = *****
ppp debug = yes
/etc/ppp/options.xl2tpd
mru 1280
mtu 1280
noauth
proxyarp
nodefaultroute
logfile /var/log/ppp.log
maxfail 0
nopersist
lock
Log
May 15 07:00:05 raspberrypi xl2tpd[20165]: Maximum retries exceeded for tunnel 12292. Closing.
May 15 07:00:05 raspberrypi pppd[20187]: Hangup (SIGHUP)
May 15 07:00:05 raspberrypi pppd[20187]: Modem hangup
May 15 07:00:05 raspberrypi pppd[20187]: Connect time 3.1 minutes.
May 15 07:00:05 raspberrypi pppd[20187]: Sent 168 bytes, received 168 bytes.
May 15 07:00:05 raspberrypi pppd[20187]: Script /etc/ppp/ip-down started (pid 20223)
May 15 07:00:05 raspberrypi pppd[20187]: Connection terminated.
May 15 07:00:05 raspberrypi avahi-daemon[464]: Withdrawing workstation service for ppp0.
May 15 07:00:05 raspberrypi pppd[20187]: Waiting for 1 child processes...
May 15 07:00:05 raspberrypi pppd[20187]: script /etc/ppp/ip-down, pid 20223
May 15 07:00:05 raspberrypi pppd[20187]: Script /etc/ppp/ip-down finished (pid 20223), status = 0x0
May 15 07:00:05 raspberrypi pppd[20187]: Exit.
May 15 07:00:07 raspberrypi ntpd[616]: Deleting interface #6 ppp0, 10.0.1.114#123, interface stats: received=0, sent=0, dropped=0, active_time=185 secs
May 15 07:00:07 raspberrypi ntpd[616]: peers refreshed