WireGuard is a modern, secure, and fast VPN protocol that’s perfect for Linux servers. This guide will walk you through a quick and easy setup using a well-known installer script — and show you how to create users and scan QR codes for mobile configuration.
Supported distributions:
- AlmaLinux >= 8
✅ Step 1: Install WireGuard Using a One-Line Script
The easiest way to get started is by using the official WireGuard installer from Angristan:
Once you run the script, it will ask you for:
-
The server’s public IP address
-
VPN port (default: 51820)
-
Interface name (default:
wg0
) -
DNS to use for clients
-
Whether to allow IPv4/IPv6 forwarding
After entering the details, it will install WireGuard, enable firewall rules, generate keys, and set up your first client.
✅ Step 2: Add New Users (Clients)
To create more users later, just re-run the script:
Select the option to add a new user, and enter a name when prompted (for example: phone1
, laptop
, clientA
).
Once added, the configuration file will be saved at:
You can use this file on your laptop or mobile app to connect to your VPN.
✅ Step 3: Scan QR Code on Mobile
To configure WireGuard on a mobile device (Android/iOS), it’s easiest to use a QR code.
You can now scan this QR code directly using the WireGuard mobile app.
✅ Bonus Tips
-
All client configurations are stored in:
/etc/wireguard/clients/
-
To restart the VPN service:
-
To view VPN status:
Summary
Using the Angristan WireGuard installer makes deploying a VPN quick, secure, and hassle-free. Whether you’re connecting laptops, mobile devices, or remote employees — WireGuard has you covered.