A simple, interactive WireGuard VPN installer for Debian 13 (Trixie) and other Linux distributions.
- Debian 11, 12, 13 (Trixie)
- Ubuntu 22.04+
- AlmaLinux/Rocky Linux 9+
- CentOS 9+
- Fedora
This script fully supports Debian 13 Trixie, including the testing release. The installer automatically detects Trixie by codename and configures WireGuard appropriately.
- Root privileges (run with
sudoor as root) - Bash shell (not
sh) - A supported Linux distribution
- WireGuard kernel module support
curl -O https://raw.githubusercontent.com/bountyyfi/wireguard-install-script/refs/heads/main/install.sh && sudo bash install.sh- No third-party dependencies: Self-contained script with no external connections
- Interactive setup: Guided installation with prompts for configuration
- Client management: Add and remove VPN clients easily
- DNS options: Choose from popular DNS providers or specify custom resolvers
- IPv6 support: Automatic dual-stack configuration when available
- QR code generation: Scan to configure mobile clients
- Firewall integration: Works with iptables and firewalld
Run the script for the first time to set up the WireGuard server:
sudo bash install.shYou will be prompted to configure:
- Server IP address (auto-detected)
- Public IP/hostname (if behind NAT)
- Listening port (default: 51820)
- First client name
- DNS server for clients
Run the script again after installation to:
- Add a new client
- Remove an existing client
- Uninstall WireGuard
- Exit
sudo bash install.shAfter creating a client, the configuration file is saved in the same directory as the script (e.g., client.conf). You can:
- Import the
.conffile into the WireGuard app - Scan the QR code displayed in the terminal
The installer offers several DNS choices:
- System default resolvers
- Google (8.8.8.8)
- Cloudflare (1.1.1.1)
- OpenDNS
- Quad9
- AdGuard
- Custom DNS servers
- The script requires the WireGuard kernel module (no userspace fallback)
- For containers, ensure the host has the WireGuard module loaded
- Maximum of 253 clients per server
This project is open source.