按照以下两步生成 V2bX 所需的全部配置文件,然后上传到服务器即可。
/etc/V2bX/sing_origin.json/etc/V2bX/route.json + /etc/V2bX/custom_outbound.json/etc/V2bX/ ├── config.json ← V2BX Config 生成器 └── sing_origin.json ← Sing-box Origin 编辑器
/etc/V2bX/ ├── config.json ← V2BX Config 生成器 ├── route.json ← Xray Origin 编辑器 └── custom_outbound.json ← Xray Origin 编辑器
systemctl restart V2bX 重启服务即可生效。sing_origin.json 的 outbounds 中的 direct 出站添加绑定配置:ip addr 查看网卡名称和对应的IP地址{
"type": "direct",
"tag": "direct",
"bind_interface": "eth0", ← 网卡名称
"inet4_bind_address": "1.2.3.4" ← 指定出站IPv4地址
}bind_interface 为网卡名(如 eth0、ens18),inet4_bind_address 为该网卡上要使用的IPv4地址。修改后需重启服务生效。