Compare commits

12 Commits
v5 ... master

Author SHA1 Message Date
Shelikhoo
ff0566338b update community contributed v5 template 2024-10-01 19:44:32 +01:00
Shelikhoo
e670afb793 add additional v5 configs 2024-09-15 12:58:40 +01:00
Shelikhoo
3a005e484f add configs 2024-09-15 12:58:39 +01:00
Shelikhoo
0a31af1df3 v5 VMess-TCP 2024-09-15 12:58:39 +01:00
Shelikhoo
5aca1925c7 v5 VMess-Websocket-TLS server 2024-09-15 12:58:39 +01:00
Shelikhoo
d2b1c8a4c1 v5 VMess-Websocket-TLS Client 2024-09-15 12:58:39 +01:00
Benyamin Jafari
4cc09a4977 Update nginx.conf (#90)
fixed issue caused by redundant simicolon
2022-12-15 10:24:44 +08:00
lk29
5d2309feb5 Update README.md (#89)
fix link README.ENG.md
2022-12-13 14:31:10 +08:00
lk29
bcfd0c75ed Update README.md (#88)
Add reference on README.ENG.MD
2022-12-10 10:56:51 +08:00
lk29
cd1bc29a96 add English translate Readme.md (#87)
* add English translate Readme.md

* Update README.ENG.md
2022-11-30 17:18:25 +08:00
EpLiar
f47da12a36 Merge pull request #86 from lk29/master
add English version how to choose a v2ray plan
2022-11-30 14:34:32 +08:00
lk29
691db54d11 add English version how to choose a v2ray plan 2022-11-30 11:29:00 +05:00
23 changed files with 2428 additions and 1 deletions

147
README.ENG.md Normal file
View File

@@ -0,0 +1,147 @@
#v2ray-examples
Here are some V2Ray configuration examples for reference, the content keeps pace with the times, automation scripts, etc. Please do not pull the configuration from here.
Thanks to KiriKira, the author of vTemplate, Yuluowusheng and all the developers of Project V.
## Contribution Guidelines
You are welcome to make a template for your own configuration and submit a PR.
Templates should adhere to the following standards:
- use 4 spaces for indentation
- Square (curly) brackets do not wrap
- Unneeded fields should be removed
- `log` section only leaves `loglevel`
- For `outbounds`, client side should have `proxy` and `direct`, server side should have `direct` and `block`
- Unless it is a template for a specific scenario, `geoip:private` should be routed to `direct` outbound (server configuration routes to `block` outbound)
- DNS should not appear in config files unless it is a template for a specific scenario
- `uuid` should be left blank and filled by the user.
- `domainStrategy` in `routing` remains the default, which is `AsIs`.
### Examples
<!-- Here yaml is only used for syntax highlighting, the actual content is json -->
```yaml
{
"log": {
"loglevel": "warning"
},
"routing": {},
"inbounds": [],
"outbounds": []
}
```
### client
<!-- Here yaml is only used for syntax highlighting, the actual content is json -->
```yaml
{
"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"
}
]
}
```
### Server
<!-- Here yaml is only used for syntax highlighting, the actual content is json -->
```yaml
{
"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"
}
]
}
```
## How to choose the configuration that suits you:
![](how-to-choose/how-to-choose-a-v2ray-plan-ENG.png)
Additional Notes:<br>
Although Websocket+TLS+Web may be regarded as the best solution at this stage, it is definitely not a solution recommended for novices to try as soon as they come up, let alone the only usage of V2Ray. <br>
At the same time, you should understand that the network conditions in each region are different (mainly referring to the QoS level of different protocols), you can try all the configurations to find the most suitable one for you, try to ask as little as possible, and it is best not to ask "why do I V2Ray so slow?" Questions like that.
## at last
have fun!

View File

@@ -1,5 +1,7 @@
# v2ray-examples
![ENGLISH Here are some V2Ray configuration examples for reference](README.ENG.md)
这里是一些供参考的 V2Ray 配置示例,内容与时俱进,自动化脚本等请勿从这里拉取配置。
感谢 vTemplate 的作者 KiriKira、雨落无声和 Project V 的所有开发人员。

View File

@@ -4,7 +4,7 @@ worker_rlimit_nofile 65535;
error_log logs/error.log warn;
pid logs/nginx.pid;;
pid logs/nginx.pid;
events {
worker_connections 1024;

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -0,0 +1,95 @@
{
"log": {
"error": {
"level": "Debug",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"tag": "deny",
"protocol": "blackhole"
},
{
"tag": "ooo_1",
"protocol": "shadowsocks",
"settings": {
"address": "1.1.1.1",
"method": "aes-256-gcm",
"port": "10000",
"password": "cbc0566c-9674-4818-bc79-e42509e0696d"
}
},
{
"tag": "ooo_2",
"protocol": "shadowsocks",
"settings": {
"address": "1.1.1.1",
"method": "aes-256-gcm",
"port": "10000",
"password": "cbc0566c-9674-4818-bc79-e42509e0696d"
}
},
{
"tag": "ooo_3",
"protocol": "shadowsocks",
"settings": {
"address": "1.1.1.1",
"method": "aes-256-gcm",
"port": "10000",
"password": "cbc0566c-9674-4818-bc79-e42509e0696d"
}
},
{
"tag": "direct",
"protocol": "freedom"
}
],
"router": {
"domainStrategy": "AsIs",
"rule": [
{
"balancingTag": "balancerout",
"inboundTag": [
"user-in"
]
}
],
"balancingRule": [
{
"tag": "balancerout",
"outbound_selector": [
"ooo_"
],
"strategy": "random", // "random" | "leastping" | "leastload",随机性,最低延迟,最低负荷;
"fallbackTag": "direct"
}
]
},
"inbounds": [
{
"tag": "user-in",
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1",
"packetEncoding": "Packet"
},
"port": 7830,
"listen": "127.0.0.1"
}
],
"services": {
"backgroundObservatory": {
// 关于这里的详细设置与不同,参考 configv5-example.json 配置文件,有详细的介绍。
"subject_selector": [
"ooo_"
],
"probe_interval": 5000000000, // 10000000000, "10s"
"probeUrl": "http://www.gstatic.com/generate_204"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,61 @@
{
"log": {
"error": {
"level": "Debug",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"protocol": "hysteria2",
"settings": {
"server": [
{
"address": "",
"port": 23443
}
]
},
"streamSettings": {
"transport": "hysteria2",
"transportSettings": {
"password": "52ox2wx75d7j8qk63e6qaayx9p2pllfv9asn",
"congestion": {
"type": "bbr"
},
"use_udp_extension": true
},
"security": "tls",
"securitySettings": {
"server_name": "doubleclick.net",
"allow_insecure_if_pinned_peer_certificate": true,
"pinned_peer_certificate_chain_sha256": [
"ZDc/ImNDWn5xyFxcKuorq/k44/V/4rww2NlUFOlQWmY="
]
}
}
}
],
"inbounds": [
{
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1",
"packetEncoding": "Packet"
},
"port": 34479,
"listen": "127.0.0.1"
},
{
"protocol": "http",
"settings": {
},
"port": 34480,
"listen": "127.0.0.1"
}
]
}

View File

@@ -0,0 +1,44 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 100000,
"protocol": "hysteria2",
"settings": {},
"streamSettings": {
"security": "tls",
"securitySettings": {
"certificate": [
{
"certificate_file": "0000000.pem",
"key_file": "0000000.key",
"usage": "ENCIPHERMENT"
}
]
},
"transport": "hysteria2",
"transportSettings": {
"congestion": {
"type": "bbr"
},
"password": "000000000000000000000",
"use_udp_extension": true
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,41 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 7830,
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"packetEncoding": "Packet",
"udpEnabled": true
}
},
{
"listen": "127.0.0.1",
"port": 7831,
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "shadowsocks",
"settings": {
"address": "192.168.0.2",
"method": "aes-256-gcm",
"port": "10000",
"password": "c8/NLeEOIfV7tVudQ8xh5eRAeKZD4EyB01TGm93fTMM="
}
}
]
}

View File

@@ -0,0 +1,29 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 10000,
"protocol": "shadowsocks",
"settings": {
"method": "aes-256-gcm",
"password": "c8/NLeEOIfV7tVudQ8xh5eRAeKZD4EyB01TGm93fTMM=",
"networks": "tcp,udp",
"packetEncoding": "None"
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,44 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 7830,
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"packetEncoding": "Packet",
"udpEnabled": true
}
},
{
"listen": "127.0.0.1",
"port": 7831,
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "shadowsocks2022",
"settings": {
"address": "0.0.0.0",
"port": 10000,
"method": "2022-blake3-aes-256-gcm",
"psk": "q+EHyQzDXNxaU4fLEVDs25TeFXp5dpvP9LSicGqQdNY=", // 其他内核中 ipsk 没有设置的话,可以注销。
"ipsk": [
"qiObQZJVNCln3Gl5iJUVCw=="
]
}
}
]
}

View File

@@ -0,0 +1,110 @@
{
"log": {
"error": {
"level": "Debug",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"tag": "deny",
"protocol": "blackhole"
},
{
"tag": "direct",
"protocol": "freedom"
}
],
"router": {
"domainStrategy": "AsIs",
"rule": [
{
"balancingTag": "subscriptions",
"inboundTag": [
"user-in"
]
},
{
"tag": "commander",
"inboundTag": [
"commander"
]
}
],
"balancingRule": [
{
"tag": "subscriptions",
"outbound_selector": [
"subscription_"
],
"strategy": "leastping"
}
]
},
"inbounds": [
{
"tag": "user-in",
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1",
"packetEncoding": "Packet"
},
"port": 19828,
"listen": "99.99.99.99"
},
{
"tag": "commander",
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1",
"port": 65535,
"networks": ["tcp"]
},
"port": 19829,
"listen": "127.0.0.1"
}
],
"services": {
"backgroundObservatory": {
"subject_selector": [
"subscription_"
],
"probe_interval": 5000000000
},
"subscription": {
"imports": [
{
"name": "AAA",
"url": "",
"tag_prefix": "subscription_aaa",
"importUsingTag": "direct",
"default_expire_seconds": 3600
},
{
"name": "BBB",
"url": "",
"tag_prefix": "subscription_bbb",
"importUsingTag": "direct",
"default_expire_seconds": 3600
},
{
"name": "CCC",
"url": "",
"tag_prefix": "subscription_ccc",
"importUsingTag": "direct",
"default_expire_seconds": 3600
}
]
},
"commander": {
"tag": "commander",
"name": [
"observatory"
]
}
}
}

