viewtopic.php?f=6&t=22020&p=63990#p63990
I´m using PPP to connect a 4G modem with the internet.
PPP connects to mobile provider getting IP Address as I can see in PPP0 interface. After that OpenVPN client connects to my OpenVPN server.
If I restart PPP service or after IP lease time expires, PPP reconnects to internet but OpenVPN can't establish VPN connection.
TUN0 interface don't get dropped at all.
After that, I can´t access internet until manually restart OpenVPN service.
Code: Select all
Aug 24 19:17:17 apalis-imx6-1 openvpn[1638]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connect)
Aug 24 19:17:17 apalis-imx6-1 openvpn[1638]: TLS Error: TLS handshake failed
Aug 24 19:17:17 apalis-imx6-1 openvpn[1638]: TCP/UDP: Closing socket
Aug 24 19:17:17 apalis-imx6-1 openvpn[1638]: SIGUSR1[soft,tls-error] received, process restarting
Aug 24 19:17:17 apalis-imx6-1 openvpn[1638]: Restart pause, 2 second(s)
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net.
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Re-using SSL/TLS context
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: LZO compression initialized
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:3 ]
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:143 ET:0 EL:3 AF:3/1 ]
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,ciphe'
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp'
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Local Options hash (VER=V4): '41690919'
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: Expected Remote Options hash (VER=V4): '530fdded'
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: UDPv4 link local: [undef]
Aug 24 19:17:19 apalis-imx6-1 openvpn[1638]: UDPv4 link remote: [AF_INET]52.67.136.6:1194
Code: Select all
port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
Code: Select all
client
dev tun
proto udp
remote XX.XX.XX.XX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/apalis3.crt
key /etc/openvpn/keys/apalis3.key
comp-lzo
verb 4