Skip to content

Instantly share code, notes, and snippets.

@insdavm
Created February 16, 2019 18:45
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 insdavm/1ab5bb9d106e4113eae7e72de6f50ce1 to your computer and use it in GitHub Desktop.
Save insdavm/1ab5bb9d106e4113eae7e72de6f50ce1 to your computer and use it in GitHub Desktop.
for GlassOnion420
# SERVER wg0.conf
[Interface]
PrivateKey = <PRIVKEY of SERVER>
Address = 10.0.0.1/24
ListenPort = 51820
[Peer]
PublicKey = <PUBKEY of CLIENT 1>
AllowedIPs = 10.0.0.2/32
# CLIENT wg0-client.conf
[Interface]
PrivateKey = <PRIVKEY of CLIENT 1>
Address = 10.0.0.2/24
[Peer]
Endpoint = 192.168.1.2:51820
PublicKey = <PUBKEY of SERVER>
AllowedIPs = 0.0.0.0/0 # Traffic destined for IPs in this range will go through the tunnel, so in this case, all traffic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment