简化 outbound 设置;增补周边内容 (#754)

* Outbound simplification; Update compiling; Update commands; Update installation

* Unpretty caught

* Pretty?

* ...
This commit is contained in:
𐲓𐳛𐳪𐳂𐳐 𐲀𐳢𐳦𐳫𐳢 𐲥𐳔𐳛𐳪𐳌𐳑𐳖𐳇
2025-10-20 01:41:38 +00:00
committed by GitHub
parent 25cd499b6f
commit bc5d7231de
11 changed files with 133 additions and 313 deletions
+45 -5
View File
@@ -22,9 +22,12 @@ The commands are:
api Call an API in an Xray process
convert Convert configs
tls TLS tools
uuid Generate UUIDv4 or UUIDv5
x25519 Generate key pair for x25519 key exchange
wg Generate key pair for wireguard key exchange
uuid Generate UUIDv4 or UUIDv5 (VLESS)
x25519 Generate key pair for X25519 key exchange (REALITY, VLESS Encryption)
wg Generate key pair for X25519 key exchange (WireGuard)
mldsa65 Generate key pair for ML-DSA-65 post-quantum signature (REALITY)
mlkem768 Generate key pair for ML-KEM-768 post-quantum key exchange (VLESS Encryption)
vlessenc Generate decryption/encryption json pair (VLESS Encryption)
Use "xray help <command>" for more information about a command.
```
@@ -65,6 +68,13 @@ The -dump flag tells Xray to print the merged config.
配置文件除了默认的 JSON 格式外,也可以使用 TOML 和 YAML。在不指定格式的前提下会通过文件扩展名识别。
:::
::: tip
当 `-config` 没有指定时,Xray 将先后尝试从以下路径加载 `config.json` :
- 工作目录(Working Directory)
- [环境变量](../config/features/env.md#资源文件路径)中 `Xray.location.asset` 所指定的路径
:::
```
xray run -dump
```
@@ -120,10 +130,10 @@ The commands are:
`pb` 子命令使用示例:
```bash
# 用法:xray convert pb [-debug] [-type] [json file] [json file] ...
# 用法:xray convert pb [-outpbfile out.pb] [-debug] [-type] [json file] [json file] ...
# 把三个配置合并成 mix.pb
xray convert pb c1.json c2.json c3.json > mix.pb
xray convert pb -outpbfile mix.pb c1.json c2.json c3.json
# 使用 -debug 选项查看 mix.pb 的内容
xray convert pb -debug mix.pb
@@ -209,3 +219,33 @@ xray wg [-i "(base64.StdEncoding)"]
- 工作目录(Working Directory)
- [环境变量](../config/features/env.md#资源文件路径)中 `Xray.location.asset` 所指定的路径
:::
### xray mldsa65
生成用于 REALITY 的 MLDSA-65 后量子签名密钥对。
使用方法:
```
xray mldsa65 [-i "seed (base64.StdEncoding)"]
```
### xray mlkem768
生成用于 VLESS Encryption 的 ML-KEM-768 后量子密钥交换用密钥对。
使用方法:
```
xray mlkem768 [-i "seed (base64.StdEncoding)"]
```
### xray vlessenc
生成可以直接用于 VLESS Encryption 的 encryption/decryption 选项内容。生成配置中 X25519 以及 ML-KEM-768 两种认证方式选一种使用即可,但是服务端及客户端必须采用同一种认证方式。临时密钥交换仍后量子安全,不受认证方式影响。
使用方法:
```
xray vlessenc
```
+19 -2
View File
@@ -6,6 +6,7 @@ Xray 在以下平台中可用:
- Windows 7 及之后版本(x86 / amd64 / arm32 / arm64);
- Windows 7 中使用 1.8.4、1.8.6 的常规版本以及 1.8.18 以后的 `win7` 版本需要系统安装有 **KB4474419** 更新方可使用;推荐同时安装 KB4490628 以便联网后接受后续的操作系统安全更新。
- 从 v25 开始,在 Windows 7 上运行 `win7` 版本只需安装 SP1 即可正常运行,但对联网系统而言仍然强烈建议安装后续操作系统安全更新。
- macOS 10.10 Yosemite 及之后版本(amd64 / arm64);
- Linux 2.6.23 及之后版本(x86 / amd64 / arm / arm64 / mips64 / mips / ppc64 / s390x / riscv64);
- 包括但不限于 Debian 7 / 8、Ubuntu 12.04 / 14.04 及后续版本、CentOS 7 / 8、Arch Linux 等;
@@ -126,25 +127,41 @@ ghcr.io/xtls/xray-core 版本映像:
- [PassWall](https://github.com/xiaorouji/openwrt-passwall), [PassWall 2](https://github.com/xiaorouji/openwrt-passwall2)
- [ShadowSocksR Plus+](https://github.com/fw876/helloworld)
- [luci-app-xray](https://github.com/yichya/luci-app-xray) ([openwrt-xray](https://github.com/yichya/openwrt-xray))
- Asuswrt-Merlin
- [XRAYUI](https://github.com/DanielLavrushin/asuswrt-merlin-xrayui)
- Windows
- [v2rayA](https://github.com/v2rayA/v2rayA)
- [v2rayN](https://github.com/2dust/v2rayN)
- [Furious](https://github.com/LorenEteval/Furious)
- [Invisible Man - Xray](https://github.com/InvisibleManVPN/InvisibleMan-XRayClient)
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
- Android
- [v2rayNG](https://github.com/2dust/v2rayNG)
- [X-flutter](https://github.com/XTLS/X-flutter)
- [SaeedDev94/Xray](https://github.com/SaeedDev94/Xray)
- iOS & macOS arm64
- [SimpleXray](https://github.com/lhear/SimpleXray)
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
- iOS & macOS arm64 & tvOS
- [Happ](https://apps.apple.com/app/happ-proxy-utility/id6504287215) ([tvOS](https://apps.apple.com/us/app/happ-proxy-utility-for-tv/id6748297274))
- [FoXray](https://apps.apple.com/app/foxray/id6448898396)
- [Streisand](https://apps.apple.com/app/streisand/id6450534064)
- macOS arm64 & x64
- [Happ](https://apps.apple.com/app/happ-proxy-utility/id6504287215)
- [v2rayA](https://github.com/v2rayA/v2rayA)
- [v2rayN](https://github.com/2dust/v2rayN)
- [V2rayU](https://github.com/yanue/V2rayU)
- [V2RayXS](https://github.com/tzmax/V2RayXS)
- [Furious](https://github.com/LorenEteval/Furious)
- [FoXray](https://apps.apple.com/app/foxray/id6448898396)
- [OneXray](https://github.com/OneXray/OneXray)
- [GoXRay](https://github.com/goxray/desktop)
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
- Linux
- [v2rayA](https://github.com/v2rayA/v2rayA)
- [v2rayN](https://github.com/2dust/v2rayN)
- [Furious](https://github.com/LorenEteval/Furious)
- [GorzRay](https://github.com/ketetefid/GorzRay)
- [GoXRay](https://github.com/goxray/desktop)
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
# UUID 生成器