多IP 出口設(shè)置v2 |
系統(tǒng):Centos7 1.首先關(guān)閉防火墻,永久關(guān)閉 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", 不同標(biāo)簽: "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 } } } 以上設(shè)置的是5個IP的 ,第一個入口的只寫了2個,補全才可以 經(jīng)過測試,可以實現(xiàn)5個IP 不同出口 在復(fù)制過程中 會出現(xiàn)順序混亂的現(xiàn)象 改進方法 paste 模式 進入編輯器中輸入 :set paste 然后按 i 鍵進入插入模式,然后再粘帖,文本格式不會錯亂了。 按 <ESC> 再輸入:set nopaste 退出PASTE模式 |