NordVPN not connected Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
trendy
Posts: 282
Joined: Tue Feb 25, 2020 2:54 pm

Re: NordVPN not connected

Post by trendy »

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

Code: Select all

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1
From the PC do a traceroute to the 8.8.8.8 and post here the result.
hansbl
Posts: 9
Joined: Tue Nov 24, 2020 11:11 am

Re: NordVPN not connected

Post by hansbl »

Uncommented the line.

Code: Select all

Tracing route to dns.google [8.8.8.8]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  fritz.box [192.168.178.1]
  2     1 ms     1 ms     1 ms  002-000-143-136.dynamic.caiway.nl [136.143.0.2]
  3     4 ms     3 ms     3 ms  cn-aml-vkw-cr15-be2002-2010.caiw.net [62.45.30.249]
  4     4 ms     3 ms     3 ms  72.14.223.133
  5     3 ms     3 ms     3 ms  108.170.241.129
  6     3 ms     3 ms     3 ms  108.170.236.223
  7     3 ms     3 ms     3 ms  dns.google [8.8.8.8]

Trace complete.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: NordVPN not connected

Post by Joulinar »

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?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 282
Joined: Tue Feb 25, 2020 2:54 pm

Re: NordVPN not connected

Post by trendy »

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.
hansbl
Posts: 9
Joined: Tue Nov 24, 2020 11:11 am

Re: NordVPN not connected

Post by hansbl »

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

Code: Select all

Tracing route to dns.google [8.8.8.8]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  DietPi [192.168.178.27]
  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
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: NordVPN not connected

Post by Joulinar »

pls can you check if following is set to 1

Code: Select all

sysctl net.ipv4.ip_forward
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
hansbl
Posts: 9
Joined: Tue Nov 24, 2020 11:11 am

Re: NordVPN not connected

Post by hansbl »

It is.

Code: Select all

root@DietPi:~# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
User avatar
trendy
Posts: 282
Joined: Tue Feb 25, 2020 2:54 pm

Re: NordVPN not connected

Post by trendy »

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

Code: Select all

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.
Last edited by trendy on Wed Nov 25, 2020 9:15 pm, edited 2 times in total.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: NordVPN not connected

Post by Joulinar »

@trendy

In case of NordVPN, OpenVPN is used as VPN technology ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 282
Joined: Tue Feb 25, 2020 2:54 pm

Re: NordVPN not connected

Post by trendy »

Thanks for the reminder @Joulinar, I have updated the instructions.
Post Reply