erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
Other
3.22k stars 289 forks source link

Address family not supported by protocol (os error 97) #178

Closed yu-james closed 6 months ago

yu-james commented 6 months ago

Describe the bug Tried to deploy the server in a CloudFoundry environment to forward WireGuard traffic and got this error: Rejecting connection with bad upgrade request: Address family not supported by protocol (os error 97) /morille/events?bearer=eyJ0eX....

It used to work with version 6 and before.

Client got this: 2023-10-31T04:22:03.599454Z INFO wstunnel::tls: Doing TLS handshake using sni DnsName("wst-au.cfapps.ap10.hana.ondemand.com") with the server wst-au.cfapps.ap10.hana.ondemand.com:443 2023-10-31T04:22:03.930649Z ERROR tunnel{id="018b83f7-97af-7b37-8a6c-2c172ac59bc5" remote="10.11.0.1:1801"}: wstunnel::tunnel::client: failed to do websocket handshake with the server (Domain("wst-au.cfapps.ap10.hana.ondemand.com"), 443)

Caused by: Invalid status code

To Reproduce Steps to reproduce the behavior: Server command (in CloudFountry): RUST_LOG=trace ./wstunnel server ws://0.0.0.0:8080

Client command (local): wstunnel client -L udp://0.0.0.0:51820:10.11.0.1:1801 wss://

yu-james commented 6 months ago

Apologies seems duplicated submission (with issue #177 ) due to network glitch.

yu-james commented 6 months ago

Duplicate with #177