mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 01:51:29 +00:00
57 lines
1.1 KiB
Markdown
57 lines
1.1 KiB
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"route": {
|
|
"geoip": {},
|
|
"geosite": {},
|
|
"rules": [],
|
|
"final": "",
|
|
"auto_detect_interface": false,
|
|
"default_interface": "en0",
|
|
"default_mark": 233
|
|
}
|
|
}
|
|
```
|
|
|
|
### 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 ""
|
|
|
|
Only supported on Linux, Windows and macOS.
|
|
|
|
Bind outbound connections to the default NIC by default to prevent routing loops under Tun.
|
|
|
|
Takes no effect if `outbound.bind_interface` is set.
|
|
|
|
#### default_interface
|
|
|
|
!!! error ""
|
|
|
|
Only supported on Linux, Windows and macOS.
|
|
|
|
Bind outbound connections to the specified NIC by default to prevent routing loops under Tun.
|
|
|
|
Takes no effect if `auto_detect_interface` is set.
|
|
|
|
#### default_mark
|
|
|
|
!!! error ""
|
|
|
|
Only supported on Linux.
|
|
|
|
Set iptables routing mark by default.
|
|
|
|
Takes no effect if `outbound.routing_mark` is set. |