Skip to content

Instantly share code, notes, and snippets.

@stueja
Created July 20, 2020 20:33
Show Gist options
  • Save stueja/db40426caee07f1f5a0953da8e66eb30 to your computer and use it in GitHub Desktop.
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