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 Port Forwarding not work #2638

Open
mrzhou166 opened this issue Jan 6, 2025 · 10 comments
Open

Dynamic Port Forwarding not work #2638

mrzhou166 opened this issue Jan 6, 2025 · 10 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@mrzhou166
Copy link

Dynamic Port Forwarding not work

@kingToolbox kingToolbox self-assigned this Feb 11, 2025
@kingToolbox kingToolbox added bug Something isn't working duplicate This issue or pull request already exists labels Feb 11, 2025
@kingToolbox
Copy link
Owner

kingToolbox commented Feb 11, 2025

Duplicate of #26

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

@mrzhou166
Copy link
Author

Thank you!

@DesistDaydream
Copy link

DesistDaydream commented Mar 12, 2025

Not working with WindTerm Dynamic forwarding

I turned on dynamic forwarding

I configured the proxy as follows

But the session cannot be connected normally

Image

Version 2.7.0 still has the same problem

Image


Normally working program

If I use xShell or SecureCRT to enable dynamic forwarding, I can connect normally.

Image

Additional

What other logs can I look at to get information about when the session connects?

Ref

#1364

#318

@kingToolbox
Copy link
Owner

Based on the data in the image, I think WindTerm is only binding to an IPv6 port, while SecureCrt is binding to both IPv6 and IPv4 ports. The proxy address you entered is 127.0.0.1 (IPv4), so WindTerm can't proxy. Try changing the proxy address to ::1 and see if that works.

@DesistDaydream
Copy link

DesistDaydream commented Mar 12, 2025

The situation is the same when using ipv6

Image

And there are some problems with the powshell command in my previous screenshot, ipv4 is also listening

@DesistDaydream
Copy link

Image

Another issue in 2.7.0. after opening the tunnel and closing the tunnel and then closing the program, the background process still exists and the CPU usage is not low

@kingToolbox
Copy link
Owner

Could you try using a browser with a proxy set to port 1080 to see if you can access the network correctly? Or, try setting up the proxy through securecrt to see if it can access the network correctly. I need to confirm whether the port forwarding module or the proxy itself is the problem.

Based on the information you've provided, the port is being bound correctly, which likely means the port forwarding module is not the issue. Also, the proxy works fine through dynamic port forwarding with xshell or securecrt, so the proxy module itself seems okay. But the problem arises when the two are combined - is my understanding correct?

As for the lingering processes after closing the application, I will try to reproduce this separately later.

@DesistDaydream
Copy link

I have tried using the forwarding function on the browser, and the same problem occurs.

For example, this configuration of secureCRT can be opened normally.

Image

But the same forwarding does not work in our WindTerm

Image


The description of the second part is correct. The proxy itself is functioning normally, the main problem should be in the tunnel creation function

@kingToolbox
Copy link
Owner

Could you please provide a screenshot of the error page that appears in the second image when Chrome fails to open localhost:30443, to see if there's any error information or code? Also, why does your PowerShell screenshot only show IPv6 addresses and not IPv4 addresses?

@DesistDaydream
Copy link

DesistDaydream commented Mar 12, 2025

I am also very curious why the tunnel opened by WindTerm now only has IPv6. I cannot reproduce the situation where I can open IPv4.

Image

By the way. Is there any log I can view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants