-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NordVPN + RPi4 support #216
Comments
I would like to request a step-by-step guide for setting up a Raspberry Pi with the NordVPN Linux client to act as a VPN gateway. support.nordvpn.com has some guides for setting up routers, pfsense, and other manual setups, but none specifically for gateways. Generic online guides seem to be limited to OpenVPN configurations. Advice posted on forums may be outdated since there have been changes following v3.16.4 ( #50 ). Using the Linux CLI makes it much easier to change servers, and of course to use NordLynx and all the other features that the CLI offers. However, config changes, additional iptables rules, allowlist considerations, etc. can seem very convoluted especially for a novice. A guide to the recommended setup and settings directly from the NordVPN Linux team would be ideal. As an example, some very well written and comprehensive how-to guides are available for Meshnet on https://meshnet.nordvpn.com/ . It would be very much appreciated! Thank you for your consideration. |
@ShadowEliteRyze can you run |
Hi @bartoszWojciechO , I managed to get it to work by downgrading from RPi OS Bookworm back to Bullseye. Kind regards, |
Well, hopefully this helps you or someone out trying to achieve just that!
You can reboot after this, it should connect right away. You can check the status with For any machine to use the RPI's VPN, you have to setup the machine to use the IP address of your RPI as their gateway. For example, my TV had the following IP config with DHCP:
I changed it to be static config as:
Hope this helps you out, if not then some one else trying to do the same thing :) |
Thanks for the detailed guide! Very informative and helpful. |
Hello everyone!
I've had my RPi4 set up as a great travel router for the past year now and it has been working great, until yesterday.
I use NordVPN because this allows me to connect to their obfuscated servers using their official app.
This is what the setup looked like:
[personal device / devices] -> ethernet [RPi4 w/ NordVPN] -> Wi-Fi [ISP Router / Hotel Internet]
However, starting yesterday, I was forced to update the NordVPN app and the Raspberry Pi OS Lite because NordVPN would no longer log in (possibly depreciated due to the old version I was using), and suddenly, my set up doesn't work anymore.
In order to get it to work previously, I would set eth0 with a static IP address by:
sudo nano /etc/dhcpcd.conf
and then adding:
to the bottom of the file
I then would install dnsmasq and add the following code to the dnsmasq conf file
Then I would change sysctl conf to uncomment net ipv4 ip forward = 1
However, this set up doesn't seem to work anymore, and my ethernet devices, while getting the IP address assigned from the RPi4, are not connecting to the internet anymore.
I noticed after running ifconfig, that the nordvpn interface has changed from tun0 to nordtun, so I tried altering the rc.local file to say
iptables -t nat -A POSTROUTING -o nordtun -j MASQUERADE
but this still hasn't worked.
Any advice? I have been trying to get this to work again but with no luck so far!
I have tried downgrading the version of nordvpn to 3.15.5 and also rolled back the version of RPi OS to pre-bookworm version (bullseye) and I still can't get it to work.
Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: