Document
OpenVPN keeps disconnecting randomly

OpenVPN keeps disconnecting randomly

I have 3 machines at various locations over the Internet connecting via OpenVPN to my pfsense. Two of my machines are Linux and the other is Windows 1

Related articles

6 Best Free VPN for Android in 2024: Secure and Fast LMC 8.4 Camera App DreamCloud Mattress Review (2024) The Best Benjamin Moore Neutral Colours Le test des On CloudUltra 2, sur le Marathon du Mont Blanc !

I have 3 machines at various locations over the Internet connecting via OpenVPN to my pfsense. Two of my machines are Linux and the other is Windows 10 Pro. Each one has a unique certificate, user, etc. However, it seems to randomly restart the VPN (every 5 – 40 mins). I don’t think its due to my internet connection since I’m able to chrome remote in with no delay or lag. I scoured the logs for anything that could indicate what is causing the issue. There were too many logs so I set my log setting to default (4).

I keep seeing

openvpn1/123.123.123.123:48484 [openvpn1] Inactivity timeout (--ping-restart), restarting 

or

openvpn1/123.123.123.123:9795 GET INST BY VIRT: 192.168.12.61 [failed]
openvpn1/123.123.123.123:9795 GET INST BY VIRT: 10.2.0.3 -> openvpn1/123.123.123.123:48484:9795 via 10.2.0.3 

for each machine.

My client config is

dev tun 
 persist - tun 
 persist - key 
 cipher AES-256 - CBC 
 auth SHA1 
 tls - client 
 client 
 resolv - retry infinite 
 remote 121.121.121.121 1194 udp 
 lport 0 
 verify - x509 - name " www.somewebsite.com " name 
 auth - user - pass 
 pkcs12 test - udp-1194 - openvpn1.p12 
 tls - auth test-udp-1194-openvpn1-tls.key 1 
 remote - cert - tls server 
 comp - lzo adaptive 

I’m not sure how to output my server config but its

Server Mode: Remote Access (SSL/TLS + User Auth)
Protocol : udp
device mode : tun
Interface : WAN
Local Port : 1194
Enabled auth of TLS packets
DH Parameter length: 2048
Auth digest algo: SHA1 (160-bit)
Certificate Depth: (Client + Server)

Tunnel Settings:
IPv4 is Tunnel Tunnel : 10.0.2.0/24
IPv4 Local : 192.168.12.0/24
concurrent connection : 10
Compression: Enabled with Adaptive Compression
Inter-client comm: Allowed communication between clients connected this server.

Client settings:
dynamic IP : allow connected client to retain their connection if their ip address change
Address Pool : provide a virtual adapter IP address to client

Advance Client Settings:
DNS Server is enabled enable with an another computer direct as the DNS server

Verbosity level: default

I’m on pfsense version 2.3.2, which I believe means I’m on OpenVPN 2.3.

I is working been work on this for over a week and have not be able to make sense of the problem . Please help .