{ "log": { "loglevel": "warning" }, "dns": { "servers": [ { "address": "https://dns.google/dns-query", "skipFallback": false } ], "queryStrategy": "UseIPv4" }, "inbounds": [ { "tag": "__INBOUND_TAG__", "port": 443, "protocol": "vless", "settings": { "clients": [], "decryption": "none" }, "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"] }, "streamSettings": { "network": "xhttp", "security": "reality", "xhttpSettings": { "host": "__SELFSTEAL_DOMAIN__", "mode": "stream-one", "path": "__XHTTP_PATH__" }, "realitySettings": { "dest": "/dev/shm/nginx.sock", "show": false, "xver": 1, "spiderX": "", "shortIds": ["__REALITY_SHORT_ID__"], "privateKey": "__REALITY_PRIVATE_KEY__", "serverNames": ["__SELFSTEAL_DOMAIN__"] } } } ], "outbounds": [ { "tag": "DIRECT", "protocol": "freedom" }, { "tag": "BLOCK", "protocol": "blackhole" } ], "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "domain": [ "regexp:^([a-z0-9-]+\\.)*2ip\\.[a-z0-9.-]+$", "domain:ifconfig.me", "domain:www.ifconfig.me", "domain:ifconfig.co", "domain:www.ifconfig.co", "domain:ifconfig.io", "domain:www.ifconfig.io", "domain:ifconfig.so", "domain:checkip.amazonaws.com", "domain:api.ipify.org", "domain:ipify.org", "domain:ip.sb", "domain:www.ip.sb", "domain:api-ipv4.ip.sb", "domain:api.ipv6.ip.sb", "domain:ip-api.com", "domain:api.ipapi.is", "domain:ipapi.co", "domain:ipapi.com", "domain:iplocation.net", "domain:iplocation.io", "domain:iplocation.com", "domain:ipwho.is", "domain:ipwhois.io", "domain:ipinfo.io", "domain:www.ipinfo.io", "domain:ident.me", "domain:myip.com", "domain:whatismyipaddress.com", "domain:wtfismyip.com", "domain:whatismyip.com", "domain:showmyip.com", "domain:icanhazip.com", "domain:geojs.io", "domain:ipleak.net", "domain:ipleak.org", "domain:browserleaks.com", "domain:dnsleaktest.com", "domain:dnscheck.tools", "domain:whoer.net", "domain:hidemy.name", "domain:sypexgeo.net", "domain:api.sypexgeo.net", "domain:mail.ru", "domain:ip.mail.ru", "full:ipv4-internet.yandex.net", "full:ipv6-internet.yandex.net", "full:www.cloudflare.com/cdn-cgi/trace" ], "outboundTag": "BLOCK" }, { "type": "field", "domain": [ "domain:habr.com", "domain:4pda.to", "domain:4pda.ru", "domain:kemono.su", "domain:jut.su", "domain:kara.su", "domain:theins.ru", "domain:tvrain.ru", "domain:echo.msk.ru", "domain:the-village.ru", "domain:snob.ru", "domain:novayagazeta.ru", "domain:moscowtimes.ru", "domain:allnorilsk.ru" ], "outboundTag": "DIRECT" }, { "type": "field", "ip": ["geoip:ru"], "outboundTag": "BLOCK" }, { "type": "field", "domain": ["geosite:category-ru"], "outboundTag": "BLOCK" }, { "type": "field", "ip": ["geoip:private"], "outboundTag": "BLOCK" }, { "type": "field", "protocol": ["bittorrent"], "outboundTag": "BLOCK" }, { "type": "field", "network": "tcp,udp", "outboundTag": "DIRECT" } ] } }