Skip to content

Instantly share code, notes, and snippets.

@mortn
Created March 18, 2023 11:54
Show Gist options
  • Save mortn/8f007ee4cd606ecd5248747ae174e242 to your computer and use it in GitHub Desktop.
Save mortn/8f007ee4cd606ecd5248747ae174e242 to your computer and use it in GitHub Desktop.
Wireguard client configuration example
[Interface]
PrivateKey = [local private key]
Address = [local IP matching what may be assigned on remote peer]/32
#DNS = [IP of remote DNS service if needed]
#PostUp = ip r add 172.12.0.0/22 dev wg0
#PostDown = ip r del 172.12.0.0/22
[Peer]
PublicKey = [remote peer public key]
AllowedIPs = [remote CIDR block]
Endpoint = [remote peer public IP]:51820
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment