-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while upgrading cnx to http #412
Comments
Are you starting your wstunnel client to use http2 ? Because the server see an incoming TLS connection with You can use |
I'll try tracing 👍 But i think it's the production proxy (it has also a firewall onboard!) which filters or alters the TLS communication with the ws server, and so the connection is for some networking reason not going well. Considering the test proxy has no filters/firewall and it's full open, and ws client connects well 🤷♀️ PS. how can i force not using HTTP2? Can't see parameters client side 🤔🤔🤔 Attached a clean session with a single curl get. (hoping have removed all sensible data 🙏🙏🙏) [cut] |
Ha it seems you start your client with http2 as transport protocol
to use websocket as transport, you need to change it to
It should work better after that |
Gosh! You're perfect right. Didn't noticed i started remote to |
Surely production proxy/fw is filtering 👎👎👎 TEST PROXY == OK == tunnel & next curl went ok [cut] I'll find another way to connect the tunnel 🤷♀️ |
Indeed that's strange, it seems you never receive data server side.
and you can send me the |
Not so strange. Prod Proxy (HTTPS) and its firewall has many professional filters and tls inspectors. Surely it changes the packets flow so ws can't understand what's going on 🤷♀️🤷♀️🤷♀️ wstunnel works perfect, it's proxy who alters its flow 🥲 Don't mind about it. Eventually i'll send the tcpdump, in other case ok so 🤷♀️ |
@verbal666 @erebe You can try use a public CA like letsencrypt. Some firewall block selfsigned cert or some specific SNI. |
Hi. HTTPS proxy has many many professional filters and also provides its certs for authentication, so it changes original certs with its own... so, something in the middle [proxy] (also seeing what i'm doing 😤) broke the connection. Thanks. |
I also tried a session with |
That's sad, maybe your proxy forbid completely websocket. You can give a try by visiting this website https://websocketstest.com/ Out of curiosity, in which kind of environment are you working in to have such strong firewall ? |
Yes, not properly sad 😉but frustrating. Just to understand,
With same identical config i can connect both to wstunnel and to my vpn outside that proxy/fw/av 🤷♀️ So, HAIL TO THE KING 🤷♀️🤷♀️🤷♀️😤 🤷♀️ |
Anyway, just to let you know 🥲🥲🥲
🤷♀️🤷♀️🤷♀️ |
Describe the goal
ws server is the same on both env.
Connect wstunnel thru a proxy chains
Testing with a simple
curl -kL https://url -x socks5h://wstunnel_ip:socks5_ip
,Error while upgrading cnx to http
🥲Describe what does not work
Client side i have no errors, apparently, wstunnel starts and starts listening at its socks5.
Server side i got a strange error,
Maybe production http proxy filter and alter https/ws packets? 🥲
Describe your wstunnel setup
server wss://local_ip:443 --tls-certificate \path_to\fullchain.pem --tls-private-key \path_to\privkey.pem --restrict-http-upgrade-path-prefix my_private_prefix --remote-to-local-server-idle-timeout 30m --websocket-ping-frequency-sec 600 --log-lvl DEBUG
Desktop (please complete the following information):
Chaining many OS ==> Linux (Ubuntu / Debian / Alma) and also Windows
The text was updated successfully, but these errors were encountered: