apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.49k stars 1.62k forks source link

socks5入站不兼容netch的socks5出站吗? #254

Open CCCAUCHY opened 2 years ago

CCCAUCHY commented 2 years ago

配置文件:"socks5": {"listen": "127.0.0.1:1081","disable_udp": false}, 这是netch出站到hy的socks5,启动后的日志:

2022-03-05T11:04:36+08:00 [DEBU] [src:127.0.0.1:9302] [dst:cp.cloudflare.com:80] [action:Proxy] SOCKS5 TCP request
2022-03-05T11:04:36+08:00 [DEBU] [src:127.0.0.1:9301] SOCKS5 UDP associate
2022-03-05T11:04:36+08:00 [DEBU] [src:127.0.0.1:9302] [dst:cp.cloudflare.com:80] SOCKS5 TCP EOF
2022-03-05T11:04:37+08:00 [DEBU] [src:127.0.0.1:9301] SOCKS5 UDP EOF
2022-03-05T11:04:39+08:00 [DEBU] [src:127.0.0.1:9303] SOCKS5 UDP associate
2022-03-05T11:04:40+08:00 [INFO] [src:127.0.0.1:9303] [error:read tcp 127.0.0.1:1081->127.0.0.1:9303: wsarecv: An existing connection was forcibly closed by the remote host.] SOCKS5 UDP error
2022-03-05T11:04:42+08:00 [DEBU] [src:127.0.0.1:9305] SOCKS5 UDP associate
2022-03-05T11:04:42+08:00 [INFO] [src:127.0.0.1:9305] [error:read tcp 127.0.0.1:1081->127.0.0.1:9305: wsarecv: An existing connection was forcibly closed by the remote host.] SOCKS5 UDP error
2022-03-05T11:04:44+08:00 [DEBU] [src:127.0.0.1:9307] SOCKS5 UDP associate
2022-03-05T11:04:44+08:00 [INFO] [src:127.0.0.1:9307] [error:read tcp 127.0.0.1:1081->127.0.0.1:9307: wsarecv: An existing connection was forcibly closed by the remote host.] SOCKS5 UDP error

奇怪的是,netch出站到qv2ray的socks5可以正常上网

NinjaUmbra commented 2 years ago

你netch用的什么模式,说一下 hy的配置贴完整一些 是不是ipv6节点,hy有无配置tun netch不支持ipv6,netch处于什么模式

CCCAUCHY commented 2 years ago

你netch用的什么模式,说一下 hy的配置贴完整一些 是不是ipv6节点,hy有无配置tun netch不支持ipv6,netch处于什么模式

自定义的进程代理模式,没有ipv6,hy没有tun配置,就是最简单的socks5

NinjaUmbra commented 2 years ago

https://github.com/netchx/netch/issues/813

CCCAUCHY commented 2 years ago

我还是等1.1的WinDivert吧

NinjaUmbra commented 2 years ago

可以 有了这个连tun都不要了 做好了直接配置哪些进程走hy

peaceanddemocracy commented 2 years ago

WinDivert和netch哪个好用?