WireGuard configuration

This page assumes that you have a WireGuard server configured on interface wg0. You can then generate the new client's keys, feed them to this page and it will show configuration files that can be used by the client.

Take a look at an example configuration to learn more.

Server

Query using wg show wg0 public-key
Server's public IP address or a hostname. Query the port using wg show wg0 listen-port
Generate using wg genpsk

Client

Generate both keys using wg genkey | tee private.key | wg pubkey > public.key
Unless generated in one go with the public key, generate one using wg genkey
IPv4 address to assign to the client and its netmask in the CIDR format.
IPv6 address to assign to the client and its netmask in the CIDR format.