Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Openvpn just hangs after starting client file

user3028938user3028938 Member
edited July 2025 in Help

Debian.

This output isn't giving me much to go on. From what I can see they don't seem to be errors, just warnings is that correct? Yet still it just hangs after the last line/retries where I just quit it. I thought it might be to do with the firewall, which is ufw, but I disabled it and still the same. As I was initially trying it within an lxc container I thought maybe related to that but I tried on host and exactly the same message. I also have a remote server which I tried it on and the same again.

I have tried with several different .ovpn client files in case the server was faulty and the same with each.

Here is the ouput:

sudo openvpn 3.ovpn
2025-07-26 07:53:09 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations.
2025-07-26 07:53:09 Note: Kernel support for ovpn-dco missing, disabling data channel offload.
2025-07-26 07:53:09 OpenVPN 2.6.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
2025-07-26 07:53:09 library versions: OpenSSL 3.0.16 11 Feb 2025, LZO 2.10
2025-07-26 07:53:09 DCO version: N/A
2025-07-26 07:53:09 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
2025-07-26 07:53:09 Socket Buffers: R=[212992->212992] S=[212992->212992]
2025-07-26 07:53:09 UDPv4 link local: (not bound)
2025-07-26 07:53:09 UDPv4 link remote: [AF_INET][undef]:1194

