tcp brutal 折腾笔记
tcp brutal GITHUB地址
https://github.com/apernet/tcp-brutal/blob/master/README.zh.md
安装脚本:
bash <(curl -fsSL https://tcp.hy2.sh/)需要内核版本 4.9 或以上,推荐使用 5.8 以上的内核。对于小于 5.8 的内核, 只支持 IPv4。
我测试用的debian 13,uname -r命令查看内核版本6.1.0-38-cloud-amd64可以完美支持。
sing-box 服务端配置示例:
{
"log": {
"level": "info"
},
"dns": {
"servers": [
{
"type": "udp",
"tag": "google",
"server": "8.8.8.8"
}
]
},
"inbounds": [
{
"type": "vmess",
"tag": "vmess-in",
"listen": "::",
"listen_port": 8090,
"users": [
{
"uuid": "你的UUID",
"alterId": 0
}
],
"multiplex": {
"enabled": true,
"padding": false,
"brutal": {
"enabled": true,
"up_mbps": 100,
"down_mbps": 100
}
},
"transport": {
"type": "http",
"path": "/home"
}
}
],
"outbounds": [
{
"type": "direct"
}
],
"route": {
"rules": [
{
"action": "sniff",
"sniffer": ["dns","bittorrent","quic"],
"timeout": "10s"
},
{
"protocol": "quic",
"action": "reject"
},
{
"protocol": "bittorrent",
"outbound": "direct"
},
{
"action": "resolve"
},
{
"protocol": "dns",
"action": "hijack-dns"
}
]
}
}
sing-box 客户端配置
主要就是添加多路复用,然后开启brutal
"multiplex": {
"enabled": true,
"protocol": "h2mux",
"max_connections": 1,
"min_streams": 4,
"brutal": {
"enabled": true,
"up_mbps": 100, #这个随便填,不起作用,因为客户端没装tcp brutal
"down_mbps": 10 #只针对单个TCP连接,测速用单线程就可以完美“限速”了
}
},更多玩法,tcp brutal nginx配置
- 上一篇: sing-box 一些测试笔记
- 下一篇: 没有了