I can't add openvpn users

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

torstein

Regular Contributor
Shouldn’t a simple reboot then fix this issue, if maestr0’s observation is correct and related to the issue?
 

mroovers0904

New Around Here
I have exactly the same problem and despite multiple reboots and multiple attempts with different browsers, I cannot add or remove users and the passwords seem to be scrambled because none of the accounts I registered work (all faill with
PLUGIN AUTH-PAM: BACKGROUND: user '(redacted)' failed to authenticate: authentication error
Sep 8 15:35:34 ovpn-server1[5500]: 192.168.1.69:49873 PLUGIN_CALL: POST /usr/lib/openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
 

torstein

Regular Contributor
So how can we properly fix this, without resetting the enture router? Ive been dreading it since my last post.
 

ColinTaylor

Part of the Furniture
So how can we properly fix this, without resetting the enture router? Ive been dreading it since my last post.
Try resetting the usernames and passwords:
Code:
nvram set vpn_serverx_clientlist=""
nvram commit
 

Quan

Occasional Visitor
I have a very similar problem. Every few days, my OpenVPN clients lose complete connectivity. The only to restore connectivity is by deleting each user/password and re-adding them. Since I have about 10 clients, it is faster to restore a settings file restores complete client access. I never had this problem with previous Merlin firmware. Also, the passwords do not display. All that is shown is *****. My firmware version is 386.3_2 on a RT-AC68U.
 
Last edited:

ColinTaylor

Part of the Furniture
I have a very similar problem. Every few days, my OpenVPN clients lose complete connectivity. The only to restore connectivity is by deleting each user/password and re-adding them. Since I have about 10 clients, it is faster to restore a settings file restores complete client access. I never had this problem with previous Merlin firmware. Also, the passwords do not display. All that is shown is *****. My firmware version is 386.3_2 on a RT-AC68U.
Your symptoms are not the same as those being discussed in this thread. I suggest you create a new thread for your problem.
 

faria

Senior Member
I came across the issue last week on a rt-ax86u on 386.3 firmware, to fix it without resetting the device to factory defaults, was by re-setting the ovpn servers to default in the Gui.
Warning: you will loose both servers current settings.
 

mroovers0904

New Around Here
I have no idea what the problem is either, but I threw together the following little script that allows you to define and install your username/passwords directly into nvram. After specifying your own username/passwords, simply open an ssh session and copy/paste it into the window.

Code:
clist='
user1 password1
user2 password2
user3 password3
'
x=''
OIFS="$IFS"; IFS=$'\n'
for i in $clist; do
    x="$x<$(echo $i | awk '{print $1}')>$(echo $i | awk '{print $2}')"
done
IFS="$OIFS"
nvram set vpn_serverx_clientlist="$x"
nvram commit

Just be careful since the script does NOT prevent invalid characters (<>&) or allow embedded blanks in username or password.

It obviously doesn't address the underlying problem, but at least you can get your username/passwords operational. It would be interesting to know if once these were installed correctly using the script, then you hit Apply (or even rebooted), whether they became corrupted again.
Thanks for your script!

I used it to wipe the existing users and create a new user. Afterwards I could not get the user / password combination to work (maybe I did something wrong when pasting the script on the commandline).

However, I could actually use the user interface again to delete the user I'd just created and add new users to the list. These users do work for me so problem solved.

Maybe this approach works for others too.
 

ColinK

New Around Here
I came across the issue last week on a rt-ax86u on 386.3 firmware, to fix it without resetting the device to factory defaults, was by re-setting the ovpn servers to default in the Gui.
Warning: you will loose both servers current settings.
This worked for me! Firmware 386.3: I tried resetting server settings using the "Default" button at the bottomr and I can now add users. Thank you.
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top