Autoreconnect with privateinternetaccess-services?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
liliscoty21
OpenVpn Newbie
Posts: 1
Joined: Sat Jun 06, 2015 10:52 am

Autoreconnect with privateinternetaccess-services?

Post by liliscoty21 » Sat Jun 06, 2015 11:10 am

Hello.

I'm using privateinternetaccess.com with openvpn on Linux.

It works fine but - after every Internetline-Reconnect - I need to restart the openvpn service.

Is there any way to reconnect the VPN-connection automatically?

Code: Select all

client
dev tun
proto udp
remote ******************
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
crl-verify /etc/openvpn/crl.pem

auth-user-pass *****************

keepalive 10 60 # doc say it keep alive but that not work :-(
In my eyes I can only write a script who ping a IP and restart the service. But that is not the perfect solution. The remote ping target is maybe also not so happy about that. And it broke a bit the privancy.


OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014 on Debian 7.8/wheezy-stable

Post Reply