Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support for VLess Protocol #480

Closed
liamcos opened this issue Jun 21, 2020 · 14 comments
Closed

[Feature Request] Support for VLess Protocol #480

liamcos opened this issue Jun 21, 2020 · 14 comments

Comments

@liamcos
Copy link

liamcos commented Jun 21, 2020

总而言之,相较于 VMess,基于 TLS 或内网等可信通路时用 VLess 性能更好,更省双边的内存和 CPU、耗电更少。 游戏等对性能要求高的场景需要它,手机等移动设备、配置低的服务器也需要它,路由器、树莓派等透明代理更是需要它

v2ray/v2ray-core#2583

@RPRX
Copy link

RPRX commented Jun 21, 2020

目前 VLess 还处于测试、修改阶段,暂不着急加入图形客户端

等相关代码正式并入 v2ray-core 后,图形客户端加个协议不是难事

@2dust
Copy link
Owner

2dust commented Jun 22, 2020

等Vless合并入core后再处理.
此协议很符合现在的真实情况.我们关注中

@2dust
Copy link
Owner

2dust commented Jul 2, 2020

v2rayNG_1.2.13-vless_arm64-v8a.apk.zip

https://github.com/rprx/v2ray-vless/releases/tag/clean2

使用自定义配置使用Vless, 有需要的可以尝试

@2dust
Copy link
Owner

2dust commented Jul 3, 2020

outbouds
{
    "protocol": "vless",
    "settings": {
        "vnext": [
            {
                "address": "address.com",
                "port": 443,
                "users": [
                    {
                        "encryption":"none",
                        "id": "11f1523b-27f2-4c2d-9553-6d29138f735b",
                        "level": 8
                    }
                ]
            }
        ]
    }
}
inbouds
{
    "port": 23456,
    "protocol": "vless",
    "settings": {     
       "encryption":"none",
        "clients":
        [
            {
                   
                "id":"30f1523a-27f2-4c2d-9553-6d29138f735b"
            }]
    }
}

@changyp6
Copy link

changyp6 commented Jul 3, 2020

@2dust

测试了,可以用!

v2rayNG_1.2.13-vless_arm64-v8a.apk.zip

https://github.com/rprx/v2ray-vless/releases/tag/clean2

使用自定义配置使用Vless, 有需要的可以尝试

@changyp6
Copy link

changyp6 commented Jul 3, 2020

@2dust
你这个里面的inbounds写错了。

“encryption": "none",应该是outbounds里面的, 要写在每一个”users"里面。
和"clients":是同级的是“decryption",只用和“clients"同级
应该是

"inbounds" {
     "settings": {
        "decryption": "none",
        "clients": [
            {
                "id": "xxxx-xxxx-xxx-xx-xxxxxx-xxxxxxxxx",
                "level": 0
            }
        ]
    }
}

outbouds
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "address.com",
"port": 443,
"users": [
{
"encryption":"none",
"id": "11f1523b-27f2-4c2d-9553-6d29138f735b",
"level": 8
}
]
}
]
}
}

inbouds
{
"port": 23456,
"protocol": "vless",
"settings": {
"clients":
[
{
"encryption":"none",
"id":"30f1523a-27f2-4c2d-9553-6d29138f735b"
}]
}
}

@RPRX
Copy link

RPRX commented Jul 3, 2020

客户端 Outbound:

{
  "protocol": "vless",
  "settings": {
    "vnext": [
      {
        "address": "example.com",
        "port": 443,
        "users": [
          {
            "id": "27848739-7e62-4138-9fd3-098a63964b6b",
            "encryption": "none",
            "level": 0
          }
        ]
      }
    ]
  },
  ...
}

服务端 Inbound:

{
  "port": 10000,
  "protocol": "vless",
  "settings": {
    "clients": [
      {
        "id": "27848739-7e62-4138-9fd3-098a63964b6b",
        "level": 0,
        "email": "vless@v2fly.org"
      }
    ],
    "decryption": "none"
  },
  ...
}

encryption 和 decryption 的位置不同,是因为若套一层约定加密,服务端需要先解密才能知道是哪个用户

@changyp6
Copy link

@2dust 可不可以编译一个V2rayCore是4.26.0,并且打了VLess Patch的版本?

@johnwigley
Copy link

Please could you upload a new current version of V2RayNG with the VLess patch please?

@ochamunaJ
Copy link

ochamunaJ commented Jul 25, 2020 via email

@RPRX
Copy link

RPRX commented Jul 26, 2020

@changyp6 @johnwigley

不必着急,VLESS PREVIEW 将很快并入 v2ray-core

其实 CLEAN 2 与现在的版本还是兼容的,且它基于 v2ray-core v4.25.1+,但和 v4.26.0 实际上没有区别,因为从那个时间点到 v4.26.0,实际运行的代码没有任何改动

@johnwigley
Copy link

@RPRX Thank you, look forward to seeing it integrated into v2ray-core soon

@ochamunaJ
Copy link

ochamunaJ commented Jul 27, 2020 via email

@twzchi
Copy link

twzchi commented Jul 30, 2020

三星安卓10系统 用了上面编译的安卓客户端
无法正常连接,日志最后显示
logcat 最后一直显示:Using Prepared: xx(IP地址)
Using Prepared: xx
同样的配置v2ray 4.25.1的版本 ,不是最新的v4.26.0
在电脑上的正常使用, 安卓无法连接

@2dust 2dust closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants