diff --git a/autoXRAY.sh b/autoXRAY.sh index f8505ef..014757d 100644 --- a/autoXRAY.sh +++ b/autoXRAY.sh @@ -59,7 +59,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } + ], "decryption": "none" }, "sniffing": { @@ -104,7 +109,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } + ], "decryption": "none" }, "sniffing": { @@ -149,7 +159,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "shadowsocks", "settings": { - "clients": [] + "clients": [ + { + "password": "${xray_sspasw_vrv}", + "method": "chacha20-ietf-poly1305" + } + ] }, "sniffing": { "enabled": true, @@ -182,7 +197,8 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" { "domain": [ "geosite:category-ads", - "geosite:win-spy" + "geosite:win-spy", + "geosite:private" ], "outboundTag": "block" }, diff --git a/autoXRAYno443.sh b/autoXRAYno443.sh index a46cfc7..55f5c45 100644 --- a/autoXRAYno443.sh +++ b/autoXRAYno443.sh @@ -67,7 +67,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } + ], "decryption": "none" }, "sniffing": { @@ -112,7 +117,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } + ], "decryption": "none" }, "sniffing": { @@ -157,7 +167,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "shadowsocks", "settings": { - "clients": [] + "clients": [ + { + "password": "${xray_sspasw_vrv}", + "method": "chacha20-ietf-poly1305" + } + ] }, "sniffing": { "enabled": true, diff --git a/autoXRAYselfsteal.sh b/autoXRAYselfsteal.sh index 79610ea..a0964a1 100644 --- a/autoXRAYselfsteal.sh +++ b/autoXRAYselfsteal.sh @@ -205,7 +205,12 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } + ], "decryption": "none" }, "sniffing": { @@ -250,97 +255,108 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "listen": "0.0.0.0", "protocol": "vless", "settings": { - "clients": [], - "decryption": "none" - }, - "sniffing": { - "enabled": true, - "destOverride": [ - "http", - "tls", - "quic" - ] - }, - "streamSettings": { - "network": "raw", - "security": "reality", - "realitySettings": { - "show": false, - "xver": 1, - "target": "3333", - "shortIds": [ - "${xray_shortIds_vrv}" + "clients": [ + "clients": [ + { + "flow": "xtls-rprx-vision", + "id": "${xray_uuid_vrv}" + } ], - "privateKey": "${xray_privateKey_vrv}", - "serverNames": [ - "$DOMAIN" - ], - "limitFallbackUpload": { - "afterBytes": 0, - "bytesPerSec": 65536, - "burstBytesPerSec": 0 - }, - "limitFallbackDownload": { - "afterBytes": 5242880, - "bytesPerSec": 262144, - "burstBytesPerSec": 2097152 + "decryption": "none" + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls", + "quic" + ] + }, + "streamSettings": { + "network": "raw", + "security": "reality", + "realitySettings": { + "show": false, + "xver": 1, + "target": "3333", + "shortIds": [ + "${xray_shortIds_vrv}" + ], + "privateKey": "${xray_privateKey_vrv}", + "serverNames": [ + "$DOMAIN" + ], + "limitFallbackUpload": { + "afterBytes": 0, + "bytesPerSec": 65536, + "burstBytesPerSec": 0 + }, + "limitFallbackDownload": { + "afterBytes": 5242880, + "bytesPerSec": 262144, + "burstBytesPerSec": 2097152 + } } } - } - }, - { - "tag": "ShadowsocksTCP", - "port": 2040, - "listen": "0.0.0.0", - "protocol": "shadowsocks", - "settings": { - "clients": [] - }, - "sniffing": { - "enabled": true, - "destOverride": [ - "http", - "tls", - "quic" - ] - }, - "streamSettings": { - "network": "raw" - } - } - ], - "outbounds": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "domainStrategy": "ForceIPv4" - } - }, - { - "tag": "block", - "protocol": "blackhole" - } - ], - "routing": { - "rules": [ - { - "domain": [ - "geosite:category-ads", - "geosite:win-spy", - "geosite:private" - ], - "outboundTag": "block" }, { - "ip": [ - "geoip:private" - ], - "outboundTag": "block" + "tag": "ShadowsocksTCP", + "port": 2040, + "listen": "0.0.0.0", + "protocol": "shadowsocks", + "settings": { + "clients": [ + { + "password": "${xray_sspasw_vrv}", + "method": "chacha20-ietf-poly1305" + } + ] + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls", + "quic" + ] + }, + "streamSettings": { + "network": "raw" + } } - ] + ], + "outbounds": [ + { + "tag": "direct", + "protocol": "freedom", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, + { + "tag": "block", + "protocol": "blackhole" + } + ], + "routing": { + "rules": [ + { + "domain": [ + "geosite:category-ads", + "geosite:win-spy", + "geosite:private" + ], + "outboundTag": "block" + }, + { + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + } + ] + } } -} EOF