WireGuard autoinstaller written in Bash
This script will install automatically the Wireguard server and generate client configuration files for a secure connection.
wget http://git.io/Jff1k -qO wg.sh && bash wg.sh
git clone https://github.com/its0x08/wg-install.git cd wg-install bash wg.sh
You can run it again to generate more users after the first run. Reboot your server to apply all settings.
wg-quick up config_name
The script can be configured by setting the following environment variables:
Copy the file
/root/client-wg0.conf from a remote server to your local PC
/etc/wireguard/wg0.conf and run
sudo systemctl start [email protected] or
you can use the QR code generated by this script to auto-add mobile clients.
To check VPN status, run