Skip to content

Instantly share code, notes, and snippets.

@stueja
Created July 20, 2020 20:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stueja/db40426caee07f1f5a0953da8e66eb30 to your computer and use it in GitHub Desktop.
Use wireguard udp via web sockets using wstunnel
[Interface]
Address = 1.2.3.5/32
PrivateKey = zyx=
#DNS =
PreUp = /usr/local/bin/wstunnel -v --udp --udpTimeoutSec -1 -L 127.0.0.1:12345:127.0.0.1:12345 wss://public.ip.of.server &
PostDown = pkill wstunnel
[Peer]
EndPoint = 127.0.0.1:12345
PublicKey = xyz=
AllowedIPs = 1.2.3.0/24
PersistentKeepalive = 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment