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
Thanks for replying
Sorry I’m quite a newbie with Linux.
Currently the routing table looks like this (VPN is still connected):
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?
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
128.0.0.0/1 via 10.8.3.1 dev tun0
Once changed the files, you would need to restart the service I guess
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.