• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN failed to authenticate clients [SOLVED]

Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
3 Posts 2 Posters 7.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    MaxPF
    last edited by Jan 16, 2015, 4:07 PM Jan 16, 2015, 2:42 AM

    Running 2.2-RC (i386) built on Mon Jan 12 03:27:47 CST 2015 on my Alix box at home.

    For some reason the clients (Windows and Android) fail to connect with a failed authentication error. On the server I see this:

    Jan 15 21:21:56 openvpn[78738]: X.X.X.X:38631 TLS Auth Error: Auth Username/Password verification failed for peer
    Jan 15 21:21:56 openvpn[78738]: X.X.X.X:38631 WARNING: Failed running command (–auth-user-pass-verify): external program exited with error status: 1

    Last time I was able to connect was with the official 2.2RC build. Since then I upgraded to few nightly builds, but never tried to connect with OpenVPN until today. Nothing has changed in the OpenVPN configuration on either clients or server and I even tried to reset the vpn user password.

    1 Reply Last reply Reply Quote 0
    • C
      cmb
      last edited by Jan 16, 2015, 6:52 AM

      What are you authenticating to, the local user database?

      Regardless, all the auth scenarios have been tested and verified working. There was an issue with certain special characters in certain places in the password making authentication fail (like a trailing +) but those have all since been fixed.

      Check the user's ability to authenticate under Diag>Authentication.

      1 Reply Last reply Reply Quote 0
      • M
        MaxPF
        last edited by Jan 16, 2015, 4:07 PM

        I am just using the local DB and the authentication test in the diagnostics works. I restarted the OpenVPN service and created a different test user with only letters and numbers in the password and got the same error.

        Running out of ideas, I updated to the latest build (Fri Jan 16 07:51:08 CST 2015) and when it came back online it started working again. I am not sure if it was something in the update or the reboot that fixed the issue, but all is good now.

        Thanks.

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received