Xray-Core#
測試環境#
- ubuntu20.04
- Xray-Core-Reality
預覽版#
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
穩定版#
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
Vless-XTLS-uTLS-Reality 流控示例#
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [{
"type": "field",
"domain": [
"geoip:cn"
],
"outboundTag": "block"
}, {
"type": "field",
"domain": [
"geoip:private"
],
"outboundTag": "direct"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "1", // 長度為 1-30 字節的任意字符串,或執行 xray uuid 生成
"flow": "xtls-rprx-vision"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "www.xxxx.com:443", // 目標網站最低標準:國外網站,支持 TLSv1.3、X25519 與 H2,域名非跳轉用(主域名可能被用於跳轉到 www)
"serverNames": [ // 客戶端可用的 serverName 列表,暫不支持 * 通配符
"www.xxxx.com" // Chrome - 輸入 "dest" 的網址 - F12 - 安全 - F5 - 主要來源(安全),填 證書 SAN 的值
],
"privateKey": "2KZ4uouMKgI8nR-LDJNP1_MHisCJOmKGj9jUjZLncVU", // 執行 xray x25519 生成,填 "Private key" 的值
"shortIds": [ // 客戶端可用的 shortId 列表,可用於區分不同的客戶端
"" // 0 到 f,長度為 2 的倍數,長度上限為 16,可留空,或執行 openssl rand -hex 8 生成
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"policy": {
"levels": {
"0": {
"handshake": 2,
"connIdle": 120
}
}
}
}
WARP 流媒體#
Netflix Disney + 解鎖#
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]
[lisence]
解鎖檢測#
bash <(curl -L -s check.unlock.media)
TUIC 協議#
一鍵腳本#
bash <(wget -qO- https://gitlab.com/rwkgyg/tuic-yg/raw/main/tuic.sh 2> /dev/null)