Closed Ali-Flt closed 1 year ago
I'm using the iran.dat database in my server (using xray core). I want to block all traffic to Iranian domains. Here is the xray config:
iran.dat
{ "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "levels": { "0": { "statsUserUplink": true, "statsUserDownlink": true } }, "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private", "geoip:ir" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" }, { "outboundTag": "blocked", "domain": [ "regexp:.*\\.ir$", "ext:iran.dat:other", "snapp", "digikala","tapsi", "blogfa", "bank", "sb24.com", "sheypoor.com", "tebyan.net", "beytoote.com", "telewebion.com", "Film2movie.ws", "Setare.com", "Filimo.com", "Torob.com", "Tgju.org", "Sarzamindownload.com", "downloadha.com", "P30download.com", "Sanjesh.org" ], "type": "field" } ] }, "stats": {} }
But when I open any link inside ubuntu.com it is blocked. Why is that? Is there a way to see the list of sites inside the .dat file?
ubuntu.com
.dat
I have checked the domains.txt file and ubuntu.com is included in the list.
domains.txt
Hey, thanks for sending in the report. I took care of the problem and got it fixed.
I'm using the
iran.dat
database in my server (using xray core). I want to block all traffic to Iranian domains. Here is the xray config:But when I open any link inside
ubuntu.com
it is blocked. Why is that? Is there a way to see the list of sites inside the.dat
file?