documentation: Add description of fib_index

This commit is contained in:
Vincent Loeng 2025-05-28 09:00:10 +08:00
parent d1fbabaef3
commit 325eadf37a
No known key found for this signature in database
GPG Key ID: E700D25C42223E3D
2 changed files with 28 additions and 2 deletions

View File

@ -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"

View File

@ -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 起"