{
    "log": {
        "level": "error",
        "timestamp": true
    },
    "experimental": {
        "clash_api": {
            "default_mode": "rule",
            "external_controller": "127.0.0.1:9090",
            "external_ui": "ui",
            "secret": ""
        },
        "cache_file": {
            "enabled": true,
            "store_fakeip": false
        }
    },
    "inbounds": [
        {
            "type": "tun",
            "tag": "in",
            "interface_name": "sbin-tun",
            "mtu": 9000,
            "address": "172.19.0.1/28",
            "auto_route": true,
            "stack": "gvisor",
            "platform": {
                "http_proxy": {
                    "enabled": true,
                    "server": "127.0.0.1",
                    "server_port": 2080
                }
            }
        }
    ],
    "dns": {
        "servers": [
            {
                "detour": "dns-detour-group",
                "server": "1.1.1.1",
                "tag": "dns-proxy",
                "type": "https"
            },
            {
                "tag": "dns-local",
                "type": "local"
            }
        ],
        "rules": [
            {
                "domain_suffix": [
                    ".ru",
                    ".рф"
                ],
                "server": "dns-local"
            },
            {
                "clash_mode": "direct",
                "server": "dns-local"
            },
            {
                "clash_mode": "global",
                "server": "dns-proxy"
            }
        ],
        "final": "dns-proxy",
        "strategy": "ipv4_only"
    },
    "route": {
        "final": "FINAL",
        "find_process": true,
        "default_domain_resolver": {
            "server": "dns-proxy",
            "strategy": "ipv4_only"
        },
        "rule_set": [
            {
                "tag": "block",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/block.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geoip-ru",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geoip-ru.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-private",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geosite-private.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-telegram",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geosite-telegram.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-yandex",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geosite-yundaex.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-vk",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geosite-vk.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-mailru",
                "type": "remote",
                "format": "binary",
                "url": "https://sq7-cr.2waky.com/rules/geosite-mailru.srs",
                "download_detour": "direct"
            }
        ],
        "rules": [
            {
                "inbound": "in",
                "action": "sniff"
            },
            {
                "action": "route",
                "protocol": "dns",
                "domain_suffix": [
                    ".ru",
                    ".рф"
                ],
                "outbound": "direct"
            },
            {
                "action": "hijack-dns",
                "protocol": "dns"
            },
            {
                "rule_set": [
                    "block"
                ],
                "action": "reject"
            },
            {
                "action": "route",
                "outbound": "direct",
                "rule_set": [
                    "geoip-ru",
                    "geosite-private",
                    "geosite-yandex",
                    "geosite-vk",
                    "geosite-mailru"
                ]
            },
            {
                "action": "route",
                "outbound": "FINAL",
                "rule_set": [
                    "geosite-telegram"
                ]
            },
            {
                "clash_mode": "direct",
                "outbound": "direct"
            },
            {
                "clash_mode": "global",
                "outbound": "FINAL"
            }
        ]
    },
    "outbounds": [
        {
            "type": "vless",
            "tag": "bola-vless",
            "flow": "xtls-rprx-vision",
            "packet_encoding": "",
            "server": "31.76.13.40",
            "server_port": 443,
            "tls": {
                "alpn": [],
                "enabled": true,
                "reality": {
                    "enabled": true,
                    "public_key": "2HKmwQ1ILlGygl_yOrrfF_-4xGSL7vBOeTiUVj8a0VI",
                    "short_id": "6948c7f9cffff5ff"
                },
                "server_name": "www.google.com",
                "utls": {
                    "enabled": true,
                    "fingerprint": "firefox"
                }
            },
            "uuid": "b5cbaaef-6205-4fbb-a2db-50268c8e3695"
        },
        {
            "tag": "bola-naive",
            "type": "naive",
            "server": "31.76.13.40",
            "server_port": 6443,
            "username": "aza",
            "password": "WzqcAyCUra4l",
            "insecure_concurrency": 0,
            "extra_headers": {},
            "udp_over_tcp": false,
            "quic": false,
            "quic_congestion_control": "",
            "tls": {
                "enabled": true,
                "server_name": "sq8-bol.duckdns.org"
            }
        },
        {
            "type": "tuic",
            "tag": "bola-tuic",
            "server": "31.76.13.40",
            "server_port": 8443,
            "uuid": "0847a74f-10f6-42b1-af37-43cc69665a26",
            "password": "2718281828",
            "udp_over_stream": false,
            "zero_rtt_handshake": false,
            "heartbeat": "10s",
            "tls": {
                "enabled": true,
                "server_name": "sq8-bol.duckdns.org"
            }
        },
        {
            "type": "anytls",
            "tag": "bola-anytls",
            "server": "31.76.13.40",
            "server_port": 9443,
            "password": "8JCsPssfgS8tiRwiMlhARg==",
            "idle_session_check_interval": "30s",
            "idle_session_timeout": "30s",
            "min_idle_session": 5,
            "tls": {
                "enabled": true,
                "server_name": "sq8-bol.duckdns.org"
            }
        },
        {
            "type": "hysteria2",
            "tag": "bola-hysteria2",
            "server": "31.76.13.40",
            "server_port": 7443,
            "password": "8JCsPssfgS8tiRwiMlhARg==",
            "obfs": {
                "type": "salamander",
                "password": "31415926"
            },
            "tls": {
                "enabled": true,
                "server_name": "sq8-bol.duckdns.org"
            }
        },
        {
            "tag": "direct",
            "type": "direct"
        },
        {
            "type": "selector",
            "tag": "FINAL",
            "outbounds": [
                "bola-vless",
                "bola-naive",
                "bola-tuic",
                "bola-anytls",
                "bola-hysteria2"
            ]
        },
        {
            "type": "selector",
            "tag": "dns-detour-group",
            "outbounds": [
                "bola-vless",
                "bola-naive",
                "bola-anytls"
            ]
        }
    ]
}