Install WireGuard on a VPSInstall WireGuard on a VPS
Install WireGuard on a VPS

Install WireGuard on a VPS

Tags
Server
VPN
WireGuard
Published
Jan 3, 2022
Author

Installation

wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
Installation/ management snippet | Used also to add/ remove clients. Should be stored under an alias

Firewall Configuration

ufw allow 51820
# Or any other chosen port
ufw enable
# To apply rules

# Other notable ports
ufw allow 80
ufw allow 443
ufw allow 22

#To allow a protocol
ufw allow 22/tcp
 
💡
Tip Add the installation command to ~/.bashrc file as an alias in order to fire it quickly when adding or removing new clients alias wg='wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh`

Alternatives

A good alternative to this installation method would be via wg-easy which is a dockerized solution with a GUI for managing clients.

Loading Comments...