跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求个老哥写个xui面板的奈飞分流协议
未分類
20 4 月 2023

求个老哥写个xui面板的奈飞分流协议

charles97 大佬有话说 :

求个老哥写个xui面板的奈飞分流协议

本帖最后由 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*****

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

郑爽 大佬有话说 :

好好看文档吧

charles97 大佬有话说 :

郑爽 大佬有话说 : 2023-4-19 22:52
好好看文档吧

文档看了两天了,知道在outbound 和routing里面设置,但是就是不行:(

zhongziso 大佬有话说 :

很简单啊,出口分流就好了

charles97 大佬有话说 :

我写的协议,但是还是有问题,报错
app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: > 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": {}
}

qqlikeho 大佬有话说 :

你好像傻    你新加坡落地非得用vless做什么 又没有墙 直接用S5不就行了 。https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

comet 大佬有话说 :

改成1.75的试试,不行用vmess配置试试。

comet 大佬有话说 :

我是让gpt改好直接能用

啥都不会 大佬有话说 :

本帖最后由 啥都不会 于 2023-4-20 01:26 编辑

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

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

另外dokodemo-door的62789(tag api)是对接面板用的

charles97 大佬有话说 :

qqlikeho 大佬有话说 : 2023-4-20 00:50
你好像傻    你新加坡落地非得用vless做什么 又没有墙 直接用S5不就行了 。

S5不会弄,但是改成vmess就可以了,谢谢提醒,等有空再试试S5

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具