snail007 / goproxy

🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
https://snail007.host900.com/goproxy/manual/zh/
GNU General Public License v3.0
15.87k stars 3.01k forks source link

-m -z参数好像没法用了 #495

Closed twomazikebei closed 2 years ago

twomazikebei commented 2 years ago

环境centos8 ./proxy -v 输出 free_11.9

一级代理[192.168.1.100]运行 ./proxy socks -t tcp -z mypwd -m -p "0.0.0.0:8080"

二级代理[192.168.1.110] ./proxy sps -S http -T tcp -P "192.168.1.100:8080" -Z mypwd -M -t tcp -p :8888

客户端[192.168.1.120] curl --proxy "http://192.168.1.110:8888" http://baidu.com curl --sockes5 192.168.1.110:8888 http://baidu.com

一级代理提示 WARN handshake fail, ERR: new methods request fail,ERR: read tcp xxx.xxx.xxx.xxx->xxx.xxx.xxx.xxx:yyy: i/o timeout

二级代理提示 WARN handshake fail, proxy: failed to read greeting from SOCKS5 proxy at xxx.xxx.xxx.xxx: read tcp xxx.xxx.xxx.xxx:yyy->xxx.xxx.xxx.xxx:yyy: i/o timeout

WARN connect to tcp parent 192.168.1.100:8080 fail, ERR:proxy: failed to read greeting from SOCKS5 proxy at 1 xxx.xxx.xxx.xxx:80: read tcp xxx.xxx.xxx.xxx:yyy-> xxx.xxx.xxx.xxx:yyy: i/o timeout from xxx.xxx.xxx.xxx:yyy

一级代理和二级代理同时单独使用-m 或-z也出现上述提示

只有一级和二级同时取消-m -z参数能正常使用

使用历史版本free_10 直接替换proxy文件,使用-m -z参数能正常使用,无任何警告提示

snail007 commented 2 years ago

你上级是socks5,你在下级指定上级是 -S http类型,当然不通了。

twomazikebei commented 2 years ago

./proxy sps -S socks -T tcp -P "192.168.1.100:8080" -Z mypwd -M -t tcp -p :8888 是我测试 socks 时候以为是模式的问题,所以两端都换成了http, 导致贴上来 复制错了代码 因为我换到低版本,一级和二级 都替换到free_10的 proxy主程序,-m -z参数就能正常使用

snail007 commented 2 years ago

下个版本12.0已经修复。