v2fly/v2ray-examples
v2fly/v2ray-examples has 2,539 GitHub stars and 737 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-06 21:29 UTC. Last push 2026-02-24.
v2ray-core 的模板们
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalv2ray-examples
这里是一些供参考的 V2Ray 配置示例,内容与时俱进,自动化脚本等请勿从这里拉取配置。
感谢 vTemplate 的作者 KiriKira、雨落无声和 Project V 的所有开发人员。
贡献指南
欢迎你将自己使用的配置制作模板,提交 PR。
模板应遵守以下标准:
- 缩进使用 4 个空格
- 方 (花) 括号不换行
- 不需要的字段应该移除
log部分只留loglevel- 对于
outbounds,客户端应有proxy和direct,服务端应有direct和block - 除非是适用于特定场景的模板,否则应当将
geoip:private路由到direct出站 (服务端配置路由到block出站) - 除非是适用于特定场景的模板,否则配置文件中不应出现 DNS
uuid应留空,由用户自行填写。routing中的domainStrategy保持默认,即AsIs。
举例
{
"log": {
"loglevel": "warning"
},
"routing": {},
"inbounds": [],
"outbounds": []
}
客户端
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "direct",
"type": "field"
}
]
},
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"tag": "socks"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"users": [
{
"id": ""
}
],
"port": 1234,
"address": "Your_IP_Address"
}
]
}
},
{
"protocol": "freedom",
"tag": "direct"
}
]
}
服务端
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
}
]
},
"inbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
},
{
"protocol": "blackhole",
"tag": "blocked"
}
]
}
如何选取适合自己的配置:

附加说明:
尽管 Websocket+TLS+Web 可能称得上是现阶段最好的方案,但绝对不是推荐新手一上来就尝试的方案,更不是 V2Ray 唯一的用法。
同时,你应当了解,每个地区的网络状况不同 (主要指对不同协议的 QoS 程度),你可以将所有配置都尝试一遍来寻找最适合自己的,尽量少问、最好不问“为什么我的 V2Ray 这么慢?”这样的问题。
最后
祝你玩的愉快!
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,448 starspublic-apis/public-apis
A collective list of free APIs
496,763 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
438,118 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,075 stars