xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.84k stars 403 forks source link

[Feature] Do not accept connection locally before connection with remote is established #320

Closed janedoe-lab closed 3 months ago

janedoe-lab commented 6 months ago

Description

Currently, when proxied application makes a connection, it immediately succeeds as if port is always open. This works very differently from proxychains, which waits to establish connection with the remote. It is a subtle difference, but it breaks software that needs to check if port is truly open.

Is it possible with current tun2socks architecture to implement feature (or is this a bug?) where tun2socks would first try to connect to the port, and only if it succeeds, report success on the client side?

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

No response

xjasonlyu commented 6 months ago

This feature has been mentioned in issue https://github.com/xjasonlyu/tun2socks/issues/83, and we have a closed/incomplete pr https://github.com/xjasonlyu/tun2socks/pull/235 for this kind of scenario.

Unfortunately, this feature is not yet planned to implement. But if you would like to contribute, a pr is always welcome!

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days