FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.79k stars 1.54k forks source link

请问 vless 协议增加了用户之后,如何在clash的yaml配置文件里写呢? #506

Closed rockyzhz closed 11 months ago

rockyzhz commented 11 months ago

Welcome

Description of the problem,screencshot would be good

我用的是最新版的openclash,它的配置文件里我现在不知道怎么填,填uuid的话,连不上去。 填email的话,openclash无法启动。

  - name: "vless-ws"
    type: vless
    server: for.example.com
    port: 443
    uuid: d58624ca-c270-4c8b-b0b4-e0270184ce66
#    email: dmgw.love@xray.com
    udp: true
    tls: true
    network: ws
    servername: for.example.com # priority over wss host
    skip-cert-verify: true
    ws-opts:
      path: "/youneedguess2"
      headers:
        Host: for.example.com

Version of x-ui

```console $ x-ui version # Paste output here ```

x-ui log or xray log

```console # paste log here ```
rockyzhz commented 11 months ago

我另外按照 Wiki 里的节点配置,分别配置了两个类型的节点:

  1. Vless+tls+xtls-rprx-vison
  2. Vless+reality+tcp+xtls-rprx-vison

clash的yaml配置写法按照 Clash.Meta 的范例 config.yaml,用下面这段配置:

  - name: "vless-vision"
    type: vless
    server: server
    port: 443
    uuid: uuid
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision
    client-fingerprint: chrome
    # fingerprint: xxxx
    # skip-cert-verify: true

  - name: "vless-reality-vision"
    type: vless
    server: server
    port: 443
    uuid: uuid
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision
    servername: www.microsoft.com # REALITY servername
    reality-opts:
      public-key: xxx
      short-id: xxx # optional
    client-fingerprint: chrome # cannot be empty

始终是无法工作,可以帮忙指正一下吗?

junlongzzz commented 11 months ago

Clash.Meta 是支持 VLESS 协议的,但 OpenClash 貌似是不支持的,所以你配置后无法正常运行

rockyzhz commented 11 months ago

后来问题解决了,进入面板后,没有把面板xray的版本设置为1.8.0以上的版本。。。

xuexijiaoben commented 11 months ago

兄弟们,谁用过luci-app-openclash呀,就是openwrt里的,我的死活不行

rockyzhz commented 11 months ago

兄弟们,谁用过luci-app-openclash呀,就是openwrt里的,我的死活不行

一直在用呀,有什么问题?