You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm tring to open a tunnel using the folliwing path
PC on public internet --> wss://wstunnel.mydomain.onl:443 (on cloudflare) ---> wss://myrealserverip:443 (apache reverse proxy) --> ws://localhost:8443 (wstunnel on docker server)
<VirtualHost *:443>
SSLEngine on
#SSLProxyEngine on
#SSLProxyCheckPeerName off
#SSLProxyVerify none
#ProxyPreserveHost off
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ServerAlias wstunnel.mydomain.onl
ProxyPass / http://localhost:8443/
ProxyPassReverse / http://localhost:8443/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:8443/$1" [P,L]
</VirtualHost>
on client log i get the following:
C:\Windows\System32>wstunnel.exe client -L udp://13231:192.168.88.1:13231?timeout_sec=0 wss://wstunnel.mydomain.onl:443
←[2m2024-08-09T08:31:41.813027Z←[0m ←[32m INFO←[0m ←[2mwstunnel::udp←[0m←[2m:←[0m Starting UDP server listening cnx on 127.0.0.1:13231 with cnx timeout of 0s
←[2m2024-08-09T08:31:46.059614Z←[0m ←[32m INFO←[0m ←[2mwstunnel::udp←[0m←[2m:←[0m New UDP connection from 127.0.0.1:63728
←[2m2024-08-09T08:31:46.060495Z←[0m ←[32m INFO←[0m ←[2mwstunnel::tcp←[0m←[2m:←[0m Opening TCP connection to wstunnel.mydomain.onl:443
←[2m2024-08-09T08:31:46.646498Z←[0m ←[32m INFO←[0m ←[2mwstunnel::tls←[0m←[2m:←[0m Doing TLS handshake using sni DnsName("wstunnel.mydomain.onl") with the server wstunnel.mydomain.onl:443
←[2m2024-08-09T08:31:54.646181Z←[0m ←[31mERROR←[0m ←[1mtunnel←[0m←[1m{←[0m←[3mid←[0m←[2m=←[0m"01913643-e98c-7798-9710-a1a3771f16ee" ←[3mremote←[0m←[2m=←[0m"192.168.88.1:13231"←[1m}←[0m←[2m:←[0m ←[2mwstunnel::tunnel::client←[0m←[2m:←[0m failed to do websocket handshake with the server (Domain("wstunnel.mydomain.onl"), 443)
Caused by:
Invalid status code: 400
←[2m2024-08-09T08:31:54.646468Z←[0m ←[32m INFO←[0m ←[2mwstunnel::udp←[0m←[2m:←[0m New UDP connection from 127.0.0.1:63728
←[2m2024-08-09T08:31:54.646753Z←[0m ←[32m INFO←[0m ←[2mwstunnel::tcp←[0m←[2m:←[0m Opening TCP connection to wstunnel.mydomain.onl:443
on server log i get:
wstunnel_1 | 2024-08-09T08:04:43.450526Z INFO wstunnel::tunnel::server: Accepting connection
wstunnel_1 | 2024-08-09T08:04:43.450604Z INFO tunnel{peer="[::ffff:172.18.0.1]:54890"}: wstunnel::tunnel::server: Request X-Forwarded-For: 109.55.48.225
wstunnel_1 | 2024-08-09T08:04:43.450617Z WARN tunnel{peer="[::ffff:172.18.0.1]:54890" forwarded_for="109.55.48.225"}: wstunnel::tunnel::server: error while decoding jwt for tunnel info Err(Error(InvalidToken)) header None
The text was updated successfully, but these errors were encountered:
I'm tring to open a tunnel using the folliwing path
PC on public internet --> wss://wstunnel.mydomain.onl:443 (on cloudflare) ---> wss://myrealserverip:443 (apache reverse proxy) --> ws://localhost:8443 (wstunnel on docker server)
command used on client to open the tunnel
wstunnel.exe client -L udp://13231:192.168.88.1:13231?timeout_sec=0 wss://wstunnel.mydomain.onl:443
docker configuration is plain
apache configuration is simple as well
on client log i get the following:
on server log i get:
The text was updated successfully, but these errors were encountered: