From 07a192dcf0e6155b5350f405242e29f86a6c55fc Mon Sep 17 00:00:00 2001 From: Iain Date: Tue, 6 Feb 2024 18:34:36 +0800 Subject: [PATCH] Add docs for PROXY protocol on freedom outbound --- docs/config/outbounds/freedom.md | 9 ++++++++- docs/en/config/outbounds/freedom.md | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/config/outbounds/freedom.md b/docs/config/outbounds/freedom.md index 1e772cc42..fa3476a79 100644 --- a/docs/config/outbounds/freedom.md +++ b/docs/config/outbounds/freedom.md @@ -13,7 +13,8 @@ Freedom 是一个出站协议,可以用来向任意网络发送(正常的) "packets": "tlshello", "length": "100-200", "interval": "10-20" // 单位ms - } + }, + "proxyProtocol": 0 } ``` @@ -70,3 +71,9 @@ userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值 `"length"`:分片包长 (byte) `"interval"`:分片间隔(ms) + +> `proxyProtocol`: number + +PROXY protocol 通常配合 `redirect` 重定向到开启了 PROXY protocol 协议的 Nginx 或其他后端服务中。如果后端服务不支持 PROXY protocol 协议,连接将会被断开。 + +proxyProtocol 的值为 PROXY protocol 版本号,可选 `1` 或 `2`,如不指定,默认为 `0` 不启用。 diff --git a/docs/en/config/outbounds/freedom.md b/docs/en/config/outbounds/freedom.md index b67318da0..163f6ced2 100644 --- a/docs/en/config/outbounds/freedom.md +++ b/docs/en/config/outbounds/freedom.md @@ -13,7 +13,8 @@ Freedom is an outbound protocol that can be used to send (normal) TCP or UDP dat "packets": "tlshello", "length": "100-200", "interval": "10-20" // ms - } + }, + "proxyProtocol": 0 } ``` @@ -55,3 +56,7 @@ A key-value map used to control TCP fragmentation,under some circumstances it `"length"`: length to make the cut `"interval"`: time between fragments(ms) + +> `proxyProtocol`: number + +The value of `proxyProtocol` represents the PROXY Protocol version. default value is `0`. \ No newline at end of file