mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #240] socket5代理,使用ssh做上级,出错。 #158
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
可以正常使用。


方式二:直接开放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