These are minimal instructions to quickly get a WireGuard server up and running:
Create a Debian or Ubuntu based server with the following software and configuration:
sudo apt update
sudo apt install wireguard iptables -y
sudo sysctl -w net.ipv4.ip_forward=1
Bring up the WireGuard interface on the server:
sudo wg-quick up server
Notes on the usage of this tool:
[Interface]
Address = 10.10.1.1
ListenPort = 51820
PrivateKey = loading
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
PostUp = ip6tables -A FORWARD -i %i -j ACCEPT; ip6tables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
PreDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
PreDown = ip6tables -D FORWARD -i %i -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
PublicKey = loading
AllowedIPs = 10.10.1.2/32
[Interface]
Address = 10.10.1.2
PrivateKey = loading
DNS = 1.1.1.1
[Peer]
Endpoint = server-dns-or-ip:51820
PublicKey = loading
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25