12
多IP 出口设置v2

系统:Centos7

1.首先关闭防火墙,永久关闭

systemctl stop firewalld.service

systemctl disable firewalld.service

2.v2ray一键搭建脚本:

bash <(curl -s -L https://git.io/v2ray.sh)

3.V2Ray 配置文件路径为:/etc/v2ray/config.json 

vim /etc/v2ray/config.json

然后编辑 

 不同IP: "listen":"103.180.163.184",

 不同标签:  "tag":"184-in",



       "inbounds": [

                {

                        "port": 51632,

                        "listen":"103.180.163.184",

                        "protocol": "vmess",

                        "settings": {

                                "clients": [

                                        {

                                                "id": "978e659a-2a1a-42b3-afda-ede9f7becacc",

                                                "level": 1,

                                                "alterId": 0

                                        }

                                ]

                        },

                        "streamSettings": {

                                "network": "tcp"

                        },

                        "tag":"184-in",

                        "sniffing": {

                                "enabled": true,

                                "destOverride": [

                                        "http",

                                        "tls"

                                ]

                        }

                },

                {

                        "port": 51632,

                        "listen":"103.180.163.188",

                        "protocol": "vmess",

                        "settings": {

                                "clients": [

                                        {

                                                "id": "978e659a-2a1a-42b3-afda-ede9f7becacc",

                                                "level": 1,

                                                "alterId": 0

                                        }

                                ]

                        },

                        "streamSettings": {

                                "network": "tcp"

                        },

                        "tag":"188-in",

                        "sniffing": {

                                "enabled": true,

                                "destOverride": [

                                        "http",

                                        "tls"

                                ]

                        }

                }

                //include_mtproto

                //include_in_config

                //

        ],

        "outbounds": [

                {

                        "sendThrough":"103.180.163.184",

                        "protocol": "freedom",

                        "settings": {

                                "domainStrategy": "UseIP"

                        },

                        "tag": "184-out"

                },

                {

                        "sendThrough":"103.180.163.185",

                        "protocol": "freedom",

                        "settings": {

                                "domainStrategy": "UseIP"

                        },

                        "tag": "185-out"

                },

                {

                        "sendThrough":"103.180.163.186",

                        "protocol": "freedom",

                        "settings": {

                                "domainStrategy": "UseIP"

                        },

                        "tag": "186-out"

                },

                {

                        "sendThrough":"103.180.163.187",

                        "protocol": "freedom",

                        "settings": {

                                "domainStrategy": "UseIP"

                        },

                        "tag": "187-out"

                },

                {

                        "sendThrough":"103.180.163.188",

                        "protocol": "freedom",

                        "settings": {

                                "domainStrategy": "UseIP"

                        },

                        "tag": "188-out"

                },

                {

                        "protocol": "blackhole",

                        "settings": {},

                        "tag": "blocked"

        }

                //include_out_config

                //

        ],

        "routing": {

                "domainStrategy": "IPOnDemand",

                "rules": [

            {

                "type": "field",

                "inboundTag": "184-in",

                "outboundTag": "184-out"


             },

             {

                "type": "field",

                "inboundTag": "185-in",

                "outboundTag": "185-out"


             },

             {

                "type": "field",

                "inboundTag": "186-in",

                "outboundTag": "186-out"


             },

             {

                "type": "field",

                "inboundTag": "187-in",

                "outboundTag": "187-out"


             },

             {

                "type": "field",

                "inboundTag": "188-in",

                "outboundTag": "188-out"


             }

                ]

        },

        "transport": {

                "kcpSettings": {

            "uplinkCapacity": 100,

            "downlinkCapacity": 100,

            "congestion": true

        }

        }

}

以上设置的是5个IP的 ,第一个入口的只写了2个,补全才可以

经过测试,可以实现5个IP 不同出口

在复制过程中 会出现顺序混乱的现象

改进方法

paste 模式

进入编辑器中输入

:set paste

然后按 i 键进入插入模式,然后再粘帖,文本格式不会错乱了。

按 <ESC> 再输入:set nopaste 退出PASTE模式


这条帮助是否解决了您的问题? 已解决 未解决

提交成功!非常感谢您的反馈,我们会继续努力做到更好! 很抱歉未能解决您的疑问。我们已收到您的反馈意见,同时会及时作出反馈处理!