This repo contains a script to install and configure a WireGuard server on Linux. Currently tailored to Ubuntu or Debian. Along with WireGuard, the script sets up UFW. UFW is then configured to allow SSH and WireGuard by default. The install script should be run as root. This can be accomplished easily by dropping into a root shell session with sudo -s
- just remember to exit
when you're done.
There is also a script to assist with installing the client on a Mac.
./install-wg-host.sh [host ip] [client ip] [dns ip]
Note [host ip]
and [client ip]
are new IPs and should not be in use anywhere else on your network.
example
./install-wg-host.sh 192.168.10.1 192.168.10.2 192.168.1.1