Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVPN disconnects every couple minutes #8106

Open
2 tasks done
BrianBaggs opened this issue Dec 3, 2024 · 0 comments
Open
2 tasks done

OpenVPN disconnects every couple minutes #8106

BrianBaggs opened this issue Dec 3, 2024 · 0 comments
Labels
support Community support

Comments

@BrianBaggs
Copy link

BrianBaggs commented Dec 3, 2024

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

A clear and concise description of what the bug is, including last known working version (if any).

Description:
I setup OpenVPN on my OPNsense home installation, and it works just fine except for recurring disconnections. The log in the OpenVPN Android app says Session invalidated: KEEPALIVE_TIMEOUT

I changed the Keepalive options on the OpenVPN settings but nothing seems to fix this issue. I only have this issue when using OpenVPN with OPNsense for some reason.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...' VPN>OpenVPN>Instances
  2. Complete the setup for an OpenVPN server, add applicable firewall rules and disable block private networks on the WAN interface.
  3. Export the profile, then import the file into the android app for OpenVPN and connect
  4. You get disconnected every few minutes, but the VPN itself seems to work fine otherwise

Expected behavior

VPN has a reliable connection and doesn't disconnect every couple minutes.

Describe alternatives you considered

I changed the Keepalive options that appear in advanced mode but nothing seems to fix it.

Relevant log files

I am seeing this in the log file on OPNsense even after setting the keepalive under advanced mode:

2024-12-02T09:54:23-04:00 Warning openvpn_server1 WARNING: --keepalive option is missing from server config

Additional context

There may be a way to manually edit the config file but I am submitting this but request to get this added to the OPNSense GUI.

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 24.7.9_1-amd64
Intel N100 (4-core CPU) with 16GB of DDR5 and 512GB NVMe SSD
Network Intel® I226-V

@AdSchellevis AdSchellevis added the support Community support label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants