Using NordVpn as a client

Hi,

I’m trying to create the config file so that I can use NordVpn to send all of my traffic over. I’ve downloaded all of the ovpn files from NordVpn and I’ve created the CA. It’s now asking me for a conf file. Do we have a template file with some guidance to helps vpn newbies such as myself configure these things? Thanks.

I did use NordVPN a while back and this is what I have done to make it work. It was a year ago so it might need some tweaking but at least for a start… :slight_smile:

Install packages needed for NordVPN:
opkg update
opkg install openvpn-openssl luci-app-openvpn

Edit the .ovpn file and add there a path where you are going to store a password (since NordVPN needs credentials)
auth-user-pass <path>

  • create that file and fill in user and password, make that file readable only for root chmod 400 <filename> (for some degree of security, don’t know any other way how to securely store it)
    I used below path to upload the OpenVPN configuration file:
    /etc/openvpn

Now configure OpenVPN (copy the whole section):
echo >> /etc/config/openvpn << EOF
config openvpn 'NordVPN'
option 'config' '/etc/openvpn/<file.ovpn>'
option 'enabled' '1'
EOF

Create a new interface (copy the whole section):
echo >> /etc/config/network << EOF
config interface 'NordVPN'
option proto 'none'
option ifname 'tun0'
EOF

Create a new firewall rule (copy the whole section):
echo >> /etc/config/firewall << EOF config zone option name 'VPN' option input 'REJECT' option output 'ACCEPT' option forward 'REJECT' option masq '1' option mtu_fix '1' option network 'NordVPN'
config forwarding option dest 'VPN' option src 'lan' EOF

Since new interface was created and new firewall rules, run:
/etc/init.d/firewall reload /etc/init.d/network restart

Then I started the “VPN” from LUCI web interface.

Disclameir: Since I am no expert and whatever I did was just put together a couple of setups found on the internet that just worked, it might not be correct.
So if anybody else wants to correct my mistakes, please do so. :slight_smile:

1 Like