mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2025-12-13 21:35:03 +03:00
block client domestic traffic on server side
This commit is contained in:
@@ -57,5 +57,5 @@ Template configs contain comments and links and are good start to find another i
|
|||||||
[XRay config reference](https://xtls.github.io/en/config/) is brilliant and helped me much.
|
[XRay config reference](https://xtls.github.io/en/config/) is brilliant and helped me much.
|
||||||
|
|
||||||
Configs for [gRPC](https://github.com/XTLS/Xray-examples/tree/main/VLESS-gRPC-REALITY)
|
Configs for [gRPC](https://github.com/XTLS/Xray-examples/tree/main/VLESS-gRPC-REALITY)
|
||||||
[XTLS](https://github.com/XTLS/Xray-examples/tree/main/VLESS-TCP-XTLS-Vision-REALITY) on which the template configs are based.
|
and [XTLS](https://github.com/XTLS/Xray-examples/tree/main/VLESS-TCP-XTLS-Vision-REALITY) on that the template configs are based.
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
// punycode for national Belorussian top-level domain .бел
|
// punycode for national Belorussian top-level domain .бел
|
||||||
"domain:xn--90ais",
|
"domain:xn--90ais",
|
||||||
"domain:ir",
|
"domain:ir",
|
||||||
// extra domains that are used by domestic sites
|
// extra domains that are used by domestic sites, see https://github.com/EvgenyNerush/coherence-grabber/tree/main
|
||||||
"ext:customgeo.dat:coherence-extra"
|
"ext:customgeo.dat:coherence-extra"
|
||||||
],
|
],
|
||||||
"outboundTag": "direct"
|
"outboundTag": "direct"
|
||||||
@@ -139,11 +139,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"inboundTag": [
|
"protocol": [ "bittorrent" ],
|
||||||
"api"
|
"outboundTag": "block"
|
||||||
],
|
|
||||||
"outboundTag": "api",
|
|
||||||
"enabled": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,40 @@
|
|||||||
"geoip:private"
|
"geoip:private"
|
||||||
],
|
],
|
||||||
"outboundTag": "block"
|
"outboundTag": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"protocol": [ "bittorrent" ],
|
||||||
|
"outboundTag": "block"
|
||||||
|
},
|
||||||
|
// block domestic client traffic if it's coming somehow (e.g. wrong client config)
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"domain": [
|
||||||
|
"geosite:cn",
|
||||||
|
"domain:cn",
|
||||||
|
"domain:xn--fiqs8s",
|
||||||
|
"domain:xn--fiqz9s",
|
||||||
|
"domain:xn--55qx5d",
|
||||||
|
"domain:xn--io0a7i",
|
||||||
|
"domain:ru",
|
||||||
|
"domain:xn--p1ai",
|
||||||
|
"domain:by",
|
||||||
|
"domain:xn--90ais",
|
||||||
|
"domain:ir",
|
||||||
|
"ext:customgeo.dat:coherence-extra"
|
||||||
|
],
|
||||||
|
"outboundTag": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": [
|
||||||
|
"geoip:cn",
|
||||||
|
"geoip:ru",
|
||||||
|
"geoip:by",
|
||||||
|
"geoip:ir"
|
||||||
|
],
|
||||||
|
"outboundTag": "block"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -150,10 +184,12 @@
|
|||||||
],
|
],
|
||||||
// server-side outbound configuration
|
// server-side outbound configuration
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
|
// direct connection
|
||||||
{
|
{
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"tag": "direct"
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
|
// for that should be blocked
|
||||||
{
|
{
|
||||||
"protocol": "blackhole",
|
"protocol": "blackhole",
|
||||||
"tag": "block"
|
"tag": "block"
|
||||||
|
|||||||
Reference in New Issue
Block a user