[GH-ISSUE #240] socket5代理,使用ssh做上级,出错。 #158

Closed
opened 2026-02-27 23:15:43 +03:00 by kerem · 0 comments
Owner

Originally created by @linzhiqiang0514 on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/240

版本:V7.2,客户端,服务端都是
系统: cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

测试方式:
curl测试: curl -x socks5://xxxx:xxxx@127.0.0.1:61092 http://xxxx:6600

方式一:
ssh 跟远程机建立隧道,在本地61091端口,然后将61091作为上级代理,开放成socket5代理。
命令如下:
./proxy socks --always -t tcp -p ":61092" -T tcp -P "127.0.0.1:61091" -F auth-file.txt --intelligent=parent --log /root/socks.log --forever --daemon

可以正常使用。
image
image

方式二:直接开放socket5,ssh 作为上级代理
./proxy socks --always -T ssh -P "xxxx:xxx" -u xxxx -D xxxx -t tcp -p ":61092" -F auth-file.txt --intelligent=parent --log /root/socks.log --forever --daemon

不可用,会报:
2019/03/18 17:20:51 handshake fail, proxy: SOCKS5 proxy at xxxxx:6600 has unexpected version 72

image
Originally created by @linzhiqiang0514 on GitHub (Mar 18, 2019). Original GitHub issue: https://github.com/snail007/goproxy/issues/240 版本:V7.2,客户端,服务端都是 系统: cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 测试方式: curl测试: curl -x socks5://xxxx:xxxx@127.0.0.1:61092 http://xxxx:6600 方式一: ssh 跟远程机建立隧道,在本地61091端口,然后将61091作为上级代理,开放成socket5代理。 命令如下: ./proxy socks --always -t tcp -p ":61092" -T tcp -P "127.0.0.1:61091" -F auth-file.txt --intelligent=parent --log /root/socks.log --forever --daemon 可以正常使用。 <img width="900" alt="image" src="https://user-images.githubusercontent.com/8164566/54520279-540ac680-49a3-11e9-98a2-f1f6199c38ae.png"> <img width="900" alt="image" src="https://user-images.githubusercontent.com/8164566/54520371-84526500-49a3-11e9-83c9-8e3339cb1ebe.png"> 方式二:直接开放socket5,ssh 作为上级代理 ./proxy socks --always -T ssh -P "xxxx:xxx" -u xxxx -D xxxx -t tcp -p ":61092" -F auth-file.txt --intelligent=parent --log /root/socks.log --forever --daemon 不可用,会报: 2019/03/18 17:20:51 handshake fail, proxy: SOCKS5 proxy at xxxxx:6600 has unexpected version 72 <img width="1230" alt="image" src="https://user-images.githubusercontent.com/8164566/54520448-b19f1300-49a3-11e9-953e-6c9a0a21bed3.png">
kerem 2026-02-27 23:15:43 +03:00
  • closed this issue
  • added the
    duplicate
    label
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#158
No description provided.