Comments

  • rustelekomrustelekom Member, Patron Provider

    You can run OpenVPN manually from the command line and watch the output. Don't forget to switch the logging level to "debug" (9). Most likely something wrong in server configuration file.

  • maybe try wireguard, its 2025. :D

  • @user3028938 said:
    Debian.

    This output isn't giving me much to go on. From what I can see they don't seem to be errors, just warnings is that correct? Yet still it just hangs after the last line/retries where I just quit it. I thought it might be to do with the firewall, which is ufw, but I disabled it and still the same. As I was initially trying it within an lxc container I thought maybe related to that but I tried on host and exactly the same message. I also have a remote server which I tried it on and the same again.

    I have tried with several different .ovpn client files in case the server was faulty and the same with each.

    Here is the ouput:

    sudo openvpn 3.ovpn
    2025-07-26 07:53:09 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations.
    2025-07-26 07:53:09 Note: Kernel support for ovpn-dco missing, disabling data channel offload.
    2025-07-26 07:53:09 OpenVPN 2.6.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
    2025-07-26 07:53:09 library versions: OpenSSL 3.0.16 11 Feb 2025, LZO 2.10
    2025-07-26 07:53:09 DCO version: N/A
    2025-07-26 07:53:09 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
    2025-07-26 07:53:09 Socket Buffers: R=[212992->212992] S=[212992->212992]
    2025-07-26 07:53:09 UDPv4 link local: (not bound)
    2025-07-26 07:53:09 UDPv4 link remote: [AF_INET][undef]:1194
    

    Since you’ve already tried different configs and servers across multiple systems, it does sound like a resolution or routing issue rather than something wrong with OpenVPN itself.
    Try to run debug also...

    Thanked by 2user3028938 xemaps
  • rostinrostin Member

    I faced this issue before and fixed it, but I don't remember exactly how since I don't use OpenVPN anymore...
    Try open your .opvn config file, replace "cipher AES-128-CBC" to "data-ciphers AES-128-CBC"

    Thanked by 1user3028938
  • I'm pretty sure this is your issue, from the logs:

    2025-07-26 07:53:09 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.

    I haven't used OpenVPN in a while, but this seems to be the page you need to read: https://openvpn.net/community-docs/important-note-on-possible--man-in-the-middle--attack-if-clients-do-not-verify-the-certificate-of-the-server-they-are-connecting-to-.html

    Thanked by 1user3028938
  • @rustelekom said:
    You can run OpenVPN manually from the command line and watch the output. Don't forget to switch the logging level to "debug" (9). Most likely something wrong in server configuration file.

    Umm you can see from the code provided that is exactly what I did...although did not do the logging part.

  • user3028938user3028938 Member
    edited July 2025

    @budi1413 said:
    maybe try wireguard, its 2025. :D

    Can't when the provider doesn't give that option. :o I am just using free vpn to test out.

    Thanked by 1xemaps
  • I haven't used OpenVPN in a while

    Everyone has switched to wireguard now? Do most companies support that then I guess?

    I know I used it once for setting up a private network and was much nicer with the smaller size of files and generally smooth process.

    Apart from this though have not had much complaint with openvpn over the years, this one is a first for me.

  • rustelekomrustelekom Member, Patron Provider

    @user3028938 said:

    @rustelekom said:
    You can run OpenVPN manually from the command line and watch the output. Don't forget to switch the logging level to "debug" (9). Most likely something wrong in server configuration file.

    Umm you can see from the code provided that is exactly what I did...although did not do the logging part.

    I meant openvpn server not a openvpn client.
    BTW. If you live in a country where VPN connections are blocked or monitored, it may be the result of DPI software. In such a case, changing the default port might help, as well as some obfuscation of VPN traffic.

    Thanked by 1user3028938
  • xemapsxemaps Member
    edited July 2025

    is compression on ?

  • Rakane_SCRakane_SC Member, Host Rep

    Hey, just chiming in here

    The fact that the UDPv4 link remote shows [undef]:1194 means your .ovpn config most likely has a remote line that’s either missing or pointing to a hostname that isn’t resolving.

    Check your .ovpn file and look for the line like:
    "remote yourhostname.com 1194"

    If "yourhostname.com" doesn't resolve (or is blank), that’ll cause exactly the behavior you're seeing.

    Also — since you're using OpenVPN 2.6+, you should **replace cipher AES-128-CBC with: data-ciphers AES-128-CBC

    And to debug deeper:

    "sudo openvpn --config 3.ovpn --verb 9"

    That will show if it’s stuck waiting on DNS or something else.

    Or if you are from a another country as @rustelekom mentioned that blocks VPN connections it might be that case.

    Let me know if you're able to diagnose it like that! Goodluck!

  • Thanks for the tips. Just signing off now but will try next time.

    @KaneHosting said:
    Hey, just chiming in here

    The fact that the UDPv4 link remote shows [undef]:1194 means your .ovpn config most likely has a remote line that’s either missing or pointing to a hostname that isn’t resolving.

    Check your .ovpn file and look for the line like:
    "remote yourhostname.com 1194"

    If "yourhostname.com" doesn't resolve (or is blank), that’ll cause exactly the behavior you're seeing.

    Also — since you're using OpenVPN 2.6+, you should **replace cipher AES-128-CBC with: data-ciphers AES-128-CBC

    And to debug deeper:

    "sudo openvpn --config 3.ovpn --verb 9"

    That will show if it’s stuck waiting on DNS or something else.

    Or if you are from a another country as @rustelekom mentioned that blocks VPN connections it might be that case.

    Let me know if you're able to diagnose it like that! Goodluck!

    I have just been downloading the provided .ovpn files. Had never had issues before in the years I used that vpn on and off, just to let you know. Maybe something changed with ovpn then in the meantime since I last used it - has been a couple of years since I tried it with that free vpn I think.

    Would be useful to check with another vpn but don't have another free one handy to try unless any other suggestions, but will try what you wrote above, and other comments from other users, first.

  • user3028938user3028938 Member
    edited July 2025

    @KaneHosting said:
    Check your .ovpn file and look for the line like:
    "remote yourhostname.com 1194"

    If "yourhostname.com" doesn't resolve (or is blank), that’ll cause exactly the behavior you're seeing.

    I just looked and it only has:

    remote 0
    

    EDIT: Yea I just downloaded another file which had written "including IP address" and the line now had the IP in it. I tried to start and it did get past that part. Didn't connect, but got a bit further, have to try others as, being a free vpn, servers are often down.

    EDIT2: ok that's weird...when I look at the file manually, opening it via the browser, the IP/host is there but when I download they revert back to 0 for remote.

    How is it able to edit the file 'in transit' like that? I will note that, since the server is headless, I am using wget to download the config files. Could that have something to do with it?

    Conversely, I noticed that when I clicked the file with the browser on my host machine to test it the file was downloaded unedited.

    Thanked by 1Rakane_SC
  • When trying on the host, downloading manually, it now hangs at a different place:

    2025-07-31 09:30:14 Data Channel: cipher 'AES-128-CBC', auth 'SHA1'   
    2025-07-31 09:30:14 Timers: ping 3, ping-restart 10
    

    Oh and I did change the cipher line, as suggested above. I tried disabling firewall in case it was that and didn't help.

    I check connectivity in browser and pages will not load until I C-c out of openvpn again.

  • user3028938user3028938 Member
    edited July 2025

    Ok I have solved the issues of files being edited with wget. I forgot when I used to use it I had to put the download url in quotes or it wouldn't download properly.

    Now I am at the same issue as I have when trying on host machine, which is the above post. A bit of progress at least as now I can keep testing to the container, without interfering with my host network. :)

    EDIT: Ok! Looks like it is not 'hanging' at all and it is actually connected at that point. I tried again with another profile and connection is established by the looks of things, having checked by downloading a page from the terminal and testing the IP address.

    Thanks for the help guys!

  • Rakane_SCRakane_SC Member, Host Rep

    @user3028938 said:
    Ok I have solved the issues of files being edited with wget. I forgot when I used to use it I had to put the download url in quotes or it wouldn't download properly.

    Now I am at the same issue as I have when trying on host machine, which is the above post. A bit of progress at least as now I can keep testing to the container, without interfering with my host network. :)

    EDIT: Ok! Looks like it is not 'hanging' at all and it is actually connected at that point. I tried again with another profile and connection is established by the looks of things, having checked by downloading a page from the terminal and testing the IP address.

    Thanks for the help guys!

    Glad you got it workin! Apologies didn't reply sooner,

    Best of luck to your VPN adventures :blush:

    All the best,
    Rakane O.
    CEO & Founder
    ServerCrate

Sign In or Register to comment.