kamoj
Very Senior Member
The most convenient way is to use an USB-device as described in Voxel documentation.
This is a Lazy Dog for those who want to do it without USB.
The short example:
The long explanatory way:
Pre-requisites:
Do It:
This is a Lazy Dog for those who want to do it without USB.
The short example:
Code:
mkdir -p /etc/openvpn/config/client/
cd /etc/openvpn/config/client/
echo "username" >nordvpn.auth
echo "password" >>nordvpn.auth
server="$(curl --silent 'https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations' | jq --raw-output 'limit(1;.[])|.hostname')"
wget -O /etc/openvpn/config/client/nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/$server.udp1194.ovpn
sed -i 's/auth-user-pass/auth-user-pass nordvpn.auth/g' nordvpn.ovpn
/etc/init.d/openvpn-client start
The long explanatory way:
Pre-requisites:
- Preferrable latest version of Voxel Firmware for your router, e.g.:
For R7800:
https://www.snbforums.com/threads/custom-firmware-build-for-r7800-v-1-0-2-65sf.55917/
For R9000:
https://www.snbforums.com/threads/custom-firmware-build-for-r9000-v-1-0-4-27hf-1-0-4-27hf-hw.55117/
- A telnet client program
Hold down the Windows Key, then press the “R“ key.
The Run dialog box appears. In the Open: window, type:
pkgmgr /iu:”TelnetClient”
Click OK - Internet connection
Do It:
- Logon (From your web-browser):
http://www.routerlogin.net
- Enable Telnet:
http://www.routerlogin.net/debug.htm
Check (Set a tick in the box for) "Enable Telnet". (No apply needed)
- Login to the router using telnet:
Hold down the Windows Key, then press the “R“ key.
The Run dialog box appears. In the Open: window, type:
cmd
Click OK.Code:telnet www.routerlogin.net
- Create the directory to put your OpenVPN-client configuration:
Code:mkdir -p /etc/openvpn/config/client/
- Change to the directory:
Code:cd /etc/openvpn/config/client/
- Create your NordVPN login credentials (user id and password) file:
Code:echo "username" >nordvpn.auth echo "password" >>nordvpn.auth
- Download your preferred server configuration file from NordVPN:
Download the server configuration file from NordVPN
In a web-browser go to: https://nordvpn.com/ovpn/
Find the line with the server you want to connect to.
Right-click "Download UDP" to the right of the server name and chose: "Copy link address"
In your router telnet windows, write (ending with a blank/space character, and without pressing enter!)
Code:wget -O nordvpn.ovpn
Code:wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/uk1000.nordvpn.com.udp1194.ovpn
Download the server configuration file from NordVPN
In a web-browser go to: https://nordvpn.com/servers/tools/
- Adjust server preferences: Select preferred country
- Show advanced options:
"Standard VPN"
Select Security Protocol: "OpenVPN UDP" - Server recommended for you: Show available protocols:
Right-click "Download config" and chose: "Copy link address"
In your router telnet windows, write (ending with a blank/space character, and without pressing enter!) :
Code:wget -O nordvpn.ovpn
Code:wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/se234.nordvpn.com.udp.ovpn
Code:#Use one of these examples depending on where you want to connect: #To get the server recommended by NordVPN (nearest you with lowest load): server="$(curl --silent 'https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations' | jq --raw-output 'limit(1;.[])|.hostname')" wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/$server.udp1194.ovpn #UK: wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/uk1000.nordvpn.com.udp1194.ovpn #US: wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us1859.nordvpn.com.udp1194.ovpn #Sweden: wget -O nordvpn.ovpn https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/se108.nordvpn.com.udp1194.ovpn
- Change the server file to recognize your login information:
Code:sed -i 's/auth-user-pass/auth-user-pass nordvpn.auth/g' nordvpn.ovpn
- Start the OpenVPN-client
Code:/etc/init.d/openvpn-client start
- That's all! The OpenVPN-client will be started automatically at every reboot.
You have to repeat these steps after updating the router firmware.
- To see the log-file:
Code:cat /var/log/openvpn-client.log
- To see status and more info about the OpenVPN-client, install my add-on:
https://www.snbforums.com/threads/k...800-x4s-and-r9000-x10-temperatures-a-o.55063/
Last edited: