diff --git a/server_config/README.md b/server_config/README.md index d5c968b..864e8ab 100644 --- a/server_config/README.md +++ b/server_config/README.md @@ -493,6 +493,16 @@ install -m 755 sing-box-$SINGBOX_VER-linux-amd64/sing-box /usr/local/bin/sing-bo 完整配置见 [sing-box/config.json](sing-box/config.json)。要点: - **VLESS+REALITY**:每节点独立 UUID/密钥对/short_id,SNI 全节点统一,flow `xtls-rprx-vision`;REALITY handshake server 用 `<伪装SNI域名>:443` +- **纯 IPv4 节点**(如 Azure 不给 IPv6 的 jp):direct 出站**必须**配 `domain_resolver`, + 否则双栈域名会解析出 AAAA 并拨向不可达的 IPv6(日志刷 `network is unreachable`, + jp 实测每小时数十条)。1.12+ 写法(legacy `domain_strategy` 字段在 sing-box 1.13 + 已直接 FATAL 拒绝,勿用): + ```json + "dns": {"servers": [{"type": "local", "tag": "local-dns"}]}, + "outbounds": [{"type": "direct", "tag": "direct", + "domain_resolver": {"server": "local-dns", "strategy": "ipv4_only"}}] + ``` + 已验证:jp 需要(2026-10-01 已修);ru/hk2/us/aq 有 IPv6 出口或实测无此错误,不需要。 - **Shadowsocks**:`2022-blake3-aes-256-gcm`(SIP022:会话子密钥 + 抗重放探测,显著优于老 AEAD `aes-256-gcm`)+ 每节点独立 PSK,独立端口(兼容不支持 REALITY 的老客户端) - **PSK 格式要求**:密码必须是 base64 编码的 32 字节密钥(`openssl rand -base64 32`),不是任意字符串;改错格式 sing-box 启动即报错 - sing-box / Shadowrocket / mihomo 均支持 2022-blake3 系列