zapret-kvn/data/templates/xray/discord-folder-example.json
2026-07-11 21:01:15 +03:00

127 lines
2.3 KiB
JSON

{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks-in",
"listen": "0.0.0.0",
"port": 1390,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
},
{
"tag": "http-in",
"listen": "0.0.0.0",
"port": 1391,
"protocol": "http",
"settings": {},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "freedom",
"settings": {}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:private"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:category-ru"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:ru"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"process": [
"Discord",
"Update"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"process": [
"chrome",
"firefox",
"waterfox",
"librewolf",
"msedge",
"opera",
"brave",
"vivaldi",
"browser",
"Spotify",
"Vesktop"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"network": "tcp,udp",
"outboundTag": "direct"
}
]
}
}