The Angristan WireGuard Install Script is a popular automation tool that sets up a secure WireGuard VPN server in minutes. It supports Ubuntu, Debian, CentOS, Fedora, Arch Linux, and more. This guide explains how to install and configure WireGuard on Ubuntu using this script.
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh
sudo ./wireguard-install.sh
The interactive menu will guide you through installation, asking for:
After installation, the script creates .conf files in your home directory. These files are used by clients to connect.
Example to add a new client:
sudo ./wireguard-install.sh addclient alice
List all clients:
sudo ./wireguard-install.sh listclients
Remove a client:
sudo ./wireguard-install.sh removeclient alice
Check WireGuard status:
sudo systemctl status wg-quick@wg0
Restart WireGuard:
sudo systemctl restart wg-quick@wg0
Uninstall WireGuard:
sudo ./wireguard-install.sh uninstall
Transfer the .conf file to your client device and connect using the WireGuard client:
wg-quick up alice
Note: HostPalace offers managed VPN hosting solutions with WireGuard pre-configured for secure, high-performance client access.