vpn_client1_custom=remote-random
vpn_client2_custom=
vpn_client_custom=remote-random
Thanks. On my HND 86u there's 3 variables and it's base64 encoded, so definitely need to handle it differently across platformsJohn's fork:
Code:vpn_client1_custom=remote-random vpn_client2_custom= vpn_client_custom=remote-random
# nvram get vpn_client1_custom
remote-random
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
remote-cert-tls server
pull
fast-io
Ok so non-hnd routers store the values as literals. Thanks!Maybe you meant this:
Code:# nvram get vpn_client1_custom remote-random tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun ping 15 ping-restart 0 ping-timer-rem remote-cert-tls server pull fast-io
Jun 20 04:00:01 RT-AC86U warning nvpnmgr: Retrieving recommended VPN server using NordVPN API
Jun 20 04:00:03 RT-AC86U warning nvpnmgr: Updating VPN client 2 to recommended NordVPN server
Jun 20 04:00:03 RT-AC86U notice rc_service: service 20770:notify_rc stop_vpnclient2
Jun 20 04:00:06 RT-AC86U notice rc_service: service 21555:notify_rc start_vpnclient2
Jun 20 04:00:07 RT-AC86U warning nvpnmgr: VPN client 2 updated successfully (UK1398 Standard TCP)
They all seem to base64 encode (except John’s fork). But HND models have to split it over multiple nvram vars.Ok so non-hnd routers store the values as literals. Thanks!
agh it's always complicated cross-modelThey all seem to base64 encode (except John’s fork). But HND models have to split it over multiple nvram vars.
https://github.com/RMerl/asuswrt-me...r/www/Advanced_OpenVPNClient_Content.asp#L596
How granular can you get with this? Does it setup NordVPN for the whole network or segment it or specify one client to use it? I can see a need for each. Once again thanks for running with this project @Jack YazI think I'm at a point where it's stable enough for alpha testing, if anyone wants to have a go? https://github.com/jackyaz/nvpnmgr
No WebUI yet, but should be fully functional for CLI menu
sets up the specified VPN client (1-5) and the required vpn config. doesn't touch policy routing settingsHow granular can you get with this? Does it setup NordVPN for the whole network or segment it or specify one client to use it? I can see a need for each. Once again thanks for running with this project @Jack Yaz
I've changed it so Accept DNS and Block clients will now only be set if the IP address for the VPN client is blank, i.e. if this is the first time the VPN is being set upPossible to custom edit the dns configuration setting?
I use diversion and every time I update the VPN using the script I need to change the dns setting the “disabled” afterward.
Yes, but I see you’re already there.agh it's always complicated cross-model
EDIT: What's a good way to test for John's fork, uname -o?
I considered that but left as it currently is since the plain text variant is next to it in the code, plus it can be checked in the Custom Config section of the VPN client screen for the curious/paranoidYes, but I see you’re already there.
If you need to encode/decode base64 in your script, you can use openssl enc -a to encode and openssl enc -d -a to decode. It might be more “transparent” than setting a user’s nvram var to a “mysterious” base64 encoded string.
If only I used a VPN client, that would be me!for the curious/paranoid
I might change it in the develop branch, TBD. Just finished tweaking the CLI code to read/write to a config file in preparation for the WebUI to do the sameI considered that but left as it currently is since the plain text variant is next to it in the code, plus it can be checked in the Custom Config section of the VPN client screen for the curious/paranoid
what's the advantage ofYes, but I see you’re already there.
If you need to encode/decode base64 in your script, you can use openssl enc -a to encode and openssl enc -d -a to decode. It might be more “transparent” than setting a user’s nvram var to a “mysterious” base64 encoded string.
openssl enc -a
openssl bas64
-a and -base64 are equivalent.what's the advantage of
verusCode:openssl enc -a
if any?Code:openssl bas64
-a/-base64 base64 encode/decode, depending on encryption flag
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
Updated Hue Utility - huetil Control and manage your Hue system from Asuswrt-Merlin or Raspbian | Asuswrt-Merlin AddOns | 1 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!