{ "routing": { "domainStrategy": "IPIfNonMatch", "settings": { "rules": [ { "type": "field", "outboundTag": "direct", "domain": [ "regexp:.*\\.ir$", "ext:iran.dat:ir" ], "ip": [ "geoip:ir" ] }, { "type": "field", "outboundTag": "upstream", "domain": [ "ext:iran.dat:other" ] }, { "type": "field", "outboundTag": "blocked", "domain": [ "ext:iran.dat:ads" ], "ip": [ "geoip:private" ] }, { "type": "field", "outboundTag": "api", "inboundTag": [ "api" ] } ] } }, "outbounds": [ { "tag": "upstream", "protocol": "vless", "settings": { "vnext": [ { "address": "SERVER_IP", "port": 2032, "users": [ { "id": "26efwef0ebee-267e-4f3a6e-9a09-cd1c803ff181e", "encryption": "none" } ] } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/2032" } } }, { "protocol": "freedom", "settings": { }, "tag": "direct" }, { "protocol": "blackhole", "settings": { }, "tag": "blocked" } ] }