sing-box/docs/configuration/route/index.md

57 lines
1.1 KiB
Markdown
Raw Normal View History

2022-07-08 20:15:45 +08:00
### Structure
```json
{
"route": {
"geoip": {},
"geosite": {},
"rules": [],
"final": "",
2022-07-15 11:51:51 +08:00
"auto_detect_interface": false,
2022-07-27 12:03:07 +08:00
"default_interface": "en0",
"default_mark": 233
2022-07-08 20:15:45 +08:00
}
}
```
### Fields
| Key | Format |
|-----------|------------------------------|
| `geoip` | [GeoIP](./geoip) |
| `geosite` | [Geosite](./geosite) |
| `rules` | List of [Route Rule](./rule) |
#### final
Default outbound tag. the first outbound will be used if empty.
#### auto_detect_interface
!!! error ""
2022-08-04 22:01:20 +08:00
Only supported on Linux and Windows.
Bind outbound connections to the default NIC by default to prevent routing loops under Tun.
2022-07-15 11:51:51 +08:00
Takes no effect if `outbound.bind_interface` is set.
#### default_interface
!!! error ""
2022-08-04 22:01:20 +08:00
Only supported on Linux and Windows.
2022-07-15 11:51:51 +08:00
Bind outbound connections to the specified NIC by default to prevent routing loops under Tun.
Takes no effect if `auto_detect_interface` is set.
2022-07-27 12:03:07 +08:00
#### default_mark
!!! error ""
2022-08-04 22:01:20 +08:00
Only supported on Linux.
2022-07-27 12:03:07 +08:00
Set iptables routing mark by default.
Takes no effect if `outbound.routing_mark` is set.