VPN Wizard — Bash Script for Fully Automated WireGuard VPN Setup

Script VPN Wizard — Bash Script for Fully Automated WireGuard VPN Setup

VPN Wizard​

Copyright holder: AlexFrost
Type: Bash script
Supported distributions:
Ubuntu LTS 24.04 only!


Vpn2
Vpn1

Secure access in seconds. One script for a fully working server and client configuration.

Key Features​

vpn-wizard.sh is a fully automated Bash script designed to set up a secure WireGuard VPN on Ubuntu-based systems. It performs the following tasks:
  • Detects your main network interface and server IP address
  • Generates server and client key pairs
  • Creates configuration files (/etc/wireguard/wg0.conf and client1.conf)
  • Enables IP forwarding and sets up NAT via iptables
  • Generates a QR code for mobile client setup (via qrencode)
  • Applies correct file permissions for security
  • Installs required packages if missing (wireguard, curl, qrencode)
  • Starts and enables the WireGuard service
The result is a fully functional, secure VPN setup with a ready-to-use client config — ideal for laptops or mobile devices.

How to Use​

Make the script executable:
chmod +x vpn-wizard.sh.x
Run the script:
./vpn-wizard.sh.x
Scan QR code by smartphone or use client1.conf

Download VPN Wizard​

View hidden content is available for registered users!
Top