Easily install and configure a WireGuard VPN on your Linux server with this simple bash script.
WireGuard is a high-performance, secure, and lightweight VPN protocol that can be set up quickly and used in various network scenarios. This script simplifies the installation process, allowing you to create a point-to-point VPN where all client traffic is routed through an encrypted tunnel to the server. The server then applies NAT, making it appear as if the client is browsing the web using the server's IP address.
- Supports IPv4 and IPv6: Ensuring compatibility with modern networks.
- Easy Client Management: Add or remove clients by simply rerunning the script.
- Systemd Integration: Automatically create a systemd service for efficient management.
If WireGuard doesn’t meet your needs, consider our OpenVPN installer.
This script supports the following Linux distributions:
- AlmaLinux 8 or higher
- Arch Linux
- CentOS Stream 8 or higher
- Debian 10 or higher
- Fedora 32 or higher
- Oracle Linux
- Rocky Linux 8 or higher
- Ubuntu 18.04 or higher
Follow these steps to install WireGuard on your server:
-
Download the Script:
curl -O https://raw.githubusercontent.com/AnonVM/Wireguard-Installer/main/setup.sh
-
Make the Script Executable:
chmod +x setup.sh
-
Run the Script:
./setup.sh
The script will automatically install the WireGuard kernel module and tools, configure the server, and generate a client configuration file. Rerun the script anytime to manage clients.
For the best performance and value, consider these cloud providers:
- AnonVM: Best privacy focused hosting provider