NordVPN not connected


First of all, I’m really new on Raspberry Pi/Dietpi. So, forgive me my ignorance.
I have the following issue, which is also discussed in the following thread, but I can’t see a solution for me:

I can see my Raspberry Pi (with Pi-Hole) is connected with a NordVPN server if I do: dietpi_nordvpn
If I check my ipaddress it is still showing my own ipaddress.
I don’t know what to do to find out what the problem is.

Can anyone help me?
Thanks in advance.

Hi, can you give some explanation what does this mean. Where do you check what IP address?


Thanks for your reaction.
I am checking it on:


on which device you are doing this check. On you computer or the DietPi device?

On dietpi run the following:

ip -4 addr; ip -4 ro; ip -4 ru

and post here the output


I am doing the check on my PC. My PC is connected to my router which uses the Raspberry Pi, with Pi Hole, as DNS.


root@DietPi:~# ip -4 addr; ip -4 ro; ip -4 ru
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    inet scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    inet brd scope global dynamic eth0
       valid_lft 858491sec preferred_lft 858491sec
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    inet brd scope global tun0
       valid_lft forever preferred_lft forever via dev tun0
default via dev eth0 dev tun0 proto kernel scope link src via dev tun0 via dev eth0 dev eth0 proto kernel scope link src
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default


On your computer, you would need to set your DietPi device as Gateway. Currently your computer is still using your router to access the Internet

Thanks for your reaction, but that doesn’t help.
According to the instructions from Pi Hole, the DNS can also be set in the router so that it is not neccessary to change the settings in all the connected devices.


keep away DNS pls. This has nothing to do on how you access the internet. DNS is just to perform name resolution.

Setting the RPi as gateway doesn’t help. The problem still persists.

Make sure you have forwarding enabled in RPi.
In /etc/sysctl.conf

# Uncomment the next line to enable packet forwarding for IPv4

From the PC do a traceroute to the and post here the result.

Uncommented the line.

Tracing route to []
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms []
  2     1 ms     1 ms     1 ms []
  3     4 ms     3 ms     3 ms []
  4     4 ms     3 ms     3 ms
  5     3 ms     3 ms     3 ms
  6     3 ms     3 ms     3 ms
  7     3 ms     3 ms     3 ms []

Trace complete.

looks like your computer is going straight to your Fritz!Box and not to your DietPi system. Are you sure your computer is using the DietPi device as gateway?

You have not configured the default gateway on the PC properly. It is still using the router, instead of the dietpi.
Also you need to restart sysctl or reboot the dietpi to apply the changes in sysctl.

If I set it up as shown in the attachment, I have no connection at all.
2020-11-25 09_03_14-Greenshot.png

Tracing route to []
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  DietPi []
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *        *        *     Request timed out.
  7     *        *        *     Request timed out.
  8     *        *        *     Request timed out.
  9  ^C

pls can you check if following is set to 1

sysctl net.ipv4.ip_forward

It is.

root@DietPi:~# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

You also need to nat the egress traffic of OpenVPN (NordVPN) interface. Add the following:

sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE

After it works, make sure that you add it in the up/down scripts of the OpenVPN tunnel.


In case of NordVPN, OpenVPN is used as VPN technology :wink:

Thanks for the reminder Joulinar, I have updated the instructions.