diff --git a/docs/configuration/inbound/tun.md b/docs/configuration/inbound/tun.md index d00d813a..baffe335 100644 --- a/docs/configuration/inbound/tun.md +++ b/docs/configuration/inbound/tun.md @@ -2,6 +2,10 @@ icon: material/alert-decagram --- +!!! quote "Changes in sing-box 1.12.0" + + :material-plus: [fib_index](#fib_index) + !!! quote "Changes in sing-box 1.11.0" :material-delete-alert: [gso](#gso) @@ -39,7 +43,7 @@ icon: material/alert-decagram !!! quote "" - Only supported on Linux, Windows and macOS. + Only supported on Linux, Windows, macOS and FreeBSD. ### Structure @@ -56,6 +60,7 @@ icon: material/alert-decagram "auto_route": true, "iproute2_table_index": 2022, "iproute2_rule_index": 9000, + "fib_index": 2022, "auto_redirect": false, "auto_redirect_input_mark": "0x2023", "auto_redirect_output_mark": "0x2024", @@ -231,6 +236,14 @@ Linux iproute2 rule start index generated by `auto_route`. `9000` is used by default. +#### fib_index + +!!! question "Since sing-box 1.12.0" + +FreeBSD fib index generated by `auto_route`. + +`2022` is used by default. + #### auto_redirect !!! question "Since sing-box 1.10.0" diff --git a/docs/configuration/inbound/tun.zh.md b/docs/configuration/inbound/tun.zh.md index b3b561f1..6b25b055 100644 --- a/docs/configuration/inbound/tun.zh.md +++ b/docs/configuration/inbound/tun.zh.md @@ -2,6 +2,10 @@ icon: material/alert-decagram --- +!!! quote "sing-box 1.12.0 中的更改" + + :material-plus: [fib_index](#fib_index) + !!! quote "sing-box 1.11.0 中的更改" :material-delete-alert: [gso](#gso) @@ -39,7 +43,7 @@ icon: material/alert-decagram !!! quote "" - 仅支持 Linux、Windows 和 macOS。 + 仅支持 Linux、Windows、macOS和 FreeBSD。 ### 结构 @@ -56,6 +60,7 @@ icon: material/alert-decagram "auto_route": true, "iproute2_table_index": 2022, "iproute2_rule_index": 9000, + "fib_index": 2022, "auto_redirect": false, "auto_redirect_input_mark": "0x2023", "auto_redirect_output_mark": "0x2024", @@ -235,6 +240,14 @@ tun 接口的 IPv6 前缀。 默认使用 `9000`。 +#### fib_index + +!!! question "自 sing-box 1.12.0 起" + +`auto_route` 生成的 fib 路由表索引。 + +默认使用 `2022`。 + #### auto_redirect !!! question "自 sing-box 1.10.0 起"