merge: Merge upstream v1.14.6

This commit is contained in:
Shtorm
2026-11-30 19:46:00 +03:00
292 changed files with 6311 additions and 5159 deletions
+20
View File
@@ -2,6 +2,26 @@
icon: material/alert-decagram
---
#### 1.14.6
* Fixes and improvements
#### 1.14.5
* Update NaiveProxy to 154.0.8037.49-2
* Fix Linux desktop client package conflicting with the CLI package **1**
* Fixes and improvements
**1**:
The Linux [desktop client](/clients/desktop/) (`SFL`) package has been renamed from `sing-box` to `sfl` and no longer
installs `/usr/bin/sing-box`. Existing SFL users must remove the old `sing-box` package once before installing the new
package (daemon data in `/var/lib/sing-box-daemon` is preserved).
#### 1.14.4
* Fixes and improvements
#### 1.14.3
* Fixes and improvements
+1 -1
View File
@@ -12,7 +12,7 @@ icon: material/note-remove
{
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
```
+1 -1
View File
@@ -12,7 +12,7 @@ icon: material/note-remove
{
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
```
+8 -8
View File
@@ -10,7 +10,7 @@ icon: material/alert-decagram
!!! quote "Changes in sing-box 1.12.0"
:material-decagram: [servers](#servers)
:material-decagram: [servers](./server/)
!!! quote "Changes in sing-box 1.11.0"
@@ -43,11 +43,11 @@ icon: material/alert-decagram
### Fields
| Key | Format |
|----------|---------------------------------|
| `server` | List of [DNS Server](./server/) |
| `rules` | List of [DNS Rule](./rule/) |
| `fakeip` | :material-note-remove: [FakeIP](./fakeip/) |
| Key | Format |
|-----------|---------------------------------|
| `servers` | List of [DNS Server](./server/) |
| `rules` | List of [DNS Rule](./rule/) |
| `fakeip` | :material-note-remove: [FakeIP](./fakeip/) |
#### final
@@ -125,7 +125,7 @@ Default timeout for each DNS query.
`10s` is used by default.
Can be overridden by `rules.[].timeout` (DNS rule action) or `domain_resolver.timeout`.
Can be overridden by `rules.[].timeout` (DNS rule action), `resolve.timeout` (route rule action) or `domain_resolver.timeout`.
#### reverse_mapping
@@ -142,4 +142,4 @@ Append a `edns0-subnet` OPT extra record with the specified IP prefix to every q
If value is an IP address instead of prefix, `/32` or `/128` will be appended automatically.
Can be overridden by `servers.[].client_subnet` or `rules.[].client_subnet`.
Can be overridden by `rules.[].client_subnet` (DNS rule action), `resolve.client_subnet` (route rule action) or `domain_resolver.client_subnet`.
+7 -7
View File
@@ -10,7 +10,7 @@ icon: material/alert-decagram
!!! quote "sing-box 1.12.0 中的更改"
:material-decagram: [servers](#servers)
:material-decagram: [servers](./server/)
!!! quote "sing-box 1.11.0 中的更改"
@@ -43,10 +43,10 @@ icon: material/alert-decagram
### 字段
| 键 | 格式 |
|----------|-------------------------|
| `server` | 一组 [DNS 服务器](./server/) |
| `rules` | 一组 [DNS 规则](./rule/) |
| 键 | 格式 |
|-----------|-------------------------|
| `servers` | 一组 [DNS 服务器](./server/) |
| `rules` | 一组 [DNS 规则](./rule/) |
#### final
@@ -124,7 +124,7 @@ LRU 缓存容量。
默认使用 `10s`。
可被 `rules.[].timeout`(DNS 规则动作)或 `domain_resolver.timeout` 覆盖。
可被 `rules.[].timeout`(DNS 规则动作)、`resolve.timeout`(路由规则动作)或 `domain_resolver.timeout` 覆盖。
#### reverse_mapping
@@ -140,7 +140,7 @@ LRU 缓存容量。
如果值是 IP 地址而不是前缀,则会自动附加 `/32` 或 `/128`。
可以被 `servers.[].client_subnet` 或 `rules.[].client_subnet` 覆盖。
可被 `rules.[].client_subnet`(DNS 规则动作)、`resolve.client_subnet`(路由规则动作)或 `domain_resolver.client_subnet` 覆盖。
#### fakeip :material-note-remove:
+2 -2
View File
@@ -17,7 +17,7 @@ icon: material/new-box
"tag": "",
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
]
}
@@ -30,6 +30,6 @@ icon: material/new-box
IPv4 address range for FakeIP.
#### inet6_address
#### inet6_range
IPv6 address range for FakeIP.
+1 -1
View File
@@ -17,7 +17,7 @@ icon: material/new-box
"tag": "",
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
]
}
@@ -365,7 +365,7 @@ keys for compatibility with immutable peers. Use it only when the peer cannot
be upgraded. `legacy` accepts SHA-1 but rejects MD5 signatures; `preferred`
requires stronger signatures and keys.
When `suiteb` is selected and `tls.cipher` is empty, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites.
When `suiteb` is selected, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites when `tls.cipher` is empty, and the TLS groups default to `secp256r1` and `secp384r1` when `tls.groups` is empty.
### tls.ns_certificate_type
@@ -389,15 +389,15 @@ The value cannot be lower than `tls.version_min`.
### tls.cipher
Colon-separated OpenSSL cipher suite names allowed for TLS 1.2 and earlier.
Colon-separated OpenSSL or IANA cipher suite names allowed for TLS 1.2 and earlier, such as `ECDHE-ECDSA-AES256-GCM-SHA384` or `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`. The order of the list is ignored.
The default TLS cipher suites are used when empty.
### tls.groups
Colon-separated TLS key exchange groups in preference order.
Colon-separated TLS key exchange groups. The order of the list is ignored.
Supported groups are `X25519`, `SECP256R1`, `SECP384R1`, and `SECP521R1`, including their common OpenSSL and NIST aliases.
Supported groups are `X25519`, `X25519MLKEM768`, `secp256r1`, `secp384r1`, and `secp521r1`, including their common OpenSSL and NIST aliases. Names are case-insensitive.
The default TLS groups are used when empty.
@@ -359,7 +359,7 @@ OpenVPN 控制通道 TLS 配置。
`insecure` 为兼容不可变对端而接受使用 MD5 或 SHA-1 签名的证书链和较小的旧密钥,仅应在对端无法升级时使用。`legacy` 接受 SHA-1 但拒绝 MD5 签名;`preferred` 要求更强的签名和密钥。
选择 `suiteb` 且 `tls.cipher` 为空时,TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件。
选择 `suiteb` 时,`tls.cipher` 为空则 TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件,`tls.groups` 为空则 TLS group 默认使用 `secp256r1` 和 `secp384r1`。
### tls.ns_certificate_type
@@ -383,15 +383,15 @@ OpenVPN 控制通道 TLS 配置。
### tls.cipher
TLS 1.2 及更低版本允许的 OpenSSL cipher suite 名称,以冒号分隔。
TLS 1.2 及更低版本允许的 OpenSSL 或 IANA cipher suite 名称,以冒号分隔,如 `ECDHE-ECDSA-AES256-GCM-SHA384` 或 `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`。列表的顺序被忽略。
为空时使用默认 TLS cipher suite。
### tls.groups
按偏好顺序排列的 TLS key exchange group,以冒号分隔。
以冒号分隔的 TLS key exchange group。列表的顺序被忽略。
支持 `X25519`、`SECP256R1`、`SECP384R1` 和 `SECP521R1`,包括其常用 OpenSSL 和 NIST 别名。
支持 `X25519`、`X25519MLKEM768`、`secp256r1`、`secp384r1` 和 `secp521r1`,包括其常用 OpenSSL 和 NIST 别名,不区分大小写。
为空时使用默认 TLS group。
@@ -351,7 +351,7 @@ keys for compatibility with immutable peers. Use it only when the peer cannot
be upgraded. `legacy` accepts SHA-1 but rejects MD5 signatures; `preferred`
requires stronger signatures and keys.
When `suiteb` is selected and `tls.cipher` is empty, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites.
When `suiteb` is selected, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites when `tls.cipher` is empty, and the TLS groups default to `secp256r1` and `secp384r1` when `tls.groups` is empty.
### tls.ns_certificate_type
@@ -367,13 +367,17 @@ Maximum TLS version. The maximum supported version is used by default.
### tls.cipher
Colon-separated OpenSSL cipher suite names allowed for TLS 1.2 and earlier.
Colon-separated OpenSSL or IANA cipher suite names allowed for TLS 1.2 and earlier, such as `ECDHE-ECDSA-AES256-GCM-SHA384` or `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`. The order of the list is ignored.
The default TLS cipher suites are used when empty.
### tls.groups
Colon-separated TLS key exchange groups in preference order.
Colon-separated TLS key exchange groups. The order of the list is ignored.
Supported groups are `X25519`, `X25519MLKEM768`, `secp256r1`, `secp384r1`, and `secp521r1`, including their common OpenSSL and NIST aliases. Names are case-insensitive.
The default TLS groups are used when empty.
### tls.control_wrap
@@ -346,7 +346,7 @@ OpenVPN `remote-cert-ku` 格式的客户端证书 Key Usage mask。
`insecure` 为兼容不可变对端而接受使用 MD5 或 SHA-1 签名的证书链和较小的旧密钥,仅应在对端无法升级时使用。`legacy` 接受 SHA-1 但拒绝 MD5 签名;`preferred` 要求更强的签名和密钥。
选择 `suiteb` 且 `tls.cipher` 为空时,TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件。
选择 `suiteb` 时,`tls.cipher` 为空则 TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件,`tls.groups` 为空则 TLS group 默认使用 `secp256r1` 和 `secp384r1`。
### tls.ns_certificate_type
@@ -362,13 +362,17 @@ OpenVPN `remote-cert-ku` 格式的客户端证书 Key Usage mask。
### tls.cipher
TLS 1.2 及更低版本允许的 OpenSSL cipher suite 名称,以冒号分隔。
TLS 1.2 及更低版本允许的 OpenSSL 或 IANA cipher suite 名称,以冒号分隔,如 `ECDHE-ECDSA-AES256-GCM-SHA384` 或 `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`。列表的顺序被忽略。
为空时使用默认 TLS cipher suite。
### tls.groups
按偏好顺序排列的 TLS key exchange group,以冒号分隔。
以冒号分隔的 TLS key exchange group。列表的顺序被忽略。
支持 `X25519`、`X25519MLKEM768`、`secp256r1`、`secp384r1` 和 `secp521r1`,包括其常用 OpenSSL 和 NIST 别名,不区分大小写。
为空时使用默认 TLS group。
### tls.control_wrap
@@ -50,7 +50,7 @@ Store fakeip in the cache file
!!! failure "Deprecated in sing-box 1.14.0"
`store_rdrc` is deprecated and will be removed in sing-box 1.16.0, check [Migration](/migration/#migrate-store-rdrc).
`store_rdrc` is deprecated and will be removed in sing-box 1.16.0, check [Migration](/migration/#migrate-store_rdrc).
Store rejected DNS response cache in the cache file
+2 -2
View File
@@ -2,8 +2,8 @@
!!! quote "Changes in sing-box 1.8.0"
:material-plus: [cache_file](#cache_file)
:material-alert-decagram: [clash_api](#clash_api)
:material-plus: [cache_file](./cache-file/)
:material-alert-decagram: [clash_api](./clash-api/)
### Structure
+2 -2
View File
@@ -2,8 +2,8 @@
!!! quote "sing-box 1.8.0 中的更改"
:material-plus: [cache_file](#cache_file)
:material-alert-decagram: [clash_api](#clash_api)
:material-plus: [cache_file](./cache-file/)
:material-alert-decagram: [clash_api](./clash-api/)
### 结构
+13 -19
View File
@@ -88,9 +88,9 @@ icon: material/new-box
"iproute2_table_index": 2022,
"iproute2_rule_index": 9000,
"auto_redirect": true,
"auto_redirect_input_mark": "0x2023",
"auto_redirect_output_mark": "0x2024",
"auto_redirect_reset_mark": "0x2025",
"auto_redirect_input_mark": "0x04000000",
"auto_redirect_output_mark": "0x08000000",
"auto_redirect_reset_mark": "0x10000000",
"auto_redirect_nfqueue": 100,
"auto_redirect_iproute2_fallback_rule_index": 32768,
"exclude_mptcp": false,
@@ -183,9 +183,7 @@ icon: material/new-box
],
"inet6_route_exclude_address": [
"fc00::/7"
],
...
// Listen Fields
]
}
```
@@ -363,7 +361,7 @@ Conflict with `route.default_mark` and `[dialOptions].routing_mark`.
Connection input mark used by `auto_redirect`.
`0x2023` is used by default.
`0x04000000` is used by default.
#### auto_redirect_output_mark
@@ -371,7 +369,7 @@ Connection input mark used by `auto_redirect`.
Connection output mark used by `auto_redirect`.
`0x2024` is used by default.
`0x08000000` is used by default.
#### auto_redirect_reset_mark
@@ -379,7 +377,7 @@ Connection output mark used by `auto_redirect`.
Connection reset mark used by `auto_redirect` pre-matching.
`0x2025` is used by default.
`0x10000000` is used by default.
#### auto_redirect_nfqueue
@@ -514,9 +512,9 @@ Exclude custom routes when `auto_route` is enabled.
Add the destination IP CIDR rules in the specified rule-sets to routes, equivalent to adding to `route_address`.
Unmatched traffic will bypass the sing-box routes.
Note that it **doesn't work on the Android graphical client** due to
the Android VpnService not being able to handle a large number of routes (DeadSystemException),
but otherwise it works fine on all command line clients and Apple platforms.
Note that it **doesn't work on the Android and Apple graphical clients**
as they cannot handle a large number of routes,
but otherwise it works fine on all command line clients and the Linux and Windows graphical clients.
#### route_exclude_address_set
@@ -538,9 +536,9 @@ Exclude custom routes when `auto_route` is enabled.
Add the destination IP CIDR rules in the specified rule-sets to routes, equivalent to adding to `route_exclude_address`.
Matched traffic will bypass the sing-box routes.
Note that it **doesn't work on the Android graphical client** due to
the Android VpnService not being able to handle a large number of routes (DeadSystemException),
but otherwise it works fine on all command line clients and Apple platforms.
Note that it **doesn't work on the Android and Apple graphical clients**
as they cannot handle a large number of routes,
but otherwise it works fine on all command line clients and the Linux and Windows graphical clients.
#### endpoint_independent_nat
@@ -693,7 +691,3 @@ Hostnames that use the HTTP proxy.
### UDP NAT Fields
See [UDP NAT Fields](/configuration/shared/udp-nat/) for details.
### Listen Fields
See [Listen Fields](/configuration/shared/listen/) for details.
+11 -18
View File
@@ -88,9 +88,9 @@ icon: material/new-box
"iproute2_table_index": 2022,
"iproute2_rule_index": 9000,
"auto_redirect": true,
"auto_redirect_input_mark": "0x2023",
"auto_redirect_output_mark": "0x2024",
"auto_redirect_reset_mark": "0x2025",
"auto_redirect_input_mark": "0x04000000",
"auto_redirect_output_mark": "0x08000000",
"auto_redirect_reset_mark": "0x10000000",
"auto_redirect_nfqueue": 100,
"auto_redirect_iproute2_fallback_rule_index": 32768,
"exclude_mptcp": false,
@@ -185,9 +185,7 @@ icon: material/new-box
],
"inet6_route_exclude_address": [
"fc00::/7"
],
... // 监听字段
]
}
```
@@ -356,7 +354,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 使用的连接输入标记。
默认使用 `0x2023`。
默认使用 `0x04000000`。
#### auto_redirect_output_mark
@@ -364,7 +362,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 使用的连接输出标记。
默认使用 `0x2024`。
默认使用 `0x08000000`。
#### auto_redirect_reset_mark
@@ -372,7 +370,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 预匹配使用的连接重置标记。
默认使用 `0x2025`。
默认使用 `0x10000000`。
#### auto_redirect_nfqueue
@@ -500,8 +498,8 @@ TUN 接口上 DNS 的处理方式。
将指定规则集中的目标 IP CIDR 规则添加到路由,相当于添加到 `route_address`。
不匹配的流量将绕过 sing-box 路由。
请注意,由于 Android VpnService 无法处理大量路由(DeadSystemException),
因此它**在 Android 图形客户端上不起作用**,但除此之外,它在所有命令行客户端和 Apple 平台上都可以正常工作。
请注意,由于无法处理大量路由,它**在 Android 和 Apple 图形客户端上不起作用**,
但除此之外,它在所有命令行客户端以及 Linux 和 Windows 图形客户端上都可以正常工作。
#### route_exclude_address_set
@@ -525,8 +523,8 @@ TUN 接口上 DNS 的处理方式。
将指定规则集中的目标 IP CIDR 规则添加到路由,相当于添加到 `route_exclude_address`。
匹配的流量将绕过 sing-box 路由。
请注意,由于 Android VpnService 无法处理大量路由(DeadSystemException),
因此它**在 Android 图形客户端上不起作用**,但除此之外,它在所有命令行客户端和 Apple 平台上都可以正常工作。
请注意,由于无法处理大量路由,它**在 Android 和 Apple 图形客户端上不起作用**,
但除此之外,它在所有命令行客户端以及 Linux 和 Windows 图形客户端上都可以正常工作。
#### endpoint_independent_nat
@@ -678,8 +676,3 @@ TCP/IP 栈。
### UDP NAT 字段
参阅 [UDP NAT 字段](/zh/configuration/shared/udp-nat/)。
### 监听字段
参阅 [监听字段](/zh/configuration/shared/listen/)。
+1 -1
View File
@@ -17,7 +17,7 @@
!!! quote ""
The selector can only be controlled through the [Clash API](/configuration/experimental#clash-api-fields) currently.
The selector can only be controlled through the [Clash API](/configuration/experimental/clash-api/) currently.
### Fields
+4 -4
View File
@@ -13,8 +13,8 @@ icon: material/alert-decagram
!!! quote "Changes in sing-box 1.12.0"
:material-plus: [default_domain_resolver](#default_domain_resolver)
:material-note-remove: [geoip](#geoip)
:material-note-remove: [geosite](#geosite)
:material-note-remove: [geoip](./geoip/)
:material-note-remove: [geosite](./geosite/)
!!! quote "Changes in sing-box 1.11.0"
@@ -26,8 +26,8 @@ icon: material/alert-decagram
!!! quote "Changes in sing-box 1.8.0"
:material-plus: [rule_set](#rule_set)
:material-delete-clock: [geoip](#geoip)
:material-delete-clock: [geosite](#geosite)
:material-delete-clock: [geoip](./geoip/)
:material-delete-clock: [geosite](./geosite/)
### Structure
+7 -7
View File
@@ -13,8 +13,8 @@ icon: material/alert-decagram
!!! quote "sing-box 1.12.0 中的更改"
:material-plus: [default_domain_resolver](#default_domain_resolver)
:material-note-remove: [geoip](#geoip)
:material-note-remove: [geosite](#geosite)
:material-note-remove: [geoip](./geoip/)
:material-note-remove: [geosite](./geosite/)
!!! quote "sing-box 1.11.0 中的更改"
@@ -26,8 +26,8 @@ icon: material/alert-decagram
!!! quote "sing-box 1.8.0 中的更改"
:material-plus: [rule_set](#rule_set)
:material-delete-clock: [geoip](#geoip)
:material-delete-clock: [geosite](#geosite)
:material-delete-clock: [geoip](./geoip/)
:material-delete-clock: [geosite](./geosite/)
### 结构
@@ -164,7 +164,7 @@ icon: material/alert-decagram
可以被 `outbound.domain_resolver` 覆盖。
#### network_strategy
#### default_network_strategy
!!! question "自 sing-box 1.11.0 起"
@@ -180,13 +180,13 @@ icon: material/alert-decagram
!!! question "自 sing-box 1.11.0 起"
详情参阅 [拨号字段](/zh/configuration/shared/dial/#default_network_type)。
详情参阅 [拨号字段](/zh/configuration/shared/dial/#network_type)。
#### default_fallback_network_type
!!! question "自 sing-box 1.11.0 起"
详情参阅 [拨号字段](/zh/configuration/shared/dial/#default_fallback_network_type)。
详情参阅 [拨号字段](/zh/configuration/shared/dial/#fallback_network_type)。
#### default_fallback_delay
-10
View File
@@ -174,14 +174,6 @@ See [Dial Fields](/configuration/shared/dial/#network_strategy) for details.
Only take effect if outbound is direct without `outbound.bind_interface`,
`outbound.inet4_bind_address` and `outbound.inet6_bind_address` set.
#### network_type
See [Dial Fields](/configuration/shared/dial/#network_type) for details.
#### fallback_network_type
See [Dial Fields](/configuration/shared/dial/#fallback_network_type) for details.
#### fallback_delay
See [Dial Fields](/configuration/shared/dial/#fallback_delay) for details.
@@ -286,8 +278,6 @@ of accepted values and platform notes.
`sniff` performs protocol sniffing on connections.
For deprecated `inbound.sniff` options, it is considered to `sniff()` performed before routing.
#### sniffer
Enabled sniffers.
@@ -171,14 +171,6 @@ icon: material/new-box
仅当出站为 `direct` 且 `outbound.bind_interface`, `outbound.inet4_bind_address`
且 `outbound.inet6_bind_address` 未设置时生效。
#### network_type
详情参阅 [拨号字段](/zh/configuration/shared/dial/#network_type)。
#### fallback_network_type
详情参阅 [拨号字段](/zh/configuration/shared/dial/#fallback_network_type)。
#### fallback_delay
详情参阅 [拨号字段](/zh/configuration/shared/dial/#fallback_delay)。
@@ -276,8 +268,6 @@ UDP 连接超时时间。
`sniff` 对连接执行协议嗅探。
对于已弃用的 `inbound.sniff` 选项,被视为在路由之前执行的 `sniff`。
#### sniffer
启用的探测器。
+1 -1
View File
@@ -7,7 +7,7 @@
:material-plus: SSH support
:material-plus: RDP support
If enabled in the inbound, the protocol and domain name (if present) of by the connection can be sniffed.
The [`sniff`](/configuration/route/rule_action/#sniff) route rule action sniffs the protocol and domain name (if present) of the connection.
#### Supported Protocols
+1 -1
View File
@@ -7,7 +7,7 @@
:material-plus: SSH 支持
:material-plus: RDP 支持
如果在入站中启用,则可以嗅探连接的协议和域名(如果存在)。
[`sniff`](/zh/configuration/route/rule_action/#sniff) 路由规则动作可以嗅探连接的协议和域名(如果存在)。
#### 支持的协议
+1 -1
View File
@@ -97,4 +97,4 @@ API 密钥。
#### tls
TLS 配置,参阅 [TLS](/zh/configuration/shared/tls/#inbound)。
TLS 配置,参阅 [TLS](/zh/configuration/shared/tls/#入站)。
+5 -5
View File
@@ -190,7 +190,7 @@ Setting this option directly to a string is equivalent to setting `server` of th
| Outbound/Endpoints | Effected domains |
|--------------------|--------------------------|
| `direct` | Domain in request |
| others | Domain in server address |
| others | Domain in server address, domain of the ECH config query |
#### network_strategy
@@ -271,8 +271,8 @@ Available values: `prefer_ipv4`, `prefer_ipv6`, `ipv4_only`, `ipv6_only`.
If set, the requested domain name will be resolved to IP before connect.
| Outbound | Effected domains | Fallback Value |
|----------|--------------------------|-------------------------------------------|
| `direct` | Domain in request | Take `inbound.domain_strategy` if not set |
| others | Domain in server address | / |
| Outbound | Effected domains |
|----------|--------------------------|
| `direct` | Domain in request |
| others | Domain in server address |
+5 -5
View File
@@ -188,7 +188,7 @@ TCP keep alive 间隔。
| 出站/端点 | 受影响的域名 |
|----------------|---------------------------|
| `direct` | 请求中的域名 |
| 其他类型 | 服务器地址中的域名 |
| 其他类型 | 服务器地址中的域名、ECH 配置查询的域名 |
#### network_strategy
@@ -260,7 +260,7 @@ TCP keep alive 间隔。
如果设置,域名将在请求发出之前解析为 IP。
| 出站 | 受影响的域名 | 默认回退值 |
|----------|-----------|---------------------------|
| `direct` | 请求中的域名 | `inbound.domain_strategy` |
| others | 服务器地址中的域名 | / |
| 出站 | 受影响的域名 |
|----------|-----------|
| `direct` | 请求中的域名 |
| others | 服务器地址中的域名 |
+1 -1
View File
@@ -14,7 +14,7 @@ icon: material/new-box
:material-plus: [alidns.security_token](#security_token)
:material-plus: [cloudflare.zone_token](#zone_token)
:material-plus: [acmedns](#acmedns)
:material-plus: [acmedns](#acme-dns)
### Structure
@@ -14,7 +14,7 @@ icon: material/new-box
:material-plus: [alidns.security_token](#security_token)
:material-plus: [cloudflare.zone_token](#zone_token)
:material-plus: [acmedns](#acmedns)
:material-plus: [acmedns](#acme-dns)
### 结构
+1 -1
View File
@@ -51,7 +51,7 @@ Old fields will be removed in sing-box 1.16.0.
#### `store_rdrc` cache file option
`store_rdrc` cache file option is deprecated,
check [Migration](../migration/#migrate-store-rdrc).
check [Migration](../migration/#migrate-store_rdrc).
Old fields will be removed in sing-box 1.16.0.
+2 -2
View File
@@ -53,8 +53,8 @@ go build -tags "tag_a tag_b" ./cmd/sing-box
| `with_wireguard` | :material-check: | Build with WireGuard support, see [WireGuard outbound](/configuration/outbound/wireguard/). |
| `with_utls` | :material-check: | Build with [uTLS](https://github.com/refraction-networking/utls) support for TLS outbound, see [TLS](/configuration/shared/tls#utls). |
| `with_acme` | :material-check: | Build with ACME TLS certificate issuer support, see [TLS](/configuration/shared/tls/). |
| `with_clash_api` | :material-check: | Build with Clash API support, see [Experimental](/configuration/experimental#clash-api-fields). |
| `with_v2ray_api` | :material-close:️ | Build with V2Ray API support, see [Experimental](/configuration/experimental#v2ray-api-fields). |
| `with_clash_api` | :material-check: | Build with Clash API support, see [Clash API](/configuration/experimental/clash-api/). |
| `with_v2ray_api` | :material-close:️ | Build with V2Ray API support, see [V2Ray API](/configuration/experimental/v2ray-api/). |
| `with_gvisor` | :material-check: | Build with gVisor support, see [Tun inbound](/configuration/inbound/tun#stack) and [WireGuard outbound](/configuration/outbound/wireguard#system_interface). |
| `with_embedded_tor` (CGO required) | :material-close:️ | Build with embedded Tor support, see [Tor outbound](/configuration/outbound/tor/). |
| `with_tailscale` | :material-check: | Build with Tailscale support, see [Tailscale endpoint](/configuration/endpoint/tailscale). |
+2 -2
View File
@@ -57,8 +57,8 @@ go build -tags "tag_a tag_b" ./cmd/sing-box
| `with_wireguard` | :material-check: | Build with WireGuard support, see [WireGuard outbound](/zh/configuration/outbound/wireguard/). |
| `with_utls` | :material-check: | Build with [uTLS](https://github.com/refraction-networking/utls) support for TLS outbound, see [TLS](/zh/configuration/shared/tls#utls). |
| `with_acme` | :material-check: | Build with ACME TLS certificate issuer support, see [TLS](/zh/configuration/shared/tls/). |
| `with_clash_api` | :material-check: | Build with Clash API support, see [Experimental](/zh/configuration/experimental#clash-api-fields). |
| `with_v2ray_api` | :material-close:️ | Build with V2Ray API support, see [Experimental](/zh/configuration/experimental#v2ray-api-fields). |
| `with_clash_api` | :material-check: | Build with Clash API support, see [Clash API](/zh/configuration/experimental/clash-api/). |
| `with_v2ray_api` | :material-close:️ | Build with V2Ray API support, see [V2Ray API](/zh/configuration/experimental/v2ray-api/). |
| `with_gvisor` | :material-check: | Build with gVisor support, see [Tun inbound](/zh/configuration/inbound/tun#stack) and [WireGuard outbound](/zh/configuration/outbound/wireguard#system_interface). |
| `with_embedded_tor` (CGO required) | :material-close:️ | Build with embedded Tor support, see [Tor outbound](/zh/configuration/outbound/tor/). |
| `with_tailscale` | :material-check: | 构建 Tailscale 支持,参阅 [Tailscale 端点](/zh/configuration/endpoint/tailscale)。 |
+1 -1
View File
@@ -215,7 +215,7 @@ flowchart TB
"tag": "remote",
"type": "fakeip",
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
],
"rules": [
+3 -3
View File
@@ -545,7 +545,7 @@ DNS servers are refactored for better performance and scalability.
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
}
}
@@ -565,7 +565,7 @@ DNS servers are refactored for better performance and scalability.
"type": "fakeip",
"tag": "fakeip",
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
],
"rules": [
@@ -771,7 +771,7 @@ The legacy outbound DNS rules are deprecated and can be replaced by new domain r
[DNS rule](/configuration/dns/rule/#outbound) /
[Dial Fields](/configuration/shared/dial/#domain_resolver) /
[Route](/configuration/route/#domain_resolver)
[Route](/configuration/route/#default_domain_resolver)
=== ":material-card-remove: Deprecated"
+2 -2
View File
@@ -540,7 +540,7 @@ DNS 服务器已经重构。
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
}
}
@@ -560,7 +560,7 @@ DNS 服务器已经重构。
"type": "fakeip",
"tag": "fakeip",
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
"inet6_range": "2001:2::/48"
}
],
"rules": [
+6 -118
View File
@@ -2031,7 +2031,7 @@
"inet6_range": {
"type": "string",
"examples": [
"fc00::/18"
"2001:2::/48"
]
}
},
@@ -14882,9 +14882,7 @@
]
},
"fallback_delay": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295
"$ref": "#/$defs/Duration"
},
"udp_disable_domain_unmapping": {
"type": "boolean"
@@ -14942,9 +14940,7 @@
]
},
"fallback_delay": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295
"$ref": "#/$defs/Duration"
},
"udp_disable_domain_unmapping": {
"type": "boolean"
@@ -14982,112 +14978,6 @@
"action"
]
},
{
"type": "object",
"properties": {
"action": {
"const": "direct"
},
"bind_interface": {
"type": "string"
},
"inet4_bind_address": {
"type": "string"
},
"inet6_bind_address": {
"type": "string"
},
"bind_address_no_port": {
"type": "boolean"
},
"protect_path": {
"type": "string"
},
"routing_mark": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
{
"type": "string"
}
]
},
"reuse_addr": {
"type": "boolean"
},
"netns": {
"type": "string",
"x-tag-reference": "network_namespace"
},
"connect_timeout": {
"$ref": "#/$defs/Duration"
},
"tcp_fast_open": {
"type": "boolean"
},
"tcp_multi_path": {
"type": "boolean"
},
"disable_tcp_keep_alive": {
"type": "boolean"
},
"tcp_keep_alive": {
"$ref": "#/$defs/Duration"
},
"tcp_keep_alive_interval": {
"$ref": "#/$defs/Duration"
},
"udp_fragment": {
"type": "boolean"
},
"domain_resolver": {
"$ref": "#/$defs/DomainResolver"
},
"network_strategy": {
"type": "string",
"enum": [
"default",
"fallback",
"hybrid"
]
},
"network_type": {
"anyOf": [
{
"$ref": "#/$defs/InterfaceType"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/InterfaceType"
}
}
]
},
"fallback_network_type": {
"anyOf": [
{
"$ref": "#/$defs/InterfaceType"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/InterfaceType"
}
}
]
},
"fallback_delay": {
"$ref": "#/$defs/Duration"
}
},
"required": [
"action"
]
},
{
"type": "object",
"properties": {
@@ -15115,9 +15005,7 @@
]
},
"fallback_delay": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295
"$ref": "#/$defs/Duration"
},
"udp_disable_domain_unmapping": {
"type": "boolean"
@@ -17110,10 +16998,10 @@
"User": {
"type": "object",
"properties": {
"Username": {
"username": {
"type": "string"
},
"Password": {
"password": {
"type": "string"
}
},