update example files

This commit is contained in:
MHSanaei 2023-04-03 23:27:55 +03:30
parent a784a94806
commit 56850165a4
3 changed files with 22 additions and 13 deletions

View File

@ -1,6 +1,6 @@
{ {
"log": { "log": {
"loglevel": "warning", "loglevel": "warning",
"access": "./access.log" "access": "./access.log"
}, },
"api": { "api": {
@ -56,17 +56,23 @@
"type": "field" "type": "field"
}, },
{ {
"ip": [
"geoip:private",
"geoip:ir"
],
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field" "type": "field"
}, },
{ {
"outboundTag": "blocked", "outboundTag": "blocked",
"protocol": [ "ip": [
"bittorrent" "geoip:private"
],
"type": "field"
},
{
"outboundTag": "blocked",
"ip": [
"geoip:ir"
], ],
"type": "field" "type": "field"
} }

View File

@ -55,8 +55,8 @@
"type": "field" "type": "field"
}, },
{ {
"domain": [ "ip": [
"regexp:.+.ir$" "geoip:private"
], ],
"outboundTag": "blocked", "outboundTag": "blocked",
"type": "field" "type": "field"
@ -70,8 +70,10 @@
}, },
{ {
"outboundTag": "blocked", "outboundTag": "blocked",
"ip": [ "domain": [
"geoip:private" "regexp:.+.ir$",
"ext:iran.dat:ir",
"ext:iran.dat:other"
], ],
"type": "field" "type": "field"
} }

View File

@ -1,6 +1,6 @@
{ {
"log": { "log": {
"loglevel": "warning", "loglevel": "warning",
"access": "./access.log" "access": "./access.log"
}, },
"api": { "api": {
@ -46,6 +46,7 @@
} }
}, },
"routing": { "routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [ "rules": [
{ {
"inboundTag": [ "inboundTag": [
@ -55,10 +56,10 @@
"type": "field" "type": "field"
}, },
{ {
"outboundTag": "blocked",
"ip": [ "ip": [
"geoip:private" "geoip:private"
], ],
"outboundTag": "blocked",
"type": "field" "type": "field"
}, },
{ {