OpenVPN connections to Azure drops immediately

Need help configuring your VPN? Just post here and you'll get that help.

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
montit
OpenVpn Newbie
Posts: 2
Joined: Thu Feb 23, 2023 2:19 pm

OpenVPN connections to Azure drops immediately

Post by montit » Thu Feb 23, 2023 2:25 pm

My company has recently changed to using OpenVPN as a soft-client to connect to our Azure install and I'm having a problem getting my client to connect.

I am using the same configuration file as a co-worker, and they are able to connect, but I can't. I don't see any errors in my client log and I'm not sure if the Azure logs are available, at least I haven't been able to find them. The connection seems to drop immediately after receiving a packet. There are no obvious errors listed in the log.

Here's the log showing the disconnect:

Code: Select all

2023-02-23 08:59:48 Restart pause, 128 second(s)
2023-02-23 09:01:56 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2023-02-23 09:01:56 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2023-02-23 09:01:56 MANAGEMENT: >STATE:1677160916,RESOLVE,,,,,,
2023-02-23 09:01:56 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XXX:XXXX
2023-02-23 09:01:56 ovpn-dco device [OpenVPN Data Channel Offload] opened
2023-02-23 09:01:57 TCP_CLIENT link local: (not bound)
2023-02-23 09:01:57 TCP_CLIENT link remote: [AF_INET]XXX.XXX.XXX.XXX:XXXX
2023-02-23 09:01:57 MANAGEMENT: >STATE:1677160917,WAIT,,,,,,
2023-02-23 09:01:57 MANAGEMENT: >STATE:1677160917,AUTH,,,,,,
2023-02-23 09:01:57 TLS: Initial packet from [AF_INET]XXX.XXX.XXX.XXX:XXXX, sid=fb259ea4 3d046ddf
2023-02-23 09:01:57 Connection reset, restarting [-1]
2023-02-23 09:01:57 Closing DCO interface
2023-02-23 09:01:57 SIGUSR1[soft,connection-reset] received, process restarting
2023-02-23 09:01:57 MANAGEMENT: >STATE:1677160917,RECONNECTING,connection-reset,,,,,
2023-02-23 09:01:57 Restart pause, 256 second(s)

montit
OpenVpn Newbie
Posts: 2
Joined: Thu Feb 23, 2023 2:19 pm

Re: OpenVPN connections to Azure drops immediately

Post by montit » Mon Feb 27, 2023 1:56 pm

I was able to fix my problem.

I had installed either the wrong version of OpenVPN, or selected the wrong customization options for my environment.

I had to uninstall the client and re-install from a package that my company has on its network. Then I had to make sure my config was correctly formatted for the various key information that was stored in the file. There is a required format for the certificate key info that I had broken when troubleshooting previously.

If anyone wants more details about my solution I can provide them, but long story short I just needed to reinstall.

kscurloc
OpenVpn Newbie
Posts: 1
Joined: Mon Feb 27, 2023 2:09 pm

Re: OpenVPN connections to Azure drops immediately

Post by kscurloc » Mon Feb 27, 2023 2:11 pm

Hey there montit, yes I would like to know!

I've had the same issues as you, I believe. When I use OpenVPN 2.5.9 it works fine. As soon as I upgrade to 2.6.0, using the same profile, it will not connect.

Thanks in advance!

Post Reply