WireGuard Configurator

The ultimate tool for managing your WireGuard VPN server.

Get Started

Features

Easy Installation

Install WireGuard and set up a VPN server with one line of code.

User Management

Add, remove, and list users with automatic QR code generation.

Monitoring & Tools

Install speedtest-cli, nload, and other tools for easy monitoring.

Prerequisites

Ensure the following before installation:


  • Linux distribution (Ubuntu 22.04 recommended)
  • Root or sudo access
  • Stable internet connection

The following packages will be installed automatically:


  • WireGuard
  • curl
  • qrencode

Quick Start: One-Line Installation

Using Curl

curl -O https://raw.githubusercontent.com/Mailootje/Wireguard_Setup_Ubuntu_22.04/main/wireguard.sh && chmod +x wireguard.sh && ./wireguard.sh

Using Wget

wget https://raw.githubusercontent.com/Mailootje/Wireguard_Setup_Ubuntu_22.04/main/wireguard.sh && chmod +x wireguard.sh && ./wireguard.sh

Key Functionalities

  • Install and Configure WireGuard: Generates keys, sets up the server, and configures clients.
  • Add Users: Creates client configurations and displays QR codes.
  • Monitor Status: Displays the current status of the server and connected clients.
  • Uninstall WireGuard: Fully removes WireGuard and its configurations.

Adding Users

When you add a user, the script generates a configuration file and displays a QR code for easy scanning and import into the WireGuard app.

Example Client Configuration:

                    [Interface]
                    PrivateKey = CLIENT_PRIVATE_KEY
                    Address = 10.0.0.X/24
                    DNS = 8.8.8.8
                    
                    [Peer]
                    PublicKey = SERVER_PUBLIC_KEY
                    Endpoint = SERVER_PUBLIC_IP:51820
                    AllowedIPs = 0.0.0.0/0
                    

Uninstallation

If you need to remove WireGuard completely, you can select option 10 from the main menu. This will completely uninstall WireGuard and remove all associated configuration files.

Warning: This action is irreversible and will delete all data related to WireGuard on your server.

Download the Script

Click the button below to download the WireGuard setup script.

Download Now

Source Code

Click the button below to go to the source code on Github.

Get me to the code