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

77 lines
1.4 KiB
JSON
Raw Normal View History

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