From 3d699fe3c8dc1d5011ac35f10a1811bc890ec685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3c=CE=B1rLeT?= Date: Mon, 16 Sep 2024 17:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20xray.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xray.conf | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 xray.conf diff --git a/xray.conf b/xray.conf new file mode 100644 index 0000000..bc69463 --- /dev/null +++ b/xray.conf @@ -0,0 +1,82 @@ +{ + "api": { + "services": [ + "HandlerService", + "LoggerService", + "StatsService" + ], + "tag": "api" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": 62789, + "protocol": "dokodemo-door", + "settings": { + "address": "127.0.0.1" + }, + "tag": "api" + } + ], + "outbounds": [ + { + "tag":"IP4_out", + "protocol": "freedom", + "settings": {} + }, + { + "tag":"IP6_out", + "protocol": "freedom", + "settings": { + "domainStrategy": "UseIPv6" + } + }, + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + } + ], + "policy": { + "system": { + "statsInboundDownlink": true, + "statsInboundUplink": true + } + }, + "routing": { + "rules": [ + { + "type": "field", + "outboundTag": "IP6_out", + "domain": ["geosite:netflix","geosite:tiktok","geosite:openai","geosite:disney"] + }, + { + "type": "field", + "outboundTag": "IP4_out", + "network": "udp,tcp" + }, + { + "inboundTag": [ + "api" + ], + "outboundTag": "api", + "type": "field" + }, + { + "ip": [ + "geoip:private" + ], + "outboundTag": "blocked", + "type": "field" + }, + { + "outboundTag": "blocked", + "protocol": [ + "bittorrent" + ], + "type": "field" + } + ] + }, + "stats": {} +} \ No newline at end of file