github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/configuration/route/index.md (about)

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