View File

@@ -0,0 +1,51 @@
{
"outbounds": [
// v2ray 支持的订阅格式就是 V5 配置中的出站格式,不过 TAG 有些不同,需要注意且区分不同 TagName 的值,目前支持的格式还有限,在逐步适配中。
// metadata.TagName 要区分
// hysteria2 和 trojan 协议暂时无法解析
// 实际场景应用中,因为 v2ray 订阅解析器的问题,不能有注释,否则会无法解析
// 同样实际场景应用中,因为 v2ray 订阅解析器的问题mux 无法被解析造成无法订阅到
{
"protocol": "vmess",
"settings": {
"address": "0.0.0.0",
"port": 100000,
"uuid": "0000000-0000000-0000000-0000000-0000000"
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": "/000000000000000000000"
}
},
"metadata": {
"TagName": "AAA_vmess+ws"
}
},
{
"protocol": "vmess",
"settings": {
"address": "0.0.0.0",
"port": 100000,
"uuid": "0000000-0000000-0000000-0000000-0000000"
},
"streamSettings": {
"security": "tls",
"securitySettings": {
"allow_insecure_if_pinned_peer_certificate": true,
"pinned_peer_certificate_chain_sha256": [
"000000000000000000000000000000000000000000"
],
"server_name": "000000000000000000000.com"
},
"transport": "ws",
"transportSettings": {
"path": "/000000000000000000000000000000000000000000"
}
},
"metadata": {
"TagName": "AAA_vmess+ws+tls"
}
}
]
}

