[SOLVED] OpenVPN Instances [new] not working

Started by meschmesch, August 30, 2023, 09:26:14 PM

Previous topic - Next topic
August 30, 2023, 09:26:14 PM Last Edit: August 31, 2023, 12:37:22 PM by meschmesch
Hello,
I tried to migrate the existing working configuration for a simple OpenVPN connection from an external client to Opnsense. According to the connection status, the connection is established. However, the log tells me that the client connects and then (after sucessful connection) disconnects and reconnects again (every 6 seconds). After some start/stop cycles, the connection somehow stabilizes but then I get some random client connect disconnect messages as soon as I try to access e.g. an https service on one of my machines hooked to the server.

Log:

2023-08-30T21:24:43 Notice openvpn_server2 MANAGEMENT: Client disconnected
2023-08-30T21:24:43 Notice openvpn_server2 MANAGEMENT: CMD 'quit'
2023-08-30T21:24:43 Notice openvpn_server2 MANAGEMENT: CMD 'status 2'
2023-08-30T21:24:43 Notice openvpn_server2 MANAGEMENT: Client connected from /var/etc/openvpn/server2.sock
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: Client disconnected
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: CMD 'status 3'
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: Client connected from /var/etc/openvpn/instance-72f28660-2018-4d15-88e5-d7065220fc5a.sock
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: Client disconnected
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: CMD 'status 3'
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: Client connected from /var/etc/openvpn/server2.sock
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: Client disconnected
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: CMD 'status 3'
2023-08-30T21:24:29 Notice openvpn_server4 MANAGEMENT: Client connected from /var/etc/openvpn/instance-72f28660-2018-4d15-88e5-d7065220fc5a.sock
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: Client disconnected
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: CMD 'status 3'
2023-08-30T21:24:29 Notice openvpn_server2 MANAGEMENT: Client connected from /var/etc/openvpn/server2.sock
2023-08-30T21:23:51 Notice openvpn_server4 netcupvpn/2xx:dd60 Timers: ping 10, ping-restart 120




Hello,
the issue is solved, even though I have no idea why. In the end I used a new port and new address range for the new VPN instance and then it worked. Perhaps i made some additional changes elswhere I'm not aware of. But in essence, all is fine now.

Thank for listening  ;D