mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-16 02:54:01 +00:00
Improve bridge
This commit is contained in:
@@ -18,6 +18,14 @@ icon: material/new-box
|
||||
or other L3 endpoints via the `route` action in
|
||||
[Pre-match](/configuration/shared/pre-match/); L4 connections will be rejected.
|
||||
|
||||
Traffic to local addresses of the machine (loopback, or addresses assigned to its
|
||||
network interfaces) will be rejected.
|
||||
|
||||
It is recommended to use [`preferred_by`](/configuration/route/rule/#preferred_by)
|
||||
as a gate in the `route` rule: it only matches in
|
||||
[pre-match](/configuration/shared/pre-match/) and excludes local addresses that
|
||||
cannot be routed.
|
||||
|
||||
### Structure
|
||||
|
||||
```json
|
||||
|
||||
@@ -16,6 +16,11 @@ icon: material/new-box
|
||||
通过[预匹配](/zh/configuration/shared/pre-match/)中的 `route` 动作,将 L3 流量从 TUN
|
||||
或其他 L3 endpoints 路由到它;L4 连接将被拒绝。
|
||||
|
||||
到本机本地地址(loopback 或分配给本机网络接口的地址)的流量将被拒绝。
|
||||
|
||||
建议使用 [`preferred_by`](/zh/configuration/route/rule/#preferred_by) 作为 `route`
|
||||
规则的门禁:它仅在[预匹配](/zh/configuration/shared/pre-match/)中匹配,且排除了无法路由的本地地址。
|
||||
|
||||
### 结构
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user