A simple Bash script to generate WireGuard® configuration files for your AVM FRITZ!Box router directly from your NordVPN® account.
This tool automates the process of extracting the necessary keys and endpoint information from the official NordVPN Linux client.
- Linux OS: A distribution with
apt,dnf, orpacman(e.g., Debian, Ubuntu, Fedora, Arch). - FRITZ!Box Router: Must be running FRITZ!OS 7.50 or newer.
- Active NordVPN Subscription.
-
Clone the repository and make the script executable:
git clone https://github.com/luca1844/NordVPN-to-FRITZ-Box-WireGuard-Config-Generator.git cd NordVPN-to-FRITZ-Box-WireGuard-Config-Generator chmod +x nordvpn-fritz-config.sh -
Run the script with
sudo:sudo ./nordvpn-fritz-config.sh [server]
The script will automatically check for and offer to install any missing dependencies (
curl,jq,wireguard-tools,nordvpn).
-
Interactive Mode (recommended for first use): The script will prompt you for the server you want to connect to.
sudo ./nordvpn-fritz-config.sh
-
Connect to a specific country:
sudo ./nordvpn-fritz-config.sh ch # Switzerland sudo ./nordvpn-fritz-config.sh us # United States
-
Connect to a specialty group:
sudo ./nordvpn-fritz-config.sh P2P
-
Non-Interactive Mode (for automation): The
-yflag accepts all installation prompts automatically.sudo ./nordvpn-fritz-config.sh -y it
After the script runs, it will create a .conf file (e.g., fritzbox-nordvpn-ch123.conf).
- Transfer the generated
.conffile to your computer. - Log in to your FRITZ!Box (e.g.,
http://fritz.box). - Navigate to Internet > Permit Access > VPN (WireGuard).
- Click "Add Connection", choose to import an existing configuration, and upload the
.conffile. - 🚨 CRITICAL: Check the box "Send all IPv4 traffic over the VPN connection".
- Save the settings. Your entire network is now protected.
This project is licensed under the MIT License.