update config

This commit is contained in:
mhsanaei
2024-10-17 13:06:00 +02:00
parent ce49394284
commit d5e19ce077
2 changed files with 40 additions and 22 deletions

View File

@@ -43,11 +43,13 @@
}, },
"outbounds": [ "outbounds": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
"domainStrategy": "UseIP" "domainStrategy": "UseIP",
} "noises": [],
"redirect": ""
},
"tag": "direct"
}, },
{ {
"tag": "block", "tag": "block",

View File

@@ -1,34 +1,44 @@
{ {
"log": {
"loglevel": "warning"
},
"api": { "api": {
"tag": "api", "services": [
"services": ["HandlerService", "LoggerService", "StatsService"] "HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
}, },
"inbounds": [ "inbounds": [
{ {
"tag": "api",
"listen": "127.0.0.1", "listen": "127.0.0.1",
"port": 62789, "port": 62789,
"protocol": "dokodemo-door", "protocol": "dokodemo-door",
"settings": { "settings": {
"address": "127.0.0.1" "address": "127.0.0.1"
} },
"tag": "api"
} }
], ],
"log": {
"access": "none",
"dnsLog": false,
"error": "",
"loglevel": "warning",
"maskAddress": ""
},
"outbounds": [ "outbounds": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
"domainStrategy": "UseIP" "domainStrategy": "UseIP",
} "noises": [],
"redirect": ""
},
"tag": "direct"
}, },
{ {
"tag": "blocked",
"protocol": "blackhole", "protocol": "blackhole",
"settings": {} "settings": {},
"tag": "blocked"
} }
], ],
"policy": { "policy": {
@@ -47,19 +57,25 @@
"domainStrategy": "AsIs", "domainStrategy": "AsIs",
"rules": [ "rules": [
{ {
"type": "field", "inboundTag": [
"inboundTag": ["api"], "api"
"outboundTag": "api" ],
"outboundTag": "api",
"type": "field"
}, },
{ {
"type": "field", "ip": [
"geoip:private"
],
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": ["geoip:private"] "type": "field"
}, },
{ {
"type": "field",
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": ["bittorrent"] "protocol": [
"bittorrent"
],
"type": "field"
} }
] ]
}, },