OpenVPN - UDP drops after 2 minutes, TCP fine
jrichards555 last edited by
I just finished installing my first pfSense HA pair into production and everything is working great. In my test environment, I had no issues at all but now that I'm live, I've found a major hiccup with OpenVPN - almost like clockwork, every 2 minutes the VPN connection will drop (and try to re-establish). Here's the only thing I can find (in debug logs) on the pfsense side with any error: No TLS state for client
On the client side, I get:
Sat Apr 16 08:54:05 2016 [gw.x.com] Inactivity timeout (–ping-restart), restarting
Sat Apr 16 08:54:05 2016 SIGUSR1[soft,ping-restart] received, process restarting
Sat Apr 16 08:54:07 2016 UDPv4 link local (bound): [undef]
Sat Apr 16 08:54:07 2016 UDPv4 link remote: [AF_INET]x.x.x.x:1194
Sat Apr 16 08:54:08 2016 [gw.x.com] Peer Connection Initiated with [AF_INET]x.x.x.x:1194
(gw.x.com and x.x.x.x are replacements for real info)
I happened to find someone else with a similar problem here on the forums that said switching to TCP worked - I tried it and the connection stays active 100%.
The previous firewall was using UDP 500 (Cisco) and had no issues with using it so I know it's not a provider issue.
remote gw.x.com 1194 udp
verify-x509-name "gw.x.com" name
tls-auth gw-udp-1194-itsgi-tls.key 1