View File

@@ -0,0 +1,50 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 7830,
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"packetEncoding": "Packet",
"udpEnabled": true
}
},
{
"listen": "127.0.0.1",
"port": 7831,
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "trojan",
"settings": {
"address": "0.0.0.0",
"password": "0000000-0000000-0000000-0000000-0000000",
"port": 100000
},
"streamSettings": {
"security": "tls",
"securitySettings": {
"allow_insecure_if_pinned_peer_certificate": true,
"pinned_peer_certificate_chain_sha256": [
"000000000000000000000"
],
"server_name": "000000000000000000000.com"
}
}
}
]
}

View File

@@ -0,0 +1,42 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 100000,
"protocol": "trojan",
"settings": {
"users": [
"0000000-0000000-0000000-0000000-0000000"
],
"packetEncoding": "None"
},
"streamSettings": {
"security": "tls",
"securitySettings": {
"certificate": [
{
"certificate_file": "000000000000000000000.pem",
"key_file": "000000000000000000000.key",
"usage": "ENCIPHERMENT"
}
],
"serverName": "000000000000000000000.com"
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,58 @@
{
"log": {
"error": {
"level": "Debug",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"protocol": "vmess",
"settings": {
"address": "",
"port": 23454,
"uuid": "934d4533-a99b-4d9e-981f-2d7b9497f088"
},
"streamSettings": {
"transport": "hysteria2",
"transportSettings": {
"password": "52ox2wx75d7j8qk63e6qaayx9p2pllfv9asn",
"congestion": {
"type": "bbr"
},
"use_udp_extension": true
},
"security": "tls",
"securitySettings": {
"server_name": "doubleclick.net",
"allow_insecure_if_pinned_peer_certificate": true,
"pinned_peer_certificate_chain_sha256": [
"ZDc/ImNDWn5xyFxcKuorq/k44/V/4rww2NlUFOlQWmY="
]
}
}
}
],
"inbounds": [
{
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1",
"packetEncoding": "Packet"
},
"port": 34479,
"listen": "127.0.0.1"
},
{
"protocol": "http",
"settings": {
},
"port": 34480,
"listen": "127.0.0.1"
}
]
}

View File

@@ -0,0 +1,48 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 100000,
"protocol": "vmess",
"settings": {
"users": [
"0000000-0000000-0000000-0000000-0000000"
]
},
"streamSettings": {
"security": "tls",
"securitySettings": {
"certificate": [
{
"certificate_file": "000000000000000000000.pem",
"key_file": "000000000000000000000.key",
"usage": "ENCIPHERMENT"
}
]
},
"transport": "hysteria2",
"transportSettings": {
"congestion": {
"type": "bbr"
},
"password": "000000000000000000000000000000000000000000",
"use_udp_extension": true
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,36 @@
{
"log": {
"error": {
"level": "Warning",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"protocol": "vmess",
"settings": {
"address": "",
"port": 0,
"uuid": "00000000-0000-0000-0000-000000000000"
}
}
],
"inbounds": [
{
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1"
},
"port": 1080
},
{
"protocol": "http",
"settings": {},
"port": 8080
}
]
}

View File

@@ -0,0 +1,34 @@
{
"log": {
"error": {
"level": "Warning",
"type": "Console"
},
"access": {
"type": "None"
}
},
"inbounds": [
{
"protocol": "vmess",
"settings": {
"users": [
"00000000-0000-0000-0000-000000000000"
]
},
"port": 0,
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": ""
},
"security": "none"
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,46 @@
{
"log": {
"error": {
"level": "Warning",
"type": "Console"
},
"access": {
"type": "None"
}
},
"outbounds": [
{
"protocol": "vmess",
"settings": {
"address": "",
"port": 0,
"uuid": "00000000-0000-0000-0000-000000000000"
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": ""
},
"security": "tls",
"securitySettings": {
"serverName": ""
}
}
}
],
"inbounds": [
{
"protocol": "socks",
"settings": {
"udpEnabled": true,
"address": "127.0.0.1"
},
"port": 1080
},
{
"protocol": "http",
"settings": {},
"port": 8080
}
]
}

View File

@@ -0,0 +1,45 @@
{
"log": {
"error": {
"level": "Warning",
"type": "Console"
},
"access": {
"type": "None"
}
},
"inbounds": [
{
"protocol": "vmess",
"settings": {
"users": [
"00000000-0000-0000-0000-000000000000"
]
},
"port": 0,
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": ""
},
"security": "tls",
"securitySettings": {
"serverName": "",
"certificate": [
{
"usage": "ENCIPHERMENT",
"certificateFile":"",
"keyFile": ""
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,49 @@
// 关于 ws 的 EarlyData 配置xray 或者其他内核中,可以在 path 中添加 ?ed=2560 启动v2ray 直接这样设置不可以,需要通过 maxEarlyData 单独设置。
// v2ray 内核与 v2ray 内核之间ws 的 EarlyData 传递必须使用 maxEarlyData 传递,但是 v2ray 内核与其他,比如 xray、sing-box 之间ws 的 EarlyData 传递只能通过 ?ed=2560 传递,不可混淆。
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 7830,
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"packetEncoding": "Packet",
"udpEnabled": true
}
},
{
"listen": "127.0.0.1",
"port": 7831,
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"address": "1.1.1.1",
"port": 10000,
"uuid": "adc27dd2-e7f9-41e8-a01d-2573e257564f"
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": "/ws",
"maxEarlyData": "4096"
}
},
"tag": "proxy"
}
]
}

View File

@@ -0,0 +1,35 @@
{
"log": {
"access": {
"type": "None"
},
"error": {
"level": "Debug",
"type": "Console"
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 10000,
"protocol": "vmess",
"settings": {
"users": [
"adc27dd2-e7f9-41e8-a01d-2573e257564f"
]
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": "/ws",
"maxEarlyData": "4096"
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}