What's new

Changing OpenVPN client password via CLI

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

mkaand

Occasional Visitor
Hello,

I have ASUS RT-AX86U. I use free VPN service (VPNBook) they change vpn password around every two weeks. I have another setup to get actual password. Question:

1.How can I get saved OpenVPN password inside the router via CLI (Should be like nvram set openvpncl_pass="$newpassword";)
2.How can I set new updated password via CLI (Should be nvram set openvpncl_pass="$newpassword";)

Any support, I appreciate.
 
So Merlin, not stock.

Code:
nvram get vpn_client1_password
nvram get vpn_client2_password
...etc.
Thanks buddy. Yes it is Merlin, but how about commit and set new password?
 
It's what you wrote in post #1.
Code:
nvram set vpn_client1_password="dsadasdasdada"
nvram commit
You'd then need to restart the relevant VPN client. I can't remember the exact command for that off the top of my head so search the Merlin forum for that.
 
Thank you
It's what you wrote in post #1.
Code:
nvram set vpn_client1_password="dsadasdasdada"
nvram commit
You'd then need to restart the relevant VPN client. I can't remember the exact command for that off the top of my head so search the Merlin forum for that.
Thank you very much 👍
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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