1-Quick Start
{
"dns": {
"servers": [
// 1. google ็ dns ๆๅกๅจ
{
"tag": "google",
"address": "tls://8.8.8.8"
},
// 2. ้ฟ้็ dns ๆๅกๅจ
{
"tag": "local",
"address": "223.5.5.5",
"detour": "direct"
}
],
// DNS ่งฃๆไผๅ
่ตฐ local-tag ,ไนๅฐฑๆฏ้ฟ้
"rules": [
{
"outbound": "any",
"server": "local"
}
],
// ไป
ไป
ไฝฟ็จ ipv4
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "tun", // ไฝฟ็จ TUN ๆจกๅผ
"inet4_address": "172.19.0.1/30", // TUN ๆฅๅฃ็. IPV4 ๅฐๅๅๅญ็ฝๆฉ็
"auto_route": true, // ่ชๅจ้
็ฝฎ่ทฏ็ฑ
"strict_route": false // ็ฆๆญขไธฅๆ ผ่ทฏ็ฑๆจกๅผ
}
],
"outbounds": [
// ...
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geoip": [
"private"
],
"outbound": "direct"
}
],
"auto_detect_interface": true // ่ชๅจๆฃๆต็ฝ็ปๆฅๅฃ
}
}
refer