{ "log": { "disabled": false, "level": "fatal", "timestamp": true }, "experimental": { "clash_api": { "external_controller": "127.0.0.1:9090", "external_ui": "metacubexd", "external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip", "external_ui_download_detour": "bypass", "default_mode": "rule" }, "cache_file": { "enabled": true, "path": "cache.db", "store_fakeip": false } }, "dns": { "servers": [ { "tag": "dns-remote", "address": "udp://1.1.1.1", "address_resolver": "dns-direct", "address_strategy": "prefer_ipv4", "strategy": "prefer_ipv4" }, { "tag": "dns-direct", "address": "1.1.1.1", "address_resolver": "dns-local", "strategy": "prefer_ipv4", "detour": "direct" }, { "tag": "dns-local", "address": "local", "detour": "bypass" }, { "tag": "dns-block", "address": "rcode://success" } ], "rules": [ { "rule_set": [ "geosite-ir" ], "domain_suffix": ".ir", "server": "dns-direct" } ], "final": "dns-remote", "independent_cache": true }, "inbounds": [ { "type": "tun", "tag": "tun-in", "domain_strategy": "prefer_ipv4", "interface_name": "sing-tun", "inet4_address": "172.19.0.1/30", "mtu": 9000, "auto_route": true, "strict_route": true, "stack": "gvisor", "endpoint_independent_nat": true, "sniff": true, "sniff_override_destination": false } ], "outbounds": [ { "tag": "Proxy", "type": "selector", "outbounds": [ "WARP-MAIN", "WARP-WOW" ], "default": "WARP-WOW", "interrupt_exist_connections": false }, { "tag": "direct", "type": "direct" }, { "tag": "block", "type": "block" }, { "type": "wireguard", "server": "188.114.96.74", "server_port": 854, "local_address": [ "172.16.0.2/32", "2606:4700:110:846c:e510:bfa1:ea9f:5247/128" ], "private_key": "CJpY/MikNETgFIZsmL4plW6BlFJCausOopt4CDbEbHo=", "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=", "reserved": [ 9, 248, 111 ], "mtu": 1280, "workers": 4, "detour": "direct", "tag": "WARP-MAIN", "fake_packets": "1-3", "fake_packets_size": "10-30", "fake_packets_delay": "10-30", "fake_packets_mode": "m4" }, { "type": "wireguard", "server": "188.114.98.8", "server_port": 3138, "local_address": [ "172.16.0.3/32", "2606:4700:110:846c:e510:bfa1:ea9f:5247/128" ], "private_key": "QGYw5/iVtPV1bHXGsW+vy/bc6KYljuVk/Cta9Y0VGWo=", "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=", "reserved": [ 214, 168, 142 ], "mtu": 1280, "workers": 4, "detour": "WARP-MAIN", "tag": "WARP-WOW", "fake_packets_mode": "m4" }, { "type": "direct", "tag": "bypass" }, { "tag": "dns-out", "type": "dns" } ], "route": { "auto_detect_interface": true, "override_android_vpn": true, "final": "Proxy", "rules": [ { "type": "logical", "mode": "or", "rules": [ { "protocol": "dns" }, { "port": 53 } ], "outbound": "dns-out" }, { "ip_is_private": true, "outbound": "bypass" }, { "domain_suffix": [ ".ir" ], "outbound": "bypass" }, { "rule_set": [ "geosite-category-ads-all", "geosite-malware", "geosite-phishing", "geosite-cryptominers", "geoip-malware", "geoip-phishing" ], "outbound": "block" }, { "rule_set": [ "geoip-ir", "geosite-ir" ], "outbound": "bypass" } ], "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": "bypass", "update_interval": "8d" }, { "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": "bypass", "update_interval": "8d" }, { "tag": "geosite-malware", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs", "download_detour": "bypass", "update_interval": "8d" }, { "tag": "geosite-phishing", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs", "download_detour": "bypass", "update_interval": "8d" }, { "tag": "geosite-cryptominers", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs", "download_detour": "bypass", "update_interval": "8d" }, { "tag": "geoip-ir", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs", "download_detour": "bypass", "update_interval": "8d" }, { "tag": "geoip-malware", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs", "download_detour": "bypass", "update_interval": "8d" }, { "tag": "geoip-phishing", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs", "download_detour": "bypass", "update_interval": "8d" } ] } }