Add UDP noise

¿
pull/566/head
风扇滑翔翼 2024-08-30 16:28:11 +08:00 committed by GitHub
parent 1a1372ed94
commit 242364d62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

View File

@ -14,6 +14,10 @@ Freedom 是一个出站协议,可以用来向任意网络发送(正常的)
"length": "100-200",
"interval": "10-20" // 单位ms
},
"noise" {
"packet":"rand:100-200",
"delay": "10-20"
},
"proxyProtocol": 0
}
```
@ -64,6 +68,26 @@ userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值
当其为 0 且设置 `"packets": "tlshello"` 时,被分片的 Client Hello 将会在一个TCP包中发送如果其原始大小未超过MSS或MTU导致被系统自动分片
> `noise`: map
UDP noise, 用于在发出UDP连接前发出一些随机数据作为“噪声”出现该结构体则视为启用可能可以欺骗嗅探器也可能破坏正常连接。Use at your own risk.
`"packet"`str
噪声模式,格式为 `"mode:value"`
现阶段支持两种模式 `rand``str`
rand 模式,发送随机字节,冒号后接为随机字节长度,可以是固定值也可以是用 `-` 分割的随机范围,如 `"rand:150"`, 和 `"rand:100-200"`
str 模式,发送固定的字符串,冒号后接为要发送的字符串,可以是任何字符串,不能包含冒号,如 "str:To be, or not to be, that is the question"
`"delay"`str
可选值 默认为0
发送噪声到发送真实数据的延迟,单位毫秒,可以是固定值也可以是用 `-` 分割的随机范围,如 `"150"``"100-200"`
> `proxyProtocol`: number
PROXY protocol 通常配合 `redirect` 重定向到开启了 PROXY protocol 协议的 Nginx 或其他后端服务中。如果后端服务不支持 PROXY protocol 协议,连接将会被断开。