File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const (
3131 TypeCCM = "ccm"
3232 TypeOCM = "ocm"
3333 TypeOOMKiller = "oom-killer"
34+ TypeTrustTunnel = "trusttunnel"
3435)
3536
3637const (
@@ -88,6 +89,8 @@ func ProxyDisplayName(proxyType string) string {
8889 return "AnyTLS"
8990 case TypeTailscale :
9091 return "Tailscale"
92+ case TypeTrustTunnel :
93+ return "TrustTunnel"
9194 case TypeSelector :
9295 return "Selector"
9396 case TypeURLTest :
Original file line number Diff line number Diff line change 3131| ` hysteria2 ` | [ Hysteria2] ( ./hysteria2/ ) | :material-close: |
3232| ` vless ` | [ VLESS] ( ./vless/ ) | TCP |
3333| ` anytls ` | [ AnyTLS] ( ./anytls/ ) | TCP |
34+ | ` trusttunnel ` | [ TrustTunnel] ( ./trusttunnel/ ) | TCP |
3435| ` tun ` | [ Tun] ( ./tun/ ) | :material-close: |
3536| ` redirect ` | [ Redirect] ( ./redirect/ ) | :material-close: |
3637| ` tproxy ` | [ TProxy] ( ./tproxy/ ) | :material-close: |
3738
3839#### tag
3940
40- The tag of the inbound.
41+ The tag of the inbound.
Original file line number Diff line number Diff line change 3131| ` hysteria2 ` | [ Hysteria2] ( ./hysteria2/ ) | :material-close: |
3232| ` vless ` | [ VLESS] ( ./vless/ ) | TCP |
3333| ` anytls ` | [ AnyTLS] ( ./anytls/ ) | TCP |
34+ | ` trusttunnel ` | [ TrustTunnel] ( ./trusttunnel/ ) | TCP |
3435| ` tun ` | [ Tun] ( ./tun/ ) | :material-close: |
3536| ` redirect ` | [ Redirect] ( ./redirect/ ) | :material-close: |
3637| ` tproxy ` | [ TProxy] ( ./tproxy/ ) | :material-close: |
3738
3839#### tag
3940
40- 入站的标签。
41+ 入站的标签。
Original file line number Diff line number Diff line change 1+ ---
2+ icon : material/new-box
3+ ---
4+
5+ !!! question "Since sing-box 1.14.0"
6+
7+ ### Structure
8+
9+ ``` json
10+ {
11+ "type" : " trusttunnel" ,
12+ "tag" : " trusttunnel-in" ,
13+
14+ ... // Listen Fields
15+
16+ "users" : [
17+ {
18+ "username" : " trust" ,
19+ "password" : " tunnel"
20+ }
21+ ],
22+ "quic_congestion_control" : " bbr" ,
23+ "network" : " tcp,udp" ,
24+ "tls" : {}
25+ }
26+ ```
27+
28+ ### Listen Fields
29+
30+ See [ Listen Fields] ( /configuration/shared/listen/ ) for details.
31+
32+ ### Fields
33+
34+ #### users
35+
36+ ==Required==
37+
38+ TrustTunnel user list.
39+
40+ #### users.username
41+
42+ ==Required==
43+
44+ TrustTunnel username.
45+
46+ #### users.password
47+
48+ ==Required==
49+
50+ TrustTunnel user password.
51+
52+ #### quic_congestion_control
53+
54+ QUIC congestion control algorithm.
55+
56+ | Algorithm | Description |
57+ | -----------| -------------|
58+ | ` bbr ` | BBR |
59+ | ` bbr_standard ` | BBR (Standard version) |
60+ | ` bbr2 ` | BBRv2 |
61+ | ` bbr_variant ` | BBRv2 (An experimental variant) |
62+ | ` cubic ` | CUBIC |
63+ | ` reno ` | New Reno |
64+
65+ ` bbr ` is used by default.
66+
67+ #### network
68+
69+ Network list.
70+
71+ Available values:
72+
73+ - ` tcp ` (HTTP/2)
74+ - ` udp ` (HTTP/3)
75+
76+ When ` udp ` is enabled, ` tls ` must be enabled.
77+
78+ #### tls
79+
80+ Inbound TLS configuration, see [ TLS] ( /configuration/shared/tls/#inbound ) .
Original file line number Diff line number Diff line change 1+ ---
2+ icon : material/new-box
3+ ---
4+
5+ !!! question "自 sing-box 1.14.0 起"
6+
7+ ### 结构
8+
9+ ``` json
10+ {
11+ "type" : " trusttunnel" ,
12+ "tag" : " trusttunnel-in" ,
13+
14+ ... // 监听字段
15+
16+ "users" : [
17+ {
18+ "username" : " trust" ,
19+ "password" : " tunnel"
20+ }
21+ ],
22+ "quic_congestion_control" : " bbr" ,
23+ "network" : " tcp,udp" ,
24+ "tls" : {}
25+ }
26+ ```
27+
28+ ### 监听字段
29+
30+ 监听字段参阅 [ 监听字段] ( /zh/configuration/shared/listen/ ) 。
31+
32+ ### 字段
33+
34+ #### users
35+
36+ ==必填==
37+
38+ TrustTunnel 用户列表。
39+
40+ #### users.username
41+
42+ ==必填==
43+
44+ TrustTunnel 用户名。
45+
46+ #### users.password
47+
48+ ==必填==
49+
50+ TrustTunnel 用户密码。
51+
52+ #### quic_congestion_control
53+
54+ QUIC 拥塞控制算法。
55+
56+ | 算法 | 描述 |
57+ | ------| ------|
58+ | ` bbr ` | BBR |
59+ | ` bbr_standard ` | BBR (标准版) |
60+ | ` bbr2 ` | BBRv2 |
61+ | ` bbr_variant ` | BBRv2 (一种试验变体) |
62+ | ` cubic ` | CUBIC |
63+ | ` reno ` | New Reno |
64+
65+ 默认使用 ` bbr ` 。
66+
67+ #### network
68+
69+ 网络列表。
70+
71+ 可选值:
72+
73+ - ` tcp ` (HTTP/2)
74+ - ` udp ` (HTTP/3)
75+
76+ 当启用 ` udp ` 时,必须启用 ` tls ` 。
77+
78+ #### tls
79+
80+ 入站 TLS 配置,参阅 [ TLS] ( /zh/configuration/shared/tls/#inbound ) 。
Original file line number Diff line number Diff line change 3737| ` selector ` | [ Selector] ( ./selector/ ) |
3838| ` urltest ` | [ URLTest] ( ./urltest/ ) |
3939| ` naive ` | [ NaiveProxy] ( ./naive/ ) |
40+ | ` trusttunnel ` | [ TrustTunnel] ( ./trusttunnel/ ) |
4041
4142#### tag
4243
Original file line number Diff line number Diff line change 3737| ` selector ` | [ Selector] ( ./selector/ ) |
3838| ` urltest ` | [ URLTest] ( ./urltest/ ) |
3939| ` naive ` | [ NaiveProxy] ( ./naive/ ) |
40+ | ` trusttunnel ` | [ TrustTunnel] ( ./trusttunnel/ ) |
4041
4142#### tag
4243
Original file line number Diff line number Diff line change 1+ ---
2+ icon : material/new-box
3+ ---
4+
5+ !!! question "Since sing-box 1.14.0"
6+
7+ ### Structure
8+
9+ ``` json
10+ {
11+ "type" : " trusttunnel" ,
12+ "tag" : " trusttunnel-out" ,
13+
14+ "server" : " 127.0.0.1" ,
15+ "server_port" : 443 ,
16+ "username" : " trust" ,
17+ "password" : " tunnel" ,
18+ "health_check" : true ,
19+ "quic" : false ,
20+ "quic_congestion_control" : " bbr" ,
21+ "tls" : {},
22+
23+ ... // Dial Fields
24+ }
25+ ```
26+
27+ ### Fields
28+
29+ #### server
30+
31+ ==Required==
32+
33+ The server address.
34+
35+ #### server_port
36+
37+ ==Required==
38+
39+ The server port.
40+
41+ #### username
42+
43+ ==Required==
44+
45+ Authentication username.
46+
47+ #### password
48+
49+ Authentication password.
50+
51+ #### health_check
52+
53+ Enable periodic health check.
54+
55+ #### quic
56+
57+ Use QUIC transport.
58+
59+ - ` false ` : Use HTTP/2 over TCP.
60+ - ` true ` : Use HTTP/3 over UDP.
61+
62+ #### quic_congestion_control
63+
64+ QUIC congestion control algorithm.
65+
66+ | Algorithm | Description |
67+ | -----------| -------------|
68+ | ` bbr ` | BBR |
69+ | ` bbr_standard ` | BBR (Standard version) |
70+ | ` bbr2 ` | BBRv2 |
71+ | ` bbr_variant ` | BBRv2 (An experimental variant) |
72+ | ` cubic ` | CUBIC |
73+ | ` reno ` | New Reno |
74+
75+ ` bbr ` is used by default.
76+
77+ #### tls
78+
79+ ==Required==
80+
81+ Outbound TLS configuration, see [ TLS] ( /configuration/shared/tls/#outbound ) .
82+
83+ ### Dial Fields
84+
85+ See [ Dial Fields] ( /configuration/shared/dial/ ) for details.
Original file line number Diff line number Diff line change 1+ ---
2+ icon : material/new-box
3+ ---
4+
5+ !!! question "自 sing-box 1.14.0 起"
6+
7+ ### 结构
8+
9+ ``` json
10+ {
11+ "type" : " trusttunnel" ,
12+ "tag" : " trusttunnel-out" ,
13+
14+ "server" : " 127.0.0.1" ,
15+ "server_port" : 443 ,
16+ "username" : " trust" ,
17+ "password" : " tunnel" ,
18+ "health_check" : true ,
19+ "quic" : false ,
20+ "quic_congestion_control" : " bbr" ,
21+ "tls" : {},
22+
23+ ... // 拨号字段
24+ }
25+ ```
26+
27+ ### 字段
28+
29+ #### server
30+
31+ ==必填==
32+
33+ 服务器地址。
34+
35+ #### server_port
36+
37+ ==必填==
38+
39+ 服务器端口。
40+
41+ #### username
42+
43+ ==必填==
44+
45+ 认证用户名。
46+
47+ #### password
48+
49+ 认证密码。
50+
51+ #### health_check
52+
53+ 启用周期性健康检查。
54+
55+ #### quic
56+
57+ 使用 QUIC 传输。
58+
59+ - ` false ` :使用基于 TCP 的 HTTP/2。
60+ - ` true ` :使用基于 UDP 的 HTTP/3。
61+
62+ #### quic_congestion_control
63+
64+ QUIC 拥塞控制算法。
65+
66+ | 算法 | 描述 |
67+ | ------| ------|
68+ | ` bbr ` | BBR |
69+ | ` bbr_standard ` | BBR (标准版) |
70+ | ` bbr2 ` | BBRv2 |
71+ | ` bbr_variant ` | BBRv2 (一种试验变体) |
72+ | ` cubic ` | CUBIC |
73+ | ` reno ` | New Reno |
74+
75+ 默认使用 ` bbr ` 。
76+
77+ #### tls
78+
79+ ==必填==
80+
81+ 出站 TLS 配置,参阅 [ TLS] ( /zh/configuration/shared/tls/#outbound ) 。
82+
83+ ### 拨号字段
84+
85+ 拨号字段参阅 [ 拨号字段] ( /zh/configuration/shared/dial/ ) 。
You can’t perform that action at this time.
0 commit comments