github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/route/index.md (about)

     1  # Route
     2  
     3  !!! quote "Changes in sing-box 1.8.0"
     4  
     5      :material-plus: [rule_set](#rule_set)  
     6      :material-delete-clock: [geoip](#geoip)  
     7      :material-delete-clock: [geosite](#geosite)
     8  
     9  ### Structure
    10  
    11  ```json
    12  {
    13    "route": {
    14      "geoip": {},
    15      "geosite": {},
    16      "rules": [],
    17      "rule_set": [],
    18      "final": "",
    19      "auto_detect_interface": false,
    20      "override_android_vpn": false,
    21      "default_interface": "en0",
    22      "default_mark": 233
    23    }
    24  }
    25  ```
    26  
    27  ### Fields
    28  
    29  | Key       | Format               |
    30  |-----------|----------------------|
    31  | `geoip`   | [GeoIP](./geoip/)     |
    32  | `geosite` | [Geosite](./geosite/) |
    33  
    34  #### rules
    35  
    36  List of [Route Rule](./rule/)
    37  
    38  #### rule_set
    39  
    40  !!! question "Since sing-box 1.8.0"
    41  
    42  List of [Rule Set](/configuration/rule-set/)
    43  
    44  #### final
    45  
    46  Default outbound tag. the first outbound will be used if empty.
    47  
    48  #### auto_detect_interface
    49  
    50  !!! quote ""
    51  
    52      Only supported on Linux, Windows and macOS.
    53  
    54  Bind outbound connections to the default NIC by default to prevent routing loops under tun.
    55  
    56  Takes no effect if `outbound.bind_interface` is set.
    57  
    58  #### override_android_vpn
    59  
    60  !!! quote ""
    61  
    62      Only supported on Android.
    63  
    64  Accept Android VPN as upstream NIC when `auto_detect_interface` enabled.
    65  
    66  #### default_interface
    67  
    68  !!! quote ""
    69  
    70      Only supported on Linux, Windows and macOS.
    71  
    72  Bind outbound connections to the specified NIC by default to prevent routing loops under tun.
    73  
    74  Takes no effect if `auto_detect_interface` is set.
    75  
    76  #### default_mark
    77  
    78  !!! quote ""
    79  
    80      Only supported on Linux.
    81  
    82  Set routing mark by default.
    83  
    84  Takes no effect if `outbound.routing_mark` is set.