mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-14 12:48:28 +10:00
Update bypass action behavior for auto redirect
This commit is contained in:
@@ -24,10 +24,14 @@ When a rule matches an action that requires an established connection, pre-match
|
||||
|
||||
Reject with TCP RST / ICMP unreachable.
|
||||
|
||||
See [reject](/configuration/route/rule_action/#reject) for details.
|
||||
|
||||
#### route
|
||||
|
||||
Route ICMP connections to the specified outbound for direct reply.
|
||||
|
||||
See [route](/configuration/route/rule_action/#route) for details.
|
||||
|
||||
#### bypass
|
||||
|
||||
!!! question "Since sing-box 1.13.0"
|
||||
@@ -37,3 +41,10 @@ Route ICMP connections to the specified outbound for direct reply.
|
||||
Only supported on Linux with `auto_redirect` enabled.
|
||||
|
||||
Bypass sing-box and connect directly at kernel level.
|
||||
|
||||
If `outbound` is not specified, the rule only matches in pre-match from auto redirect,
|
||||
and will be skipped in other contexts.
|
||||
|
||||
For all other contexts, bypass with `outbound` behaves like `route` action.
|
||||
|
||||
See [bypass](/configuration/route/rule_action/#bypass) for details.
|
||||
|
||||
@@ -22,10 +22,14 @@ icon: material/new-box
|
||||
|
||||
以 TCP RST / ICMP 不可达拒绝。
|
||||
|
||||
详情参阅 [reject](/configuration/route/rule_action/#reject)。
|
||||
|
||||
#### route
|
||||
|
||||
将 ICMP 连接路由到指定出站以直接回复。
|
||||
|
||||
详情参阅 [route](/configuration/route/rule_action/#route)。
|
||||
|
||||
#### bypass
|
||||
|
||||
!!! question "自 sing-box 1.13.0 起"
|
||||
@@ -35,3 +39,9 @@ icon: material/new-box
|
||||
仅支持 Linux,且需要启用 `auto_redirect`。
|
||||
|
||||
在内核层面绕过 sing-box 直接连接。
|
||||
|
||||
如果未指定 `outbound`,规则仅在来自 auto redirect 的预匹配中匹配,在其他场景中将被跳过。
|
||||
|
||||
对于其他所有场景,指定了 `outbound` 的 bypass 行为与 `route` 相同。
|
||||
|
||||
详情参阅 [bypass](/configuration/route/rule_action/#bypass)。
|
||||
|
||||
Reference in New Issue
Block a user