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

Dynamic Forwarding tunnel not work #318

Open
haleyshi opened this issue Dec 1, 2021 · 19 comments
Open

Dynamic Forwarding tunnel not work #318

haleyshi opened this issue Dec 1, 2021 · 19 comments
Assignees
Labels
bug Something isn't working

Comments

@haleyshi
Copy link

haleyshi commented Dec 1, 2021

I am a new user and not sure whether this is an issue or just my wrong config.

Version: 2.2.2
Platform: Windows

My configuration in WindTerm:

SSH >> Tunnels
Type: Dynamic forwarding
Listen Port: 3128
tunnel_windterm

My Browser's Proxy settings:

Protocol: SOCKS5
Server: 127.0.0.1
Port: 3128
web_browser_proxy

The Session with Tunnel is connected, but the proxy in browser does not work from WindTerm but same/similar settings works well from other terminals.
tunnel_mobaxterm
tunnel_finalshell

@kingToolbox
Copy link
Owner

I guess the problem is that you checked Accept local connections only, so that WindTerm only accepts connections from localhost. Please uncheck Accept local connections only and try again. If it doesn't work, I will solve the problem again. Thank you.

@haleyshi
Copy link
Author

haleyshi commented Dec 2, 2021

Thanks and the same problem when uncheck the "Accept local connections only".

And sometimes I can see this error popped up: "SOCKS5 handshake request is invlid.".
handshake_invalid

And when the session is connected, the error (tunnel by WindTerm) is SSL connection not secure, with code ERR_SSL_PROTOCOL_ERROR.
error_when_session_connected

Please notice this is an internal site and normally (e.g. tunnel from MobaXTerm or FinalShell) it should go to a warning of connection "is not private", with code "NET::ERR_CERT_AUTHORITY_INVALID", as the expected behavior when set tunnel in other terminals, and user can still choose to go ahead to ignore the warning and open the link.

good_case

When the session is not connected, it is normal that the error is "not connected".

error_when_session_disconnected

Thanks and hope the above information could help.

@kingToolbox
Copy link
Owner

Thank you for providing such detailed screenshots and instructions.

I think there should be a problem with SOCKS 5 proxy, which is a module I wrote by myself. I will investigate this issue. Once there is progress, I will update here. Please stay tuned, thank you.

@kingToolbox kingToolbox self-assigned this Dec 3, 2021
@kingToolbox kingToolbox added the bug Something isn't working label Dec 3, 2021
@haleyshi
Copy link
Author

haleyshi commented Dec 7, 2021

Thanks a lot for the support.

@tinyhare
Copy link

tinyhare commented Jan 29, 2022

Have the same problem,and it's better to have a window to show the tunnels.
image

@kingToolbox
Copy link
Owner

@tinyhare
WindTerm_2.3.0_Prererelease_3?

@tinyhare
Copy link

tinyhare commented Mar 14, 2022

WindTerm_2.3.1, Windows 10
Sorry , Last time I made a mistake
I use SOCKS4
image
It will be : SOCKS 5 handshake request is invalid (I think this should be correct )
image

If I use SOCKS5, the session will crash:
image
image

This is my configure:
image

@tinyhare
Copy link

On windows , we can temporary use ssh command : ssh -D 1080 user@host
image

@cnvic
Copy link

cnvic commented Apr 18, 2022

The same issue on 2.4 release. Is there any fix plan?

@PluieM
Copy link

PluieM commented May 11, 2022

the same issue on 2.4.1

@xzy256
Copy link

xzy256 commented May 30, 2022

2.4.1 works fine.

  1. create jump machine session
  2. create tunnal: set dynamic forward, session(select jump session), listen port, any address can link, open it (status is active)
  3. create destinate machine session, set proxy: Socks v5 proxy, ip(127.0.0.1), port. Don't set user and password

@pingod
Copy link

pingod commented Jun 18, 2022

the same issue on windows 2.4.1
SOCKS 5 handshake request is invalid (requested version: 71).

@HiddingMan
Copy link

This problem have been solved?
I meet the same problem in 2.5.0 with firefox.
What time this problem will be solved and this feature is always uesd?
Thanks a lot for the support!
Time out, please try again.

@vomobile
Copy link

vomobile commented Sep 5, 2022

The same issue on 2.5.0 (Linux).
Open a dynamic proxy tunnel on port 1080, Chome use this socks5 proxy to browse, page shows "ERR_SSL_PROTOCOL_ERROR", and Firefox page shows "PR_END_OF_FILE_ERROR".
But the dynamic SSH Tunnel with PuTTY worked.

@awohsen
Copy link

awohsen commented Oct 8, 2022

The same is still here from windows 11, I've seen putty or OpenSSH and others ask permission from windows firewall to do this with "Accept local connections only" unmarked (perhaps it helps the process).

@fbi007130
Copy link

the issue is still recurred in v2.6.0 .

@irhuahua
Copy link

irhuahua commented May 5, 2023

This dynamic socks5 feature, used frequently at work, wants to schedule fixes。
version:WindTerm 2.5.0

@zen010101
Copy link

zen010101 commented Aug 11, 2023

2.6.0 pre-release2 : the bug is not solved .

2023/08/11 20:07:06 [Warning] [170617049] app/proxyman/outbound: failed to process outbound traffic > proxy/socks: failed to establish connection to server > common/protocol: invalid domain name: �

@kingToolbox
Copy link
Owner

WindTerm_2.7.0_Prerelease_3 fixes the bug where dynamic port forwarding couldn't proxy DNS lookups. Please download and try it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests