74 lines
1.2 KiB
JSON
74 lines
1.2 KiB
JSON
{
|
|
"log": {
|
|
"level": "warn",
|
|
"timestamp": true
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "tun",
|
|
"tag": "tun-in",
|
|
"interface_name": "xftun",
|
|
"address": [
|
|
"172.19.0.1/30"
|
|
],
|
|
"auto_route": true,
|
|
"strict_route": false,
|
|
"stack": "mixed"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "proxy"
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct",
|
|
"domain_resolver": "bootstrap-dns"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
}
|
|
],
|
|
"route": {
|
|
"auto_detect_interface": true,
|
|
"default_domain_resolver": "proxy-dns",
|
|
"rules": [
|
|
{
|
|
"action": "sniff"
|
|
},
|
|
{
|
|
"protocol": "dns",
|
|
"action": "hijack-dns"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"action": "route",
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"final": "proxy"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "bootstrap-dns",
|
|
"type": "udp",
|
|
"server": "1.1.1.1"
|
|
},
|
|
{
|
|
"tag": "proxy-dns",
|
|
"type": "tcp",
|
|
"server": "8.8.8.8",
|
|
"detour": "proxy"
|
|
}
|
|
],
|
|
"final": "proxy-dns"
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true
|
|
}
|
|
}
|
|
}
|