Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT (Read 3875 times)
bazbaz
Jr. Member
Posts: 53
Karma: 2
OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
on:
January 17, 2024, 11:17:17 am »
Hi,
I have a road warrior OpenVPN tunnel. Authentication is based on local users + user certificates.
Connections are ok and work, but every 45 seconds the connection goes down and OpenVPN Client reconnect it. Its log says "Session invalidated: KEEPALIVE_TIMEOUT"
I cannot find how it tries to perform a keepalive and where the problem can be, any idea?
thanks
Logged
bartjsmit
Hero Member
Posts: 1999
Karma: 193
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #1 on:
January 17, 2024, 01:00:54 pm »
RTFM?
https://openvpn.net/community-resources/reference-manual-for-openvpn-2-5/
search for keepalive
Logged
bazbaz
Jr. Member
Posts: 53
Karma: 2
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #2 on:
January 17, 2024, 04:00:30 pm »
Ok, I see, but still I cannot find an idea about the problem. The VPN is working well, so traffic is ok. What kind of keepalive is the problem? The client can ping OPNSense on the IP address assigned on the tunnel (the first of the subnet). The firewall also does not log any dropped packed.
Is there some setting in my opnsense I miss? I' have many other OpnSense working well with OpenVPN DU and this is the first time I see this problem.
Logged
bartjsmit
Hero Member
Posts: 1999
Karma: 193
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #3 on:
January 18, 2024, 07:39:18 am »
Increase the verbosity of an OpenVPN client, or run it in the foreground. You should see the keepalive packets going back and forth.
Logged
bazbaz
Jr. Member
Posts: 53
Karma: 2
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #4 on:
January 23, 2024, 11:39:02 am »
nothing useful
I solved enabling keepalive frequency and timeout on opnsense side, that were emtpy.
Logged
LozBoz
Newbie
Posts: 2
Karma: 0
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #5 on:
May 03, 2024, 04:36:01 pm »
Would you be more specific and say how enabling keepalive frequency and timeout was done on the opnsense side?
I think I'm having a similar issue.
«
Last Edit: May 03, 2024, 04:57:57 pm by LozBoz
»
Logged
bazbaz
Jr. Member
Posts: 53
Karma: 2
Re: OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT
«
Reply #6 on:
May 06, 2024, 06:23:53 pm »
sorry, I don't remember the exact settings. I suspect in openvpn server main settings
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
OpenVPN: Session invalidated: KEEPALIVE_TIMEOUT