nordvpn-wireguard-extractor

NordVPN WireGuard Config Extractor with QR

A lightweight Bash script that connects to multiple NordVPN servers in a given country using the NordLynx (WireGuard) protocol, extracts their WireGuard configuration, and generates ready-to-use .conf files along with terminal-displayed QR codes for mobile use.

Features

Requirements

sudo apt update
sudo apt install wireguard-tools qrencode curl jq -y

Usage

sudo bash extract-multiple.sh [2-letter COUNTRY CODE]

Example:

sudo bash extract-multiple.sh de  # Extracts 5 DE configs

Output

For each successful connection, a file like de456.nordvpn.com.conf is created. Each file contains a complete WireGuard config, and a QR code is displayed for easy import into the WireGuard mobile app.

Security Notes

License

MIT License — feel free to use and modify. Stars appreciated!

Available Translations