Files
3XUI/车找人-3.MD
T
2026-09-18 01:23:02 +08:00

51 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<span style="color:#34c759">**Xray: IPv6 中转、IPv4 出口配置攻略**</span>
## 目标链路
~~~
客户端
↓ IPv6
节点 AVLESS 入站)
↓ IPv6
节点 BShadowsocks 入站)
↓ IPv4
Internet
~~~
## 一、节点 B:创建 Shadowsocks 入站
在节点 B 创建一个独立的 Shadowsocks 入站,例如:
~~~
入站标签: ss-in-from-a
监听地址:任意地址
端口:自定义
加密方式:双方保持一致
密码:双方保持一致
网络: TCP/UDP
~~~
确认该端口正在监听 IPv6
~~~
ss -6 -lntup | grep '<SS端口>'
~~~
## 二、节点 B:创建 IPv4 出站
创建一个 Freedom 出站:
```
{
"tag": "direct-v4",
"protocol": "freedom",
"sendThrough": "<节点B的IPv4地址>",
"settings": {
"domainStrategy": "UseIPv4"
},
"streamSettings": {
"sockopt": {
"domainStrategy": "ForceIPv4"
}
}
}
```
其中:
- `sendThrough` 填写节点 B 本机的公网 IPv4。
- `UseIPv4``ForceIPv4` 用于优先或强制解析 IPv4。
- 不会影响节点 B 上的其他入站和用户。