Skip to content
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

How to create tunnel? #373

Closed
OlegVladimirov opened this issue Nov 7, 2024 · 1 comment
Closed

How to create tunnel? #373

OlegVladimirov opened this issue Nov 7, 2024 · 1 comment

Comments

@OlegVladimirov
Copy link

Describe the goal

I whant to get local socks using public credentials

Describe what does not work

I'm get SSH Websocket parameters from public provider (for example SSH Websocket. Here it's present:

Server: fi2.wstunnel.site
Username: sshocean-name777
Password: ********
Protocol: SSH Websocket
Port:
  - 80, 8080, 8880, 2052, 2082, 2086, 2095
Port SSL/TLS:
  - 443, 2053, 2083, 2087, 2096, 8443
UDPGW:
  - 7200, 7300   
Created: 7 Nov 2024
Expired: 14 Nov 2024
wildcard domain format *.fi2.wstunnel.site
example: cloudflare.com.fi2.wstunnel.site
-----------------------
COPY PAYLOAD (HTTP):    GET / HTTP/1.1[crlf]Host: fi2.wstunnel.site[crlf]Upgrade: websocket[crlf][crlf]
COPY PAYLOAD (SSL/TLS): GET wss://SNI_bug_host/ HTTP/1.1[crlf]Host: fi2.wstunnel.site[crlf]Upgrade: Websocket[crlf]Connection: Keep-Alive[crlf][crlf]

I have Ubuntu and success download binary of wstunnel (wstunnel_10.1.5_linux_amd64). Now unsuccessful try to connect to this server:

./wstunnel client -L tcp://9999:127.0.0.1:22 wss://fi2.wstunnel.site:443
ssh -p 9999 -N -D 43765 [email protected]


# or
./wstunnel client -L socks5://127.0.0.1:55522 wss://fi2.wstunnel.site:443
ssh -p 55522 -N -D 43765 [email protected]

Bouth wrong. So, my question is - how to connect to SSH Websocket to get local socks5 proxy?

Describe your wstunnel setup

Tryed:
./wstunnel client -L tcp://9999:127.0.0.1:22 wss://fi2.wstunnel.site:443
./wstunnel client -L socks5://127.0.0.1:55522 wss://fi2.wstunnel.site:443
what's rigtht syntax&

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 22
@erebe
Copy link
Owner

erebe commented Nov 12, 2024

You can take a look at https://github.com/erebe/wstunnel?tab=readme-ov-file#ssh for an example

@erebe erebe closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants