WireGuard config generator: server and clients
Get a complete WireGuard setup: the server wg0.conf, a config and a QR code for each client, and the commands to bring it up. Keys are generated in your browser and never leave it.
How the pieces fit
- The server file goes to /etc/wireguard/wg0.conf. Every client is a [Peer] in it with its own address.
- Each client file is imported into the WireGuard app (Windows, macOS, Linux, iOS, Android) or scanned as a QR code.
- All-traffic mode sends everything through the server, like a classic VPN. VPN-subnet mode only reaches the server and the other clients.
Are the keys safe?
Private keys are random numbers from your browser’s cryptographic generator, and the public keys are computed in the page with X25519, the same math as wg genkey and wg pubkey. Nothing is sent to us. If you prefer, generate keys on the server with wg genkey and swap them in.
If it does not connect
- Open the UDP port in the firewall: sudo ufw allow 51820/udp.
- Check the interface name in the PostUp line. A wrong name gives a connection but no internet.
- sudo wg show lists every peer with its latest handshake. No handshake means the packets never arrive.
More tools
- VPS ping test
- VPS cost calculator
- chmod calculator
- Cron generator
- Subnet calculator
- SSH key generator
- Bandwidth calculator
- What is my IP
- Cloud-init generator
- SSH hardening generator
- UFW firewall generator
- Fail2ban config generator
- Nginx reverse proxy generator
- Docker Compose generator
- Systemd service generator
- Swap size calculator
- DNS lookup