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

转发给远程socks5协议时,报 failed: unexpected protocol version 72 #28

Open
WangJarvis opened this issue Nov 25, 2024 · 3 comments

Comments

@WangJarvis
Copy link

bridge -b socks5://127.0.0.1:8080 -p - -p http://user-xxx:[email protected]:4600
我用以上命令转发给远程http协议,正常可以使用

bridge -b socks5://127.0.0.1:8080 -p - -p socks5://user-xxx:[email protected]:4600
但是我用以上命令转发给远程socks5协议时报 INFO connect to 8.8.8.8:853 failed: unexpected protocol version 72
s1

我确定我用的远程服务器同时支持socks5和http协议,但是不知道为什么用socks5就会报错,我通过第三方vpn用socks5协议是可以用的,通过curl -x socks5://user-xxx:[email protected]:4600 https://ipinfo.pyproxy.io/ 也能正常用
s2

@wzshiming
Copy link
Owner

wzshiming commented Nov 25, 2024

根据报错的信息看 72 是 ascii 的 'H', 大概率是 'HEAD ' 也就是说你使用了 http 协议请求 bridge 启动的 socks5 端口.

你可以使用 -b :8080 让 bridge 自动判断协议

bridge -b :8080 -p - -p socks5://user-xxx:[email protected]:4600

@WangJarvis
Copy link
Author

bridge -b :8080 -p - -p socks5://user-xxx:[email protected]:4600
我用了这条命令 还是报一样的错误信息:
INFO Connect chains="{Bind:[{Probe: LB:[http://:1080 socks5://:1080 socks4://:1080 ssh://:1080]}] Proxy:[{Probe: LB:[-]} {Probe: LB:[socks5://user-esad2024:[email protected]:4600]}] IdleTimeout:0s}" remote_address=127.0.0.1:41356 2024/11/25 06:21:25 INFO connect to 1.1.1.1:853 failed: unexpected protocol version 72
s4

@wzshiming
Copy link
Owner

wzshiming commented Nov 25, 2024

你发的信息里包含了你的服务地址和密码 自己编辑一下

你能发给一下复现的步骤么, 你是如何使用的,

我直接用流量器访问其, 响应这个

errorMsg: ip forbidden,ip banned access,ip=

你是自己设置的 ip 白名单吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants