Skip to content

Commit

Permalink
https://sing-box.sagernet.org/migration/#1110
Browse files Browse the repository at this point in the history
  • Loading branch information
pickrui committed Feb 20, 2025
1 parent 7c591af commit 58e36b6
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 198 deletions.
121 changes: 55 additions & 66 deletions sing-box/Head.conf
Original file line number Diff line number Diff line change
@@ -1,105 +1,94 @@
"log": {
"level": "info",
"level": "info",
"timestamp": true
},
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"secret": "",
"external_ui_download_url": "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip",
"external_ui_download_detour": "direct",
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"secret": "",
"external_ui_download_url": "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip",
"external_ui_download_detour": "direct",
"default_mode": "rule"
},
},
"cache_file": {
"enabled": true,
"enabled": true,
"store_fakeip": false
}
},
},
"dns": {
"servers": [
{
"tag": "dns_proxy",
"address": "tls://8.8.8.8",
"tag": "dns_proxy",
"address": "tls://8.8.8.8",
"detour": "Proxy"
},
},
{
"tag": "dns_direct",
"address": "https://223.5.5.5/dns-query",
"tag": "dns_direct",
"address": "https://223.5.5.5/dns-query",
"detour": "direct"
},
{
"tag": "dns_fakeip",
"address": "fakeip"
},
{
"tag": "block",
"address": "rcode://success"
}
],
],
"rules": [
{
"rule_set": "geosite-category-ads-all",
"server": "block"
},
{
"outbound": "any",
"server": "dns_direct",
"outbound": "any",
"server": "dns_direct",
"disable_cache": true
},
},
{
"rule_set": "geosite-cn",
"rule_set": "geosite-cn",
"server": "dns_direct"
},
},
{
"clash_mode": "direct",
"clash_mode": "direct",
"server": "dns_direct"
},
},
{
"clash_mode": "global",
"clash_mode": "global",
"server": "dns_proxy"
},
},
{
"rule_set": "geosite-geolocation-!cn",
"query_type": ["A", "AAAA"],
"server": "dns_fakeip",
"rewrite_ttl": 1
"rule_set": "geosite-geolocation-!cn",
"server": "dns_proxy"
}
],
"final": "dns_direct",
"strategy": "ipv4_only",
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
}
},
],
"final": "dns_direct",
"strategy": "ipv4_only"
},
"route": {
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
}
]
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"type": "tun",
"address": [
"172.18.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"strict_route": false,
"sniff": true,
"endpoint_independent_nat": false,
"stack": "system",
"auto_route": true,
"strict_route": true,
"stack": "system",
"platform": {
"http_proxy": {
"enabled": true,
"server": "127.0.0.1",
"enabled": true,
"server": "127.0.0.1",
"server_port": 7890
}
}
},
},
{
"type": "mixed",
"domain_strategy": "ipv4_only",
"listen": "127.0.0.1",
"listen_port": 7890,
"sniff": true,
"users": []
"tag": "mixed-in",
"type": "mixed",
"listen": "127.0.0.1",
"listen_port": 7890
}
],
],
Loading

0 comments on commit 58e36b6

Please sign in to comment.