Skip to content

Instantly share code, notes, and snippets.

@colde
Last active September 18, 2019 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colde/c63bafd97b55a57260c6613e669e626d to your computer and use it in GitHub Desktop.
Save colde/c63bafd97b55a57260c6613e669e626d to your computer and use it in GitHub Desktop.
Wireguard config
[Interface]
PrivateKey = CLIENT_PRIVATEKEY
Address = 10.0.10.2/32
DNS = 1.1.1.1
[Peer]
PublicKey = SERVER_PUBLICKEY
AllowedIPs = 10.0.10.2/32, 0.0.0.0/0
Endpoint = SERVER_IP:51820
[Interface]
Address = 10.0.10.1/32
PrivateKey = SERVER_PRIVATEKEY
ListenPort = 51820
[Peer]
PublicKey = CLIENT_PUBLICKEY
AllowedIPs = 10.0.10.2/32
PersistentKeepalive = 25
@AndersMundtDue
Copy link

[Interface]
PrivateKey = SERVERPRIVATE
ListenPort = 51820

[Peer]
PublicKey  = CLIENTPUBLIC
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
[Interface]
PrivateKey = CLIENTPRIVATE

[Peer]
PublicKey = SERVERPRIVATE
Endpoint =  serverip:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment