sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

可以绑定不同的出口IP吗,要怎么操作

Open Dreamer-nxy opened this issue 5 months ago • 5 comments

改这里的配置文件可以吗?格式要怎么写 /etc/sing-box/conf

Dreamer-nxy avatar Jul 18 '25 10:07 Dreamer-nxy

同问,有两个ip的情况下,怎么配置

laosan-xx avatar Sep 12 '25 05:09 laosan-xx

在 conf 文件夹下,打开你想要更改的 json,在 outbouds 里面的 direct 里面绑定 IP,注意 json 格式数据

"inet4_bind_address": "", "inet6_bind_address": "",

https://sing-box.sagernet.org/zh/configuration/shared/dial/

不过我没测试过是否正常使得(因为我没多IP 测试

233boy avatar Sep 12 '25 12:09 233boy

不得行,设置一个,所有都变了

laosan-xx avatar Sep 12 '25 16:09 laosan-xx

在 conf 文件夹下,打开你想要更改的 json,在 outbouds 里面的 direct 里面绑定 IP,注意 json 格式数据

"inet4_bind_address": "", "inet6_bind_address": "",

https://sing-box.sagernet.org/zh/configuration/shared/dial/

不过我没测试过是否正常使得(因为我没多IP 测试

之前让ai帮忙改写过不行

Dreamer-nxy avatar Sep 13 '25 02:09 Dreamer-nxy

佬,把这个功能搞一搞?

laosan-xx avatar Sep 24 '25 02:09 laosan-xx