![]() Official documentation link to burn Raspbian on to the Micro SD card.Ad blocking using Pi-hole for the devices using the gateway.Ability to find the best server from NordVPN and establish the connection.Thanks to u/4grams on Reddit for pointing that out. NordVPN provides the kill-switch feature with their apps but not for RPi. The RPi will use NordVPN as the provider with a kill-switch to disable Internet in the event of VPN failure.Those devices wanting to use the RPi gateway should be able to edit the ‘gateway’ field under network settings and must be able to connect to the VPN seamlessly. The RPi will be connected to the LAN network with a static IP address.The ‘gateway’ method is pretty much the same for every VPN (be it self-hosted or 3rd party) and the whole purpose is to serve as a guide to configure the Raspberry Pi. Finally I don’t endorse or recommend NordVPN by writing this post. Also hardcoding of credentials in plaintext is not that great either, but pursued in the interest of a test lab setup only and may not be fully suitable for real world use. Also the code snippets will need to be amended to include input validations and sanitizations if you want to run it on any critical / production system. So make sure to adapt the steps if you plan to do it on an existing RPi. As an add-on, I installed Pi-hole for ad & malicious domain blocking with DNS over HTTPS (DoH), with the DNS queries now tunneled over VPN.ĭisclaimer: I’m doing this on a fresh RPi installation with no firewall rules setup etc. Obviously there are better ways of getting this done documented out there, but I wanted a custom setup with a few modifications as you will see. I ran into so many issues (!) specially with the kill-switch part, so just wanted to write this up in case someone else is looking for the same. This is going to be a quick tutorial (/self-reference) to set up Raspberry Pi as a VPN router for NordVPN. Update (Nov/2020): Made a few modifications to make the script work again. #NordVPN #Raspberry Pi #VPN gateway #VPN kill switch #Cloudflared #Pi-hole #DNS over HTTPS #DoH #Pi Zero #RPI #Privacy ☰ Menu Configuring Raspberry Pi as a VPN gateway using NordVPN with best server selection (Pi-hole with DoH setup optional)
0 Comments
Leave a Reply. |