OpenVPN ssh and web interface falls over

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
andrewj
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 26, 2022 5:33 am

OpenVPN ssh and web interface falls over

Post by andrewj » Wed Oct 26, 2022 5:43 am

Hi Community,
I have an instance of OpenVPN community running in a windows VM. It has been recently upgraded to the latest release via the web interface.
I was hoping the upgrade would resolve an issue I am having as outlined below which is slowly getting worse

When I restart the VM host (say after the monthly windows patch run) I need to restart the OpenVPN server as the web interface and ssh service become unresponsive after a few hours. The only way to get the ssh and web interface to work again is to restart the OpenVPN server from the VM console.

The VPN server itself allows VPN connections but I have no management control over the box

Lately I have found that the ssh service and the web interface fall over again after a few hours. Sometimes many restarts will resolve the issue, but this is really inconvenient for the users using the service

Has anyone else encountered this behavior

Any assistance will be greatly appreciated

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: OpenVPN ssh and web interface falls over

Post by openvpn_inc » Wed Oct 26, 2022 8:44 pm

Hello andrewj,

The description of the problem seems to be related to a mistake in routing. Is this running as an OpenVPN server on the Windows VM? And the web interface and SSH service are on this same Windows VM too? Are there any particular routes you're implementing, any custom things you're doing that could have an impact on routing?

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

andrewj
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 26, 2022 5:33 am

Re: OpenVPN ssh and web interface falls over

Post by andrewj » Wed Oct 26, 2022 10:55 pm

Hello Johan,
The web interface and ssh service are running on the same OpenVPN server and yes its a Windows VM. As I mentioned above the ssh and web interface remain up for several hours after I have rebooted the OpenVPN server and then stop responding, so I dont think routing is at play here. I can still ping the IP address that I use to ssh or https to the ssh or web interfaces respectively even after the services have stopped responding.
Is there a command I can run under option 8 (shell service) that will restart the sshd daemon?

Kind regards
Andrew

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: OpenVPN ssh and web interface falls over

Post by openvpn_inc » Thu Oct 27, 2022 9:11 am

Hello Andrew,

I think I misunderstood you. You said "The only way to get the ssh and web interface to work again is to restart the OpenVPN server from the VM console". When you said "OpenVPN server" here I assumed you were talking about the OpenVPN program that is configured to run as a server. So my assumption was that the ssh and web interfaces stop working but you can get them to work again by stopping/starting the OpenVPN server software. But instead it now looks like you meant that the Windows server that runs as an OpenVPN server needs a restart in its entirety for ssh and web interfaces to come back up. As in, you have to restart the entire OS to get the ssh and web interface to work again. In that case... I have no idea why OpenVPN is even involved here or why we're even talking on this forum. That then sounds more like an issue with the ssh and web interfaces that has nothing to do with OpenVPN at all.

In any case, on Windows, services tend to be controlled through the 'net' command. You just need to know the service name. If the service name is for example "bla bla" then you run;
net stop "bla bla"
net start "bla bla"
net restart "bla bla"

You can usually find out the service name in the 'services.msc' screen.

Good luck,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply