update - config

This commit is contained in:
MHSanaei 2023-05-18 11:52:53 +03:30
parent aba37be6eb
commit f781979d38
5 changed files with 86 additions and 41 deletions

View File

@ -6,7 +6,11 @@
}, },
"api": { "api": {
"tag": "api", "tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService"] "services": [
"HandlerService",
"LoggerService",
"StatsService"
]
}, },
"inbounds": [ "inbounds": [
{ {
@ -54,32 +58,41 @@
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
"inboundTag": ["api"], "inboundTag": [
"api"
],
"outboundTag": "api" "outboundTag": "api"
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "ip": [
"geoip:private"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
"bittorrent"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"domain": [ "domain": [
"geosite:category-ads-all" "geosite:category-ads-all",
"ext:iran.dat:ads"
] ]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "IPv4", "outboundTag": "IPv4",
"domain": ["geosite:google"] "domain": [
"geosite:google"
]
} }
] ]
}, },
"stats": {} "stats": {}
} }

View File

@ -6,7 +6,11 @@
}, },
"api": { "api": {
"tag": "api", "tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService"] "services": [
"HandlerService",
"LoggerService",
"StatsService"
]
}, },
"inbounds": [ "inbounds": [
{ {
@ -59,37 +63,44 @@
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
"inboundTag": ["api"], "inboundTag": [
"api"
],
"outboundTag": "api" "outboundTag": "api"
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "ip": [
"geoip:private"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
"bittorrent"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"domain": [ "domain": [
"geosite:category-ads-all" "geosite:category-ads-all",
"ext:iran.dat:ads"
] ]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "WARP", "outboundTag": "WARP",
"domain": [ "domain": [
"geosite:google",
"geosite:netflix",
"geosite:spotify", "geosite:spotify",
"geosite:openai" "geosite:netflix",
"geosite:openai",
"geosite:google"
] ]
} }
] ]
}, },
"stats": {} "stats": {}
} }

View File

@ -6,7 +6,11 @@
}, },
"api": { "api": {
"tag": "api", "tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService"] "services": [
"HandlerService",
"LoggerService",
"StatsService"
]
}, },
"inbounds": [ "inbounds": [
{ {
@ -47,18 +51,24 @@
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
"inboundTag": ["api"], "inboundTag": [
"api"
],
"outboundTag": "api" "outboundTag": "api"
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "ip": [
"geoip:private"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
"bittorrent"
]
}, },
{ {
"type": "field", "type": "field",
@ -73,4 +83,4 @@
] ]
}, },
"stats": {} "stats": {}
} }

View File

@ -6,7 +6,11 @@
}, },
"api": { "api": {
"tag": "api", "tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService"] "services": [
"HandlerService",
"LoggerService",
"StatsService"
]
}, },
"inbounds": [ "inbounds": [
{ {
@ -47,30 +51,27 @@
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
"inboundTag": ["api"], "inboundTag": [
"api"
],
"outboundTag": "api" "outboundTag": "api"
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "ip": [
"geoip:private",
"geoip:ir"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
}, "bittorrent"
{ ]
"type": "field",
"outboundTag": "blocked",
"ip": ["geoip:private"]
},
{
"type": "field",
"outboundTag": "blocked",
"ip": ["geoip:ir"]
} }
] ]
}, },
"stats": {} "stats": {}
} }

View File

@ -6,7 +6,11 @@
}, },
"api": { "api": {
"tag": "api", "tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService"] "services": [
"HandlerService",
"LoggerService",
"StatsService"
]
}, },
"inbounds": [ "inbounds": [
{ {
@ -47,20 +51,26 @@
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
"inboundTag": ["api"], "inboundTag": [
"api"
],
"outboundTag": "api" "outboundTag": "api"
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "ip": [
"geoip:private"
]
}, },
{ {
"type": "field", "type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
"bittorrent"
]
} }
] ]
}, },
"stats": {} "stats": {}
} }