3x-ui/media/configs/traffic+block-iran-domains.json

84 lines
1.4 KiB
JSON
Raw Normal View History

2023-04-18 10:01:52 +03:00
{
"log": {
"loglevel": "warning",
"error": "./error.log"
},
"api": {
"tag": "api",
2023-05-18 11:22:53 +03:00
"services": [
"HandlerService",
"LoggerService",
"StatsService"
]
2023-04-18 10:01:52 +03:00
},
"inbounds": [
{
"tag": "api",
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"policy": {
"levels": {
"0": {
"statsUserDownlink": true,
"statsUserUplink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
2023-05-18 11:22:53 +03:00
"inboundTag": [
"api"
],
2023-04-18 10:01:52 +03:00
"outboundTag": "api"
},
{
"type": "field",
"outboundTag": "blocked",
2023-05-18 11:22:53 +03:00
"ip": [
"geoip:private"
]
2023-04-18 10:01:52 +03:00
},
{
"type": "field",
"outboundTag": "blocked",
2023-05-18 11:22:53 +03:00
"protocol": [
"bittorrent"
]
2023-04-18 10:01:52 +03:00
},
{
"type": "field",
"outboundTag": "blocked",
"domain": [
"regexp:.*\\.ir$",
"regexp:.*\\.xn--mgba3a4f16a$",
"ext:geosite_IR.dat:ir"
2023-04-18 10:01:52 +03:00
]
}
]
},
"stats": {}
2023-05-18 11:22:53 +03:00
}