mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-09-21 22:54:34 +08:00
Compare commits
7 Commits
5d2309feb5
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
ff0566338b | ||
|
e670afb793 | ||
|
3a005e484f | ||
|
0a31af1df3 | ||
|
5aca1925c7 | ||
|
d2b1c8a4c1 | ||
|
4cc09a4977 |
@@ -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;
|
||||
|
95
v5/Balancing/v2ray_balancing.json
Normal file
95
v5/Balancing/v2ray_balancing.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
1360
v5/General/configv5-example.json
Normal file
1360
v5/General/configv5-example.json
Normal file
File diff suppressed because it is too large
Load Diff
61
v5/Hysteria2-Hysteria2/hy2_hy2_client.json
Normal file
61
v5/Hysteria2-Hysteria2/hy2_hy2_client.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
44
v5/Hysteria2-Hysteria2/hy2_hy2_server.json
Normal file
44
v5/Hysteria2-Hysteria2/hy2_hy2_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
41
v5/Shadowsocks-TCP/shadowsocks_client.json
Normal file
41
v5/Shadowsocks-TCP/shadowsocks_client.json
Normal 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="
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
29
v5/Shadowsocks-TCP/shadowsocks_server.json
Normal file
29
v5/Shadowsocks-TCP/shadowsocks_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
44
v5/Shadowsocks2022-TCP/shadowsocks2022_client.json
Normal file
44
v5/Shadowsocks2022-TCP/shadowsocks2022_client.json
Normal 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=="
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
110
v5/Subscription/subscription.json
Normal file
110
v5/Subscription/subscription.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
51
v5/Subscription/subscription_subs
Normal file
51
v5/Subscription/subscription_subs
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
50
v5/Trojan-TLS/trojan-tls_client.json
Normal file
50
v5/Trojan-TLS/trojan-tls_client.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
42
v5/Trojan-TLS/trojan-tls_server.json
Normal file
42
v5/Trojan-TLS/trojan-tls_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
58
v5/VMess-Hysteria2/vmess_hy2_client.json
Normal file
58
v5/VMess-Hysteria2/vmess_hy2_client.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
48
v5/VMess-Hysteria2/vmess_hy2_server.json
Normal file
48
v5/VMess-Hysteria2/vmess_hy2_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
36
v5/VMess-TCP/config_client.json
Normal file
36
v5/VMess-TCP/config_client.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
34
v5/VMess-TCP/config_server.json
Normal file
34
v5/VMess-TCP/config_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
46
v5/VMess-Websocket-TLS/config_client.json
Normal file
46
v5/VMess-Websocket-TLS/config_client.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
45
v5/VMess-Websocket-TLS/config_server.json
Normal file
45
v5/VMess-Websocket-TLS/config_server.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user