幫助中心
這里有最新的使用文檔和教程
X-ui多IP搭建教程,多IP站群服務器實現源進源出分流
先安裝X-ui面板,直接使用x-ui官方庫:
然后在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和節點的端口即可。