n/vpsu/xqidc · 2025-04-16
注册 登录
n/vps · 2025-04-16 · 408 次浏览
u/xqidc白银

多IP的VPS是否可以把IP分配给开的小鸡

有台多IP的VPS,想把IP分给开的小鸡

基于魔方云

0
4
登录后参与讨论。

4 条回复

排序
  1. xiaoxinmm 白银 2025-04-16

    确保你的那个多ip的机器支持虚拟化

    0
  2. xqidc 白银 楼主 2025-04-16

    @"xiaoxinmm"#p297035 那肯定是可以虚拟化的,就是不知道IP如何分配,分配上去,小鸡还是不能访问

    0
  3. LuananSchmidt 白银 2025-04-16

    搭建X-UI 把内网IP1 和内网IP2 改成你自己的ip
    {
    "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": {}
    }

    0
  4. xiaoxinmm 白银 2025-04-17

    @"只手遮天半仙"#p297036 网关没配置好吧

    0