enable traffic + block IR domain

This commit is contained in:
MHSanaei
2023-03-29 01:07:58 +03:30
parent 80759c8951
commit 8b855a7cb5
5 changed files with 89 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View File

@@ -3,7 +3,6 @@
"loglevel": "warning",
"access": "./access.log"
},
"api": {
"services": [
"HandlerService",

View File

@@ -0,0 +1,81 @@
{
"log": {
"loglevel": "warning",
"access": "./access.log"
},
"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": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"domain": [
"regexp:.+.ir$"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"outboundTag": "blocked",
"ip": [
"geoip:private"
],
"type": "field"
}
]
},
"stats": {}
}

View File

@@ -3,7 +3,6 @@
"loglevel": "warning",
"access": "./access.log"
},
"api": {
"services": [
"HandlerService",