X-ui多IP搭建教程,多IP站群服务器实现源进源出分流
X-ui多IP搭建教程,多IP站群服务器实现源进源出分流
先安装X-ui面板,直接使用x-ui官方库:
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)然后在x-ui面板设置——Xray相关设置,删除默认规则,用以下规则替换。
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"tag": "ip1",
"sendThrough": "内网IP1",
"protocol": "freedom",
"settings": {}
},
{
"tag": "ip2",
"sendThrough": "内网IP2",
"protocol": "freedom",
"settings": {}
},
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"inbound-端口","inbound-端口"
],
"outboundTag": "ip1",
"type": "field"
},
{
"inboundTag": [
"inbound-端口","inbound-端口"
],
"outboundTag": "ip2",
"type": "field"
},
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}
把以上规则中的IP和端口改成你服务器的内网IP和节点的端口即可。
本文地址:https://www.31idc.com/helpcontent/2225.html
- 上一篇:如何查看Windows历史更新记录,自动更新
- 下一篇:服务器无法远程,错误代码:0x904 扩展错误代码:0x7
31IDC - 12 年深耕海外 IDC 高端资源
立即登陆 立即注册这篇流量运营《X-ui多IP搭建教程,多IP站群服务器实现源进源出分流》,目前已阅读次,本文来源于31idc,在2024-12-07发布,该文旨在普及网站运营知识,如果你有任何疑问,请通过网站底部联系方式与我们取得联系