Всем привет! Помогите нубу настроить openvpn на автопереподключение при разрыве. Так как network manager глючный и в нем не работает переподключение, запускаю openvpn через консоль и sudo. При разрыве не хочет переподключаться. Система Cubian Desktop на Cubieboard2.
Конфиг
client
dev tun
auth-user-pass /home/cubie/vpn/auth.txt
remote vpn.riseup.net 1194
ca /home/cubie/vpn/RiseupCA.pem
remote-cert-tls server
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
proto tcp-client
persist-tun
persist-key
keepalive 10 120
connect-retry 20
resolv-retry infinite
user cubie
group cubie
Лог
Sun Apr 20 09:22:13 2014 Initialization Sequence Completed
Mon Apr 21 08:37:37 2014 [vpn.riseup.net] Inactivity timeout (--ping-restart), restarting
Mon Apr 21 08:37:37 2014 SIGUSR1[soft,ping-restart] received, process restarting
Mon Apr 21 08:37:57 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Apr 21 08:37:57 2014 Re-using SSL/TLS context
Mon Apr 21 08:38:02 2014 Attempting to establish TCP connection with [AF_INET]198.252.153.26:1194 [nonblock]
Mon Apr 21 08:38:03 2014 TCP connection established with [AF_INET]198.252.153.26:1194
Mon Apr 21 08:38:03 2014 TCPv4_CLIENT link local: [undef]
Mon Apr 21 08:38:03 2014 TCPv4_CLIENT link remote: [AF_INET]198.252.153.26:1194
Mon Apr 21 08:38:46 2014 [UNDEF] Inactivity timeout (--ping-restart), restarting
Mon Apr 21 08:38:46 2014 SIGUSR1[soft,ping-restart] received, process restarting
Mon Apr 21 08:39:06 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Apr 21 08:39:06 2014 Re-using SSL/TLS context
Mon Apr 21 08:39:11 2014 Attempting to establish TCP connection with [AF_INET]198.252.153.26:1194 [nonblock]
Mon Apr 21 08:39:13 2014 TCP connection established with [AF_INET]198.252.153.26:1194
Mon Apr 21 08:39:13 2014 TCPv4_CLIENT link local: [undef]
Mon Apr 21 08:39:13 2014 TCPv4_CLIENT link remote: [AF_INET]198.252.153.26:1194
Mon Apr 21 08:39:48 2014 [UNDEF] Inactivity timeout (--ping-restart), restarting
Mon Apr 21 08:39:48 2014 SIGUSR1[soft,ping-restart] received, process restarting
Mon Apr 21 08:40:08 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Apr 21 08:40:08 2014 Re-using SSL/TLS context
Mon Apr 21 08:40:13 2014 Attempting to establish TCP connection with [AF_INET]198.252.153.26:1194 [nonblock]
Mon Apr 21 08:40:15 2014 TCP connection established with [AF_INET]198.252.153.26:1194
Mon Apr 21 08:40:15 2014 TCPv4_CLIENT link local: [undef]
Mon Apr 21 08:40:15 2014 TCPv4_CLIENT link remote: [AF_INET]198.252.153.26:1194
Mon Apr 21 08:41:14 2014 Connection reset, restarting [0]
Mon Apr 21 08:41:14 2014 SIGUSR1[soft,connection-reset] received, process restarting
Mon Apr 21 08:41:34 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Apr 21 08:41:34 2014 Re-using SSL/TLS context
Mon Apr 21 08:41:39 2014 Attempting to establish TCP connection with [AF_INET]198.252.153.26:1194 [nonblock]
Mon Apr 21 08:41:40 2014 TCP connection established with [AF_INET]198.252.153.26:1194
Mon Apr 21 08:41:40 2014 TCPv4_CLIENT link local: [undef]
Mon Apr 21 08:41:40 2014 TCPv4_CLIENT link remote: [AF_INET]198.252.153.26:1194
Mon Apr 21 08:42:05 2014 [vpn.riseup.net] Peer Connection Initiated with [AF_INET]198.252.153.26:1194
Mon Apr 21 08:42:08 2014 Preserving previous TUN/TAP instance: tun0
Mon Apr 21 08:42:08 2014 NOTE: Pulled options changed on restart, will need to close and reopen TUN/TAP device.
SIOCDELRT: Operation not permitted
Mon Apr 21 08:42:08 2014 ERROR: Linux route delete command failed: external program exited with error status: 7
SIOCDELRT: Operation not permitted
Mon Apr 21 08:42:08 2014 ERROR: Linux route delete command failed: external program exited with error status: 7
SIOCDELRT: Operation not permitted
Mon Apr 21 08:42:08 2014 ERROR: Linux route delete command failed: external program exited with error status: 7
Mon Apr 21 08:42:08 2014 /sbin/ifconfig tun0 0.0.0.0
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
Mon Apr 21 08:42:08 2014 Linux ip addr del failed: external program exited with error status: 255
Mon Apr 21 08:42:08 2014 /etc/openvpn/update-resolv-conf tun0 1500 1543 172.27.100.5 255.255.252.0 init
rm: cannot remove `tun0.inet': Permission denied
Mon Apr 21 08:42:08 2014 WARNING: Failed running command (--up/--down): external program exited with error status: 1
Mon Apr 21 08:42:08 2014 Exiting