Doridian / wsvpn

VPN over WebSocket and WebTransport
BSD 3-Clause "New" or "Revised" License
123 stars 12 forks source link

HTTP Proxy support? #402

Closed eidyev closed 6 months ago

eidyev commented 8 months ago

How can I use the VPN if my internet connection is through an http proxy server (squid 4)

Doridian commented 8 months ago

In case you need to manually specify the proxy, you need to set the client.proxy option, see example config here: https://github.com/Doridian/wsvpn/blob/main/client/cli/client.example.yml#L25

In case of a transparent proxy, it should just work.

In case it does not work the most likely culprit is that the proxy does not support WebSocket (or, possibly, the CONNECT method for raw TCP connections in case of TLS etc), in which case WSVPN can not function.

eidyev commented 8 months ago

In my case, the proxy I use does support the connect method and allows https and websocket connections.

I am sysadmin, is there a detailed guide to install a server for this VPN on Linux and install and configure a client on another PC to test it?

Doridian commented 8 months ago

Sounds good, I've never gotten to writing some good docs, beyond the example configs ( https://github.com/Doridian/wsvpn/blob/main/client/cli/client.example.yml and https://github.com/Doridian/wsvpn/blob/main/client/cli/client.example.yml ).

And some very basic example setups here: https://github.com/Doridian/wsvpn/wiki/Example:-VPN-with-TLS-and-htpasswd-authentication.

All you have to do is download the compiled binaries from releases (or compile yourself), and then run the VPN server's binary. It does not ship as packages or service files by default.

eidyev commented 8 months ago

And is there a video tutorial on YouTube or another platform that shows how to try it?

Doridian commented 8 months ago

None I would be aware of at this time.

eidyev commented 8 months ago

Do you have a real-time chat where we can talk better, Telegram?