Create singbox.json
This commit is contained in:
208
core/scripts/normalsub/singbox.json
Normal file
208
core/scripts/normalsub/singbox.json
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
{
|
||||||
|
"log": {
|
||||||
|
"level": "warn",
|
||||||
|
"output": "box.log",
|
||||||
|
"timestamp": true
|
||||||
|
},
|
||||||
|
"dns": {
|
||||||
|
"servers": [
|
||||||
|
{
|
||||||
|
"tag": "dns-remote",
|
||||||
|
"address": "udp://1.1.1.1",
|
||||||
|
"address_resolver": "dns-direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "dns-direct",
|
||||||
|
"address": "1.1.1.1",
|
||||||
|
"address_resolver": "dns-local",
|
||||||
|
"detour": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "dns-local",
|
||||||
|
"address": "local",
|
||||||
|
"detour": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "dns-block",
|
||||||
|
"address": "rcode://success"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"independent_cache": true
|
||||||
|
},
|
||||||
|
"inbounds": [
|
||||||
|
{
|
||||||
|
"type": "tun",
|
||||||
|
"tag": "tun-in",
|
||||||
|
"address": [
|
||||||
|
"172.18.0.1/30",
|
||||||
|
"fdfe:dcba:9876::1/126"
|
||||||
|
],
|
||||||
|
"mtu": 9000,
|
||||||
|
"auto_route": true,
|
||||||
|
"auto_redirect": false,
|
||||||
|
"strict_route": true,
|
||||||
|
"route_address": [
|
||||||
|
"0.0.0.0/1",
|
||||||
|
"128.0.0.0/1",
|
||||||
|
"::/1",
|
||||||
|
"8000::/1"
|
||||||
|
],
|
||||||
|
|
||||||
|
"route_exclude_address": [
|
||||||
|
"192.168.0.0/16",
|
||||||
|
"fc00::/7"
|
||||||
|
],
|
||||||
|
"sniff": true,
|
||||||
|
"sniff_override_destination": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "direct",
|
||||||
|
"tag": "dns-in",
|
||||||
|
"listen": "127.0.0.1",
|
||||||
|
"listen_port": 6450
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "select",
|
||||||
|
"outbounds": [
|
||||||
|
"auto"
|
||||||
|
],
|
||||||
|
"default": "auto"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "urltest",
|
||||||
|
"tag": "auto",
|
||||||
|
"outbounds": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"url": "http://connectivitycheck.gstatic.com/generate_204",
|
||||||
|
"interval": "10m0s",
|
||||||
|
"idle_timeout": "1h40m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "direct",
|
||||||
|
"tag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "direct",
|
||||||
|
"tag": "bypass"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"route": {
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"inbound": "tun-in",
|
||||||
|
"action": "sniff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geosite-category-ads-all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geosite-malware"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geosite-phishing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geosite-cryptominers"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geoip-malware"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reject",
|
||||||
|
"rule_set": "geoip-phishing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "hijack-dns",
|
||||||
|
"protocol": "dns"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "route",
|
||||||
|
"rule_set": "geosite-ir",
|
||||||
|
"outbound": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "route",
|
||||||
|
"rule_set": "geoip-ir",
|
||||||
|
"outbound": "direct"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"rule_set": [
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-ir",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-category-ads-all",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-malware",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-phishing",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-cryptominers",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geoip-ir",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geoip-malware",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geoip-phishing",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"update_interval": "72h0m0s"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"auto_detect_interface": true,
|
||||||
|
"override_android_vpn": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user