Installation
wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
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...