Page 1 of 1
NordVPN doesn't seem to work
Posted: Fri Jan 24, 2020 1:41 pm
by lazypanda
Hi all
Was hoping you can help
I've installed DietPI and have also added the NordVPN add-on.
It seem to connect without any problem, tried with various servers.
However when I try to test it by going to
whatsmyipaddress.com or similar, it keeps showing my real IP.
I was wondering if I need to configure anything else to actually mask my IP for online presence?
Thank you!
Re: NordVPN doesn't seem to work
Posted: Fri Jan 24, 2020 2:18 pm
by Joulinar
Hi,
short question. Are you trying to connect to whatsmyipaddress.com from your local computer or from your DietPi system?
Re: NordVPN doesn't seem to work
Posted: Fri Jan 24, 2020 2:29 pm
by lazypanda
I use VNC on my local PC to connect to the machine where DietPi is installed, and open browser on the DietPI desktop.
Re: NordVPN doesn't seem to work
Posted: Fri Jan 24, 2020 3:25 pm
by Joulinar
unfortunetly I don't have a NordVPN account to check and verify. But pls can you check your routing table. Would be good to know how it looks like once you have the VPN connected
Re: NordVPN doesn't seem to work
Posted: Fri Jan 24, 2020 4:02 pm
by lazypanda
Thanks for replying

Sorry I'm quite a newbie with Linux.
Currently the routing table looks like this (VPN is still connected):
Code: Select all
root@DietPi:~# ip route
0.0.0.0/1 via 10.8.3.1 dev tun0
default via 192.168.2.1 dev eth0
5.181.235.19 via 192.168.2.1 dev eth0
10.8.3.0/24 dev tun0 proto kernel scope link src 10.8.3.23
128.0.0.0/1 via 10.8.3.1 dev tun0
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.112
If it's not correct, how do I update the routing to go via the VPN tunnel?
Re: NordVPN doesn't seem to work
Posted: Sat Jan 25, 2020 9:46 am
by Joulinar
Hi,
can you check if the following is active in your VPN config file
Re: NordVPN doesn't seem to work
Posted: Sat Jan 25, 2020 12:25 pm
by lazypanda
HI
Where do I find this configuration file?
I found two files in /var/lib/dietpi/dietpi-software/installed/dietpi-nordvpn:
settings_dietpi.conf
settings_ovpn.conf
The first one has my credentials and protocol and server name, the second one only my credentials.
Do I just add the redirect line to the first file?..
Cheers,
Re: NordVPN doesn't seem to work
Posted: Sat Jan 25, 2020 3:49 pm
by Joulinar
Hi,
as I said, I don't have NordVPN installed. Therefore I'm not able to verify it.
I checked the script located on /DietPi/dietpi/misc/dietpi-nordvpn. It seems both files are used. So you could try to enter it in one of the files and check how the default gateway changed. But without grantee.
Default gateway should point to the
tun0 interface
Once changed the files, you would need to restart the service I guess
Code: Select all
systemctl daemon-reload
systemctl restart dietpi-nordvpn.service
Re: NordVPN doesn't seem to work
Posted: Wed Apr 01, 2020 4:03 pm
by oliverjames19931
lazypanda wrote: ↑Fri Jan 24, 2020 1:41 pm
Hi all
Was hoping you can help
I've installed DietPI and have also added the NordVPN add-on.
It seem to connect without any problem, tried with various servers.
However when I try to test it by going to
whatsmyipaddress.com or similar, it keeps showing my real IP.
I was wondering if I need to configure anything else to actually mask my IP for online presence?
Thank you!
delete it and do it again it might resolve your issue.
Re: NordVPN doesn't seem to work
Posted: Thu Apr 02, 2020 1:41 pm
by MichaIng
Those settings files do not allow to add custom commands/routing tables etc. Those contain only the present defined variables. settings_ovpn.conf basically doubles the credentials, only since OpenVPN requires it with special format (username first line, password second line, nothing else).
If you need to run certain commands after VPN has been established (and before it closes), use the
Edit Up +
Edit Down options from
dietpi-nordvpn menu.
However, the routes are and should be handled correctly by OpenVPN.
0.0.0.0/1 via 10.8.3.1 dev tun0 +
128.0.0.0/1 via 10.8.3.1 dev tun0 basically should lead to all requests being routed through the VPN, if there is no closer route defined for a certain IP range.
How is whatsmyipaddress.com resolved?
Ah and btw the used OpenVPN .ovpn file can be found here (as it depends on you chosen particular NordVPN server):