2022-08-25 13:08:29 +00:00
|
|
|
# Route
|
|
|
|
|
2022-07-08 12:15:45 +00:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"route": {
|
|
|
|
"geoip": {},
|
|
|
|
"geosite": {},
|
|
|
|
"rules": [],
|
2022-07-10 08:41:38 +00:00
|
|
|
"final": "",
|
2022-07-15 03:51:51 +00:00
|
|
|
"auto_detect_interface": false,
|
2022-09-09 07:40:35 +00:00
|
|
|
"override_android_vpn": false,
|
2022-07-27 04:03:07 +00:00
|
|
|
"default_interface": "en0",
|
|
|
|
"default_mark": 233
|
2022-07-08 12:15:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
2023-06-07 13:10:01 +00:00
|
|
|
| Key | Format |
|
|
|
|
|------------|------------------------------------|
|
|
|
|
| `geoip` | [GeoIP](./geoip) |
|
|
|
|
| `geosite` | [Geosite](./geosite) |
|
|
|
|
| `rules` | List of [Route Rule](./rule) |
|
2022-07-08 12:15:45 +00:00
|
|
|
|
|
|
|
#### final
|
|
|
|
|
2022-07-10 08:41:38 +00:00
|
|
|
Default outbound tag. the first outbound will be used if empty.
|
|
|
|
|
|
|
|
#### auto_detect_interface
|
|
|
|
|
|
|
|
!!! error ""
|
|
|
|
|
2022-08-05 08:55:46 +00:00
|
|
|
Only supported on Linux, Windows and macOS.
|
2022-07-10 08:41:38 +00:00
|
|
|
|
2022-09-09 07:40:35 +00:00
|
|
|
Bind outbound connections to the default NIC by default to prevent routing loops under tun.
|
2022-07-10 08:41:38 +00:00
|
|
|
|
2022-07-15 03:51:51 +00:00
|
|
|
Takes no effect if `outbound.bind_interface` is set.
|
|
|
|
|
2022-09-09 07:40:35 +00:00
|
|
|
#### override_android_vpn
|
|
|
|
|
|
|
|
!!! error ""
|
|
|
|
|
|
|
|
Only supported on Android.
|
|
|
|
|
|
|
|
Accept Android VPN as upstream NIC when `auto_detect_interface` enabled.
|
|
|
|
|
2022-07-15 03:51:51 +00:00
|
|
|
#### default_interface
|
|
|
|
|
|
|
|
!!! error ""
|
|
|
|
|
2022-08-05 08:55:46 +00:00
|
|
|
Only supported on Linux, Windows and macOS.
|
2022-07-15 03:51:51 +00:00
|
|
|
|
2022-09-09 07:40:35 +00:00
|
|
|
Bind outbound connections to the specified NIC by default to prevent routing loops under tun.
|
2022-07-15 03:51:51 +00:00
|
|
|
|
|
|
|
Takes no effect if `auto_detect_interface` is set.
|
2022-07-27 04:03:07 +00:00
|
|
|
|
|
|
|
#### default_mark
|
|
|
|
|
|
|
|
!!! error ""
|
|
|
|
|
2022-08-04 14:01:20 +00:00
|
|
|
Only supported on Linux.
|
2022-07-27 04:03:07 +00:00
|
|
|
|
2022-08-24 08:23:21 +00:00
|
|
|
Set routing mark by default.
|
2022-07-27 04:03:07 +00:00
|
|
|
|
|
|
|
Takes no effect if `outbound.routing_mark` is set.
|