[GH-ISSUE #154] socks5 fail #86

Closed
opened 2026-02-27 23:15:22 +03:00 by kerem · 1 comment
Owner

Originally created by @cole-dda on GitHub (Sep 30, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/154

./proxy socks --always -T ssh -P "192.168.0.2:22" -u root -D xxxxx -t tcp -p "127.0.0.1:1080"

开启socks5代理,但是客户端连接的时候,goproxy显示下面的异常

handshake fail, proxy: SOCKS5 proxy at cn.bing.com:80 has unexpected version 60

通过查看代码,可能是utils/socks/client.go 中处理错误了。
如果parent 是ssh,应该是直接访问,而不应该再使用socks5协议去访问了。

文档没有同步,如果是socks的,ssh的密码参数应该为"-D"而不是"-A"

Originally created by @cole-dda on GitHub (Sep 30, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/154 ./proxy socks --always -T ssh -P "192.168.0.2:22" -u root -D xxxxx -t tcp -p "127.0.0.1:1080" 开启socks5代理,但是客户端连接的时候,goproxy显示下面的异常 handshake fail, proxy: SOCKS5 proxy at cn.bing.com:80 has unexpected version 60 通过查看代码,可能是utils/socks/client.go 中处理错误了。 如果parent 是ssh,应该是直接访问,而不应该再使用socks5协议去访问了。 文档没有同步,如果是socks的,ssh的密码参数应该为"-D"而不是"-A"
kerem 2026-02-27 23:15:22 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@snail007 commented on GitHub (Oct 1, 2018):

使用错误,上级是ssh,上级不需要启动goproxy。仔细看手册。另外参数说明最新手册已经更正。

<!-- gh-comment-id:426100298 --> @snail007 commented on GitHub (Oct 1, 2018): 使用错误,上级是ssh,上级不需要启动goproxy。仔细看手册。另外参数说明最新手册已经更正。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#86
No description provided.