-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Amir Hossein Bonyadi
committed
Mar 19, 2024
1 parent
895c138
commit 9ca3416
Showing
1 changed file
with
276 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,276 @@ | ||
{ | ||
"log": { | ||
"disabled": false, | ||
"level": "error", | ||
"timestamp": true | ||
}, | ||
"experimental": { | ||
"clash_api": { | ||
"external_controller": "127.0.0.1:9090", | ||
"external_ui": "yacd", | ||
"external_ui_download_url": "https:\/\/github.com/MetaCubeX/Yacd-meta/archive\/gh-pages.zip", | ||
"external_ui_download_detour": "direct", | ||
"default_mode": "rule" | ||
}, | ||
"cache_file": { | ||
"enabled": true, | ||
"path": "cache.db", | ||
"store_fakeip": false | ||
} | ||
}, | ||
"dns": { | ||
"servers": [ | ||
{ | ||
"tag": "dns-remote", | ||
"address": "https:\/\/1.1.1.1\/dns-query", | ||
"address_resolver": "dns-direct", | ||
"strategy": "ipv4_only", | ||
"detour": "proxy" | ||
}, | ||
{ | ||
"tag": "dns-direct", | ||
"address": "tcp:\/\/8.8.8.8", | ||
"strategy": "ipv4_only", | ||
"detour": "direct" | ||
}, | ||
{ | ||
"tag": "dns-block", | ||
"address": "rcode:\/\/success" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"domain_suffix": ".ir", | ||
"server": "dns-direct" | ||
}, | ||
{ | ||
"rule_set": [ | ||
"geoip-ir", | ||
"geosite-ir" | ||
], | ||
"server": "dns-direct" | ||
}, | ||
{ | ||
"domain": "cp.cloudflare.com", | ||
"server": "dns-remote", | ||
"rewrite_ttl": 3600 | ||
}, | ||
{ | ||
"domain": "courier.push.apple.com", | ||
"server": "dns-direct" | ||
}, | ||
{ | ||
"outbound": "direct", | ||
"server": "dns-direct", | ||
"rewrite_ttl": 3600 | ||
}, | ||
{ | ||
"outbound": "any", | ||
"server": "dns-direct", | ||
"rewrite_ttl": 3600 | ||
}, | ||
{ | ||
"query_type": [ | ||
32, | ||
33 | ||
], | ||
"server": "dns-block" | ||
}, | ||
{ | ||
"domain_suffix": [ | ||
".arpa", | ||
".arpa.", | ||
".lan" | ||
], | ||
"server": "dns-block" | ||
} | ||
], | ||
"reverse_mapping": true, | ||
"disable_cache": false, | ||
"disable_expire": false, | ||
"strategy": "ipv4_only", | ||
"independent_cache": true, | ||
"final": "dns-remote" | ||
}, | ||
"inbounds": [ | ||
{ | ||
"type": "tun", | ||
"tag": "tun-in", | ||
"domain_strategy": "ipv4_only", | ||
"interface_name": "sing-tun", | ||
"inet4_address": "172.19.0.1\/30", | ||
"mtu": 1500, | ||
"auto_route": true, | ||
"strict_route": true, | ||
"stack": "system", | ||
"endpoint_independent_nat": true, | ||
"sniff": true, | ||
"sniff_override_destination": false | ||
} | ||
], | ||
"outbounds": [ | ||
{ | ||
"tag": "proxy", | ||
"type": "selector", | ||
"outbounds": [ | ||
"Auto", | ||
"WARP+" | ||
], | ||
"interrupt_exist_connections": false | ||
}, | ||
{ | ||
"tag": "Auto", | ||
"type": "urltest", | ||
"outbounds": [ | ||
"WARP+" | ||
], | ||
"url": "http:\/\/cp.cloudflare.com\/", | ||
"interval": "10m0s", | ||
"interrupt_exist_connections": false | ||
}, | ||
{ | ||
"tag": "direct", | ||
"type": "direct" | ||
}, | ||
{ | ||
"tag": "block", | ||
"type": "block" | ||
}, | ||
{ | ||
"tag": "dns-out", | ||
"type": "dns" | ||
} | ||
], | ||
"route": { | ||
"auto_detect_interface": true, | ||
"override_android_vpn": true, | ||
"final": "proxy", | ||
"rules": [ | ||
{ | ||
"outbound": "dns-out", | ||
"protocol": "dns" | ||
}, | ||
{ | ||
"ip_is_private": true, | ||
"outbound": "direct" | ||
}, | ||
{ | ||
"domain_suffix": [ | ||
".ir" | ||
], | ||
"outbound": "direct" | ||
}, | ||
{ | ||
"rule_set": [ | ||
"geosite-category-ads-all", | ||
"geosite-malware", | ||
"geosite-phishing", | ||
"geosite-cryptominers", | ||
"geoip-malware", | ||
"geoip-phishing" | ||
], | ||
"outbound": "block" | ||
}, | ||
{ | ||
"rule_set": [ | ||
"geoip-ir", | ||
"geoip-ru", | ||
"geoip-cn", | ||
"geosite-ir", | ||
"geosite-cn" | ||
], | ||
"outbound": "direct" | ||
} | ||
], | ||
"rule_set": [ | ||
{ | ||
"tag": "geosite-ir", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geosite-category-ads-all", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geosite-malware", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geosite-phishing", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geosite-cryptominers", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geoip-ir", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geoip-malware", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geoip-phishing", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geoip-ru", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ru.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geoip-cn", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-cn.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
}, | ||
{ | ||
"tag": "geosite-cn", | ||
"type": "remote", | ||
"format": "binary", | ||
"url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cn.srs", | ||
"download_detour": "direct", | ||
"update_interval": "1d" | ||
} | ||
] | ||
} | ||
} |