Linux
Debian 12
- First install
wireguardon your server, as root run the following commands:
apt install wireguard resolvconf
- Download the Linux configuration from your IP address. Copy the
pi0.confto:
/etc/wireguard/
- Start the service:
systemctl start wg-quick@pi0
- If you want to start the service on boot then:
systemctl enable wg-quick@pi0
- Check the Wireguard interface is up:
wg show
- You are now online. Remember to allow applications through the firewall.
- (Recommended) Install the WireGuard watchdog script to improve connection reliability:
The watchdog script monitors your WireGuard connection and automatically restarts it if network conditions change (such as when your ISP changes your IP address). This prevents connection hangs and improves uptime reliability. Install the WireGuard watchdog script to ensure your VPN connection stays stable.
