全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2832|回复: 10
打印 上一主题 下一主题

[美国VPS] 求个老哥写个xui面板的奈飞分流协议

[复制链接]
跳转到指定楼层
1#
发表于 2023-4-19 22:49:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 charles97 于 2023-4-20 01:03 编辑

网上教程都试了,都不行,安装的xui是https://github.com/FranzKafkaYu/x-ui/   用的vless协议,xray调成了1.8版本

这是xui面板的默认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": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "handshake": 10,
        "connIdle": 100,
        "uplinkOnly": 2,
        "downlinkOnly": 3,
        "statsUserUplink": true,
        "statsUserDownlink": true,
        "bufferSize": 10240
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {}
}


xui面板生成的时候我看有提供如下信息:
User1
Id: 4282***-a***-4b5a-bf**-100***
Flow: xtls-rprx-vision
Utls: chrome
Email: v***.l***@xray.com

私钥:ME5TP2**********
公钥:g1f1w***********4
shortIds: ,46,8****,fe****,b6b*****

网上的教程我看有写什么security  alterID,我看跟我这个貌似都不同,我是通过日本的中转机 连web新加坡nat鸡。
谢谢大佬了,不知道默认协议里有哪些需要修改。我明明选的是vless,这个默认代码里是dokodemo-door,装了xui面板,直连日本鸡或新家坡NAT鸡都没问题,中转就不行了。还有不知道为啥inbound里有个62789端口,我设置的端口里明明没有这个端口

2#
发表于 2023-4-19 22:52:41 | 只看该作者
好好看文档吧
3#
 楼主| 发表于 2023-4-19 23:01:34 | 只看该作者

文档看了两天了,知道在outbound 和routing里面设置,但是就是不行
4#
发表于 2023-4-19 23:35:40 来自手机 | 只看该作者
很简单啊,出口分流就好了
5#
 楼主| 发表于 2023-4-20 00:16:31 | 只看该作者
我写的协议,但是还是有问题,报错
app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp *.9.19.9:17652: operation was canceled] > common/retry: all retry attempts failed


,还请大佬指点:


{
    "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": [
      {
        "protocol": "freedom",
        "settings": {}
      },
      {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
      },
      {
        "tag": "VPS1" ,
        "protocol": "vless",
        "settings": {
          "vnext": [{
            "address": "7.*.*.6",
            "port": 5**5,
            "users": [{
              "id": "42****-a**-4***-b***-10****",
              "security": "auto",
              "alterId": 0
            }]
          }]
        }
      }
    ],
    "policy": {
      "system": {
        "statsInboundDownlink": true,
        "statsInboundUplink": true
      }
    },
    "routing": {
      "rules": [
        {
          "inboundTag": [
            "api"
          ],
          "outboundTag": "api",
          "type": "field"
        },
        {
          "ip": [
            "geoip:private"
          ],
          "outboundTag": "blocked",
          "type": "field"
        },
        {
          "outboundTag": "blocked",
          "protocol": [
            "bittorrent"
          ],
          "type": "field"
        },
  {
          "type": "field",
          "outboundTag": "VPS1",
          "domain": ["geosite:netflix","nflxvideo.net","nflxext.com","nflxso.net"]
  }  
  ]
    },
    "stats": {}
  }
6#
发表于 2023-4-20 00:50:14 | 只看该作者
你好像傻    你新加坡落地非得用vless做什么 又没有墙 直接用S5不就行了 。
7#
发表于 2023-4-20 00:57:27 来自手机 | 只看该作者
改成1.75的试试,不行用vmess配置试试。
8#
发表于 2023-4-20 00:58:38 来自手机 | 只看该作者
我是让gpt改好直接能用
9#
发表于 2023-4-20 01:17:04 | 只看该作者
本帖最后由 啥都不会 于 2023-4-20 01:26 编辑

outbounds 加上落地鸡的配置(对照落地鸡的inbounds抄就好了),加个tag xxx

然后routing 规则分流到落地鸡(tag xxx)


另外dokodemo-door的62789(tag api)是对接面板用的
10#
 楼主| 发表于 2023-4-20 01:19:52 | 只看该作者
qqlikeho 发表于 2023-4-20 00:50
你好像傻    你新加坡落地非得用vless做什么 又没有墙 直接用S5不就行了 。

S5不会弄,但是改成vmess就可以了,谢谢提醒,等有空再试试S5
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-2 06:32 , Processed in 0.062935 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表