Skip to content

Instantly share code, notes, and snippets.

@un-ro
Created August 20, 2020 02:26
Show Gist options
  • Select an option

  • Save un-ro/7b6a8af3ca04b0bc139ef229307f08d7 to your computer and use it in GitHub Desktop.

Select an option

Save un-ro/7b6a8af3ca04b0bc139ef229307f08d7 to your computer and use it in GitHub Desktop.
Wireguard VPN config file template for client.
# Interface and Peer are using server configuration
# PrivateKey, PublicKey, Address, MTU, Endpoint are from server. Connection will fail if not match.
# DNS, AllowedIPs, PersistentKeepalive are configurable as you know what to do.
# VPN use 0.0.0.0 to block all conenction from 1st connection (Ethernet / Internet)
[Interface]
PrivateKey =
Address =
DNS = 8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844
MTU =
[Peer]
PublicKey =
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint =
PersistentKeepalive = 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment