- Download script and make it executable.
curl 'https://raw.githubusercontent.com/soohoowoohoo/wireguard-setup/master/server-setup.sh' --silent > server-setup.sh chmod +x server-setup.sh
- Run server setup script with sudo.
sudo ./server-setup.sh
- Add clients to your WireGuard server.
sudo wg set wg0 peer ${CLIENT_PUBLIC_KEY} allowed-ips ${WG_SERVER_PRIVATE_IPS}
- WireGuard server address space is 256 addresses. (i.e. 10.0.0.0/24)
- WireGuard server port is 51820.
- Only IPv4 addresses supported.
- Linux distro is Ubuntu 20.04LTS.
- Download script and make it executable.
curl 'https://raw.githubusercontent.com/soohoowoohoo/wireguard-setup/master/test-peer-setup.sh' --silent > test-peer-setup.sh chmod +x test-peer-setup.sh
- Run test peer setup script with sudo.
sudo ./test-peer-setup.sh
- Start the VPN tunnel.
sudo wg-quick up wg0
- Verify the tunnel works.
curl 'https://ifconfig.me'
- Of the 256 usable addresses (0-255), address 255 does not work.