mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-16 17:12:45 +04:00
Page:
Description of subscription
Pages
Description of VLESS share link
Description of VMess share link
Description of custom routing rules
Description of proxy chain
Description of some parameters
Description of some ui
Description of subscription
Description of system proxy routing
Faq
Home
List of supported cores
Release files introduction
No results
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
v2rayN 订阅功能说明
-
订阅地址 : 普通可以正常访问的地址 url
-
订阅支持协议 VMess / shadowsocks / SOCKS / VLESS / trojan / Hy2 / TUIC / WireGuard / Anytls
-
支持的订阅格式为协议标准格式或 v2rayN 内部格式
# VMess vmess://base64(Configuration) # VLESS vless://05a6a8cb-b2be-42fd-90b1-0fe23adb9576@v2rayn.2dust.link:443?encryption=none&flow=xtls-rprx-vision&security=tls&sni=v2rayn.2dust.link&fp=chrome&type=tcp#VLESSXTLS # v2rayN 内部格式 v2rayn://vless/base64_urlsafe(ProfileItemDtoJson)
v2rayN 内部分享链接
用于备份配置,同时可用于分享协议标准提案外字段
概览
v2rayn://
${ConfigType}
/
${url-safe base64 encoded json string}
Json Payload
普通 http 节点:
{
"IndexId": "AIy0Iw",
"ConfigType": 10,
"ConfigVersion": 4,
"Remarks": "example",
"Address": "127.0.0.1",
"Port": 8080,
"Password": "pass",
"Username": "user"
}
策略组:
指向其他节点 IndexId:
{
"IndexId": "oWjrYw",
"ConfigType": 101,
"CoreType": 2,
"ConfigVersion": 4,
"Remarks": "example_group",
"ProtoExtraObj": {
"ChildItems": "AIy0Iw",
"MultipleLoad": 0
}
}
按其他节点 Remark 筛选:
{
"IndexId": "slDgGA",
"ConfigType": 101,
"CoreType": 2,
"ConfigVersion": 4,
"Remarks": "example_group",
"ProtoExtraObj": {
"SubChildItems": "self",
"Filter": "example",
"MultipleLoad": 0
}
}
注:
- 具体序列化定义可查看:
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Models/ProfileItem.cs
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Models/ProtocolExtraItem.cs
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Models/TransportExtraItem.cs
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Enums/EConfigType.cs
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Enums/ECoreType.cs
- https://github.com/2dust/v2rayN/blob/master/v2rayN/ServiceLib/Enums/EMultipleLoad.cs
- IndexId 命名随意,可为空
- 如需使用策略组或链式代理需将
ProtoExtraObj.ChildItems指向其他节点的 IndexId - 策略组或链式代理 支持根据别名选中同一订阅分组的其他节点,需设定
ProtoExtraObj.SubChildItems为self,ProtoExtraObj.Filter筛选 支持正则 - 不支持自定义配置
示例
v2rayn://http/eyJJbmRleElkIjoiQUl5MEl3IiwiQ29uZmlnVHlwZSI6MTAsIkNvbmZpZ1ZlcnNpb24iOjQsIlJlbWFya3MiOiJleGFtcGxlIiwiQWRkcmVzcyI6IjEyNy4wLjAuMSIsIlBvcnQiOjgwODAsIlBhc3N3b3JkIjoicGFzcyIsIlVzZXJuYW1lIjoidXNlciJ9
v2rayn://policygroup/eyJJbmRleElkIjoib1dqcll3IiwiQ29uZmlnVHlwZSI6MTAxLCJDb3JlVHlwZSI6MiwiQ29uZmlnVmVyc2lvbiI6NCwiUmVtYXJrcyI6ImV4YW1wbGVfZ3JvdXAiLCJQcm90b0V4dHJhT2JqIjp7IkNoaWxkSXRlbXMiOiJBSXkwSXciLCJNdWx0aXBsZUxvYWQiOjB9fQ
v2rayn://policygroup/eyJJbmRleElkIjoic2xEZ0dBIiwiQ29uZmlnVHlwZSI6MTAxLCJDb3JlVHlwZSI6MiwiQ29uZmlnVmVyc2lvbiI6NCwiUmVtYXJrcyI6ImV4YW1wbGVfZ3JvdXAiLCJQcm90b0V4dHJhT2JqIjp7IlN1YkNoaWxkSXRlbXMiOiJzZWxmIiwiRmlsdGVyIjoiZXhhbXBsZSIsIk11bHRpcGxlTG9hZCI6MH19