1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
| { "log": { "loglevel": "info", "access": "/var/log/xray/access.log", "error": "/var/log/xray/error.log" }, "dns": { "servers": [ "https+local://1.1.1.1/dns-query", "localhost" ] }, "routing": { "domainStrategy": "AsIs", "rules": [ { "type":"field", "outboundTag":"IP6_out", "domain":[ "domain:google.com" ] }, { "type":"field", "outboundTag":"IP4_out", "network":"udp,tcp" }, { "type": "field", "ip": [ "geoip:private" ], "outboundTag": "block" }, { "type": "field", "domain": [ "geosite:category-ads-all" ], "outboundTag": "block" } ] }, "inbounds": [ { "port": 443, "protocol": "vless", "settings": { "clients": [ { # 设置uuid "id": "", "flow": "xtls-rprx-direct", "level": 0, "email": "xiaobai@gmail.com" } ], "decryption": "none", "fallbacks": [ { # 回落的端口 "dest": 4404 } ] }, "streamSettings": { "network": "tcp", "security": "xtls", "xtlsSettings": { "allowInsecure": false, "minVersion": "1.2", "alpn": [ "http/1.1" ], "certificates": [ { # 证书地址 "certificateFile": "/opt/trojan/cert/xray.crt", "keyFile": "/opt/trojan/cert/xray.key" } ] } } } ], "outbounds": [ { "tag": "direct", "protocol": "freedom" }, { "tag": "block", "protocol": "blackhole" }, { "tag":"IP6_out", "protocol":"freedom", "settings":{ "domainStrategy":"UseIPv6" } }, { "tag":"IP4_out", "protocol":"freedom", "settings":{
} } ]
}
|