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

测试 SOCKS 类型代理 TCP/UDP 流量的方法 #133

Open
ssrlive opened this issue May 11, 2020 · 16 comments
Open

测试 SOCKS 类型代理 TCP/UDP 流量的方法 #133

ssrlive opened this issue May 11, 2020 · 16 comments

Comments

@ssrlive
Copy link
Member

ssrlive commented May 11, 2020

TCP 流量测试

对于 TCP 流量测试,非常简单,运行 SSRoT 客户端后,安装 curl 软件,在命令行运行下列命令就可以了。其中的 2080 是客户端的本地监听端口。

curl --proxy socks5h://localhost:2080 https://google.com/

UDP 流量测试

安装 SSRoT 最新 服务端/客户端 之后,将 服务端/客户端 的配置文件 的 UDP 开关打开:"udp": true, ,在另一台公网主机 123.45.67.89 上运行 一个 UDP echo 服务端, 像 这个

然后在本地 Windows 电脑上 安装 ProxyCap 软件, ProxyCap-crack.zip ,像这样一通设置:
image

image

然后运行 SSRoT 本地客户端,让它监听在 2080 端口上。

最后运行这个 UDP echo 客户端, 运行命令是

c:\udp-cli.py 123.45.67.89 31337 "xxxuiiidsf-s==dfsdfsdffdf"

就可以看到结果了。

SOCKS5 協議的詳情

SOCKS 代理原理

@lidg080
Copy link

lidg080 commented May 11, 2020

我想问一下,udp打开了之后只要一用就闪退了啥情况
1

@ssrlive
Copy link
Member Author

ssrlive commented May 11, 2020 via email

@lidg080
Copy link

lidg080 commented May 11, 2020

ok,明白了

@ssrlive ssrlive changed the title 测试 TCP/UDP 翻墙流量的方法 测试 TCP/UDP 代理流量的方法 May 12, 2020
@ssrlive
Copy link
Member Author

ssrlive commented May 14, 2020

测试结果怎么样?报告一下呗!

@lidg080
Copy link

lidg080 commented May 14, 2020

测试结果怎么样?报告一下呗!

测试通过了,但是游戏和其他软件貌似不能通过udp联网
1
2
3

@ssrlive
Copy link
Member Author

ssrlive commented May 14, 2020

把你的游戏 exe 程序也像 python.exe 一样, 设置得让它走 ProxyCap 路线, 怎么样? 记得勾选 TCP 和 UDP 都走代理.

@lidg080
Copy link

lidg080 commented May 14, 2020

还是一样的结果,不能连通

@ssrlive
Copy link
Member Author

ssrlive commented May 18, 2020

同时更新 服务端/客户端, 再试一把看看?

@lidg080
Copy link

lidg080 commented May 18, 2020

同时更新 服务端/客户端, 再试一把看看?

更新以后还是udp不通,客户端那好像不显示连接信息了

@ssrlive
Copy link
Member Author

ssrlive commented May 19, 2020

服务端 也得更新.

@lidg080
Copy link

lidg080 commented May 19, 2020

更新过了,还是这样的

@ssrlive
Copy link
Member Author

ssrlive commented May 19, 2020 via email

@lidg080
Copy link

lidg080 commented May 19, 2020

我用这个代理游戏Netch

@ssrlive
Copy link
Member Author

ssrlive commented Jun 13, 2020

你再试一把. https://github.com/ShadowsocksR-Live/shadowsocksr-native/releases/latest
我不打游戏, 你推荐一个非游戏的小软件跑不通udp代理的情况.

image

@lidg080
Copy link

lidg080 commented Jun 15, 2020

现在是可以了,但一直在弹出这个红色的提示
无标题

@ssrlive
Copy link
Member Author

ssrlive commented Jun 16, 2020

我也没搞明白为什么会收到 软件们会发送的 没有源地址 数据包长度为0 的数据包.
http://docs.libuv.org/en/v1.x/udp.html#c.uv_udp_recv_cb

@ssrlive ssrlive changed the title 测试 TCP/UDP 代理流量的方法 测试 SOCKS 类型代理 TCP/UDP 流量的方法 Aug 10, 2020
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