wgows
v1.0.5
Published
Wireguard over WebSockets
Readme
wgows
WireGuard over WebSockets
Installation
pnpm i -g wgowsUsage
Client
wgows c -p 3000 -e wss://wgows.example.com
# -p = Local port to bind to
# -e = Server endpointServer
wgows s -wsp 3000 -wgp 51820
# -wsp = Server port to bind to
# -wgp = WG portUsage
- In your WG client config replace the endpoint with the client endpoint/port (e.g.
localhost:3000) - Make sure you add
Table = off- Since the WG client is trying to route all traffic through the local server, you won't be able to access the WS server (infinite loop)
Table = offmeans you need to specify what gets sent over WG (E.g.curl --interface wg0 https://api.ipify.org)
How?
TL;DR: WG Client <-> WS Client <-> WS Server <-> WG Server
- The client binds to a local port
- Receives UDP/WG traffic
- Forwards to the server
- Server forwards to the WG server
- Server sends traffic back to the client
- Client relays to the WG client
