You are not logged in.

#1 2015-02-12 01:32:54

scri
Member
Registered: 2012-08-18
Posts: 3

OpenVPN does not reconnect after suspend

I am running OpenVPN as a systemd service. After suspending or hibernating (any sleep function) it fails to reconnect unless I manually restart the service.

Logs:

Feb 09 19:24:52 squamata openvpn@pia[17908]: /usr/bin/ip link set dev tun0 up mtu 1500
Feb 09 19:24:52 squamata openvpn@pia[17908]: /usr/bin/ip addr add dev tun0 local 10.124.1.10 peer 10.124.1.9
Feb 09 19:24:52 squamata openvpn@pia[17908]: update-resolv-conf.sh tun0 1500 1542 10.124.1.10 10.124.1.9 init
Feb 09 19:24:52 squamata openvpn@pia[17908]: Initialization Sequence Completed
Feb 10 10:09:59 squamata openvpn@pia[17908]: [Private Internet Access] Inactivity timeout (--ping-restart), restarting
Feb 10 10:09:59 squamata openvpn@pia[17908]: SIGUSR1[soft,ping-restart] received, process restarting
Feb 10 10:10:01 squamata openvpn@pia[17908]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Feb 10 10:10:16 squamata openvpn@pia[17908]: RESOLVE: Cannot resolve host address: us-east.privateinternetaccess.com: Name or service not known
Feb 10 10:10:16 squamata openvpn@pia[17908]: UDPv4 link local: [undef]
Feb 10 10:10:16 squamata openvpn@pia[17908]: UDPv4 link remote: [AF_INET]107.191.32.205:1194

I have added network-online to Requires= and After= in the openvpn service file, which had no effect. I also tried using the update-resolv-conf.sh script from the wiki: https://wiki.archlinux.org/index.php/OpenVPN#DNS.

Not sure how to proceed.

Offline

Board footer

Powered by FluxBB