Hi,
Thanks for the quick reply.
I wish I found a way to export pfSense's default OpenVPN server config, but haven't come across such an option yet. I've followed the guide linked above to the letter, which might give a little indication. No commands were added to the Advanced part either.
I did however find the OpenVPN server log file;
May 15 19:21:19 openvpn: user 'Hendrik' authenticated
May 15 19:21:19 openvpn[57187]: 192.168.1.10:65512 [Hendrik] Peer Connection Initiated with [AF_INET]192.168.1.10:65512
May 15 19:21:19 openvpn[57187]: MULTI_sva: pool returned IPv4=10.0.10.6, IPv6=(Not enabled)
May 15 19:21:21 openvpn[57187]: Hendrik/192.168.1.10:65512 send_push_reply(): safe_cap=940
May 15 19:23:25 openvpn[57187]: Hendrik/192.168.1.10:65512 [Hendrik] Inactivity timeout (--ping-restart), restarting
May 15 19:24:24 openvpn: user 'Hendrik' authenticated
May 15 19:24:25 openvpn[57187]: 192.168.1.1:54876 [Hendrik] Peer Connection Initiated with [AF_INET]192.168.1.1:54876
May 15 19:24:25 openvpn[57187]: Hendrik/192.168.1.1:54876 MULTI_sva: pool returned IPv4=10.0.10.6, IPv6=(Not enabled)
May 15 19:24:26 openvpn[57187]: Hendrik/192.168.1.1:54876 send_push_reply(): safe_cap=940
As you can see I connect correctly, but receive a timeout. After 2 minutes the server kicks me off, another minute later the client notices (client might have 3 minute timeout by default?) and reconnects. When reconnected, everything is working fine. Routing works perfect, internet works perfect, working as intended.
The problem I'm facing is that as soon as the client connects for the
first time (by that I mean each time you click on Connect), it does something funky either on the server or client side that results in the connection timing out. But as soon as it automatically reconnects back, everything is working fine (routes, internet, everything..)
I tried to change the keepalive setting aswell, but that only seems to change the length of the timeout; it's not actually fixing the underlying issue. And I know that by not providing a server config you can't fully debug the issue, but if you know how to grab it from pfSense I'm all ears.
Thanks,
~Hendrik