Highlighted
Member
Posts: 279
Registered: ‎11-29-2013
Kudos: 263
Solutions: 7
Accepted Solution

VPN Passwords

Using L2TP/IPSec to add a user you use:

set vpn l2tp remote-access authentication local-users username bademployee password testpassword

to delete a user you use:

delete remote-access authentication local-users username bademployee

 

But how do you change a password or a user name ?

To show the users:

show vpn l2tp remote-access authentication local-users

 

The only way that I can see to do it is delete the user and add them back with the correct password???

Is this the same to change a username?


Accepted Solutions
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: VPN Passwords

You can set the password again to change it, for example:

root@ubnt# set vpn l2tp remote-access authentication local-users username foo password 123
[edit]       
root@ubnt# show vpn l2tp remote-access authentication local-users
+username foo {
+    password 123
+}       
[edit]       
root@ubnt#
root@ubnt# set vpn l2tp remote-access authentication local-users username foo password 456
[edit]
root@ubnt# show vpn l2tp remote-access authentication local-users
+username foo {
+    password 456
+}
[edit]
root@ubnt#

 

View solution in original post


All Replies
Regular Member
Posts: 745
Registered: ‎11-06-2013
Kudos: 230
Solutions: 26

Re: VPN Passwords

[ Edited ]
I have never setup the L2TP , so I would have to see your config file. If the password is on its own line, then you can change just that.
Generally like this: delete remote-access authentication local-users username bademployee password
The set new one: set remote-access authentication local-users username bademployee password testpassword
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: VPN Passwords

You can set the password again to change it, for example:

root@ubnt# set vpn l2tp remote-access authentication local-users username foo password 123
[edit]       
root@ubnt# show vpn l2tp remote-access authentication local-users
+username foo {
+    password 123
+}       
[edit]       
root@ubnt#
root@ubnt# set vpn l2tp remote-access authentication local-users username foo password 456
[edit]
root@ubnt# show vpn l2tp remote-access authentication local-users
+username foo {
+    password 456
+}
[edit]
root@ubnt#