Browse Source

add additional v5 configs

master
Shelikhoo 2 months ago
parent
commit
e670afb793
No known key found for this signature in database
GPG Key ID: 4C9764E9FE80A3DC
  1. 69
      v5/General/configv5-example.json
  2. 41
      v5/Shadowsocks-TCP/shadowsocks_client.json
  3. 29
      v5/Shadowsocks-TCP/shadowsocks_server.json
  4. 44
      v5/Shadowsocks2022-TCP/shadowsocks2022_client.json
  5. 50
      v5/Trojan-TLS/trojan-tls_client.json
  6. 42
      v5/Trojan-TLS/trojan-tls_server.json

69
v5/General/configv5-example.json

@ -1,6 +1,21 @@
// emmm~ v2ray jsonv5 使DNS
// DNS IP freedom
//
// v2ray run -c configv5-example.json -format=jsonv5
//
//
// 使 tls
// openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -days 3650 -nodes -keyout doubleclick.net.key -out doubleclick.net.pem -subj "/CN=doubleclick.net" -addext "subjectAltName=DNS:doubleclick.net"
//
// "pinned_peer_certificate_chain_sha256" certChainHash
//
// ./v2ray tls certChainHash --cert doubleclick.net.pem
// vdUnuqSt/i/fEtTlPxY8trQVsPfliIj0d/+gqOCL1Jg=
//
// openssl x509 -noout -fingerprint -sha256 -in doubleclick.net.pem
// sha256 Fingerprint=BD:D5:27:BA:A4:AD:FE:2F:DF:12:D4:E5:3F:16:3C:B6:B4:15:B0:F7:E5:88:88:F4:77:FF:A0:A8:E0:8B:D4:98
//
//
{
"log": {
"access": {
@ -96,6 +111,19 @@
"proxiedDomain": "api.v2fly.org"
}
],
//
//
// V5 DNS V4 prioritizedDomain prioritizedDomain fallback
// DNS 使
// "223.5.5.5"
// "tcp://223.5.5.5:53"
// "tcp+local://223.5.5.5:53"
// "https://1.1.1.1/dns-query"
// "https+local://223.5.5.5/dns-query"
// "https+local://a.b.c.d:8443/my-dns-query"
// "quic+local://dns.adguard.com"
//
//
"nameServer": [
{
"address": {
@ -158,7 +186,7 @@
},
{
"address": {
"address": "local://233.5.5.5"
"address": "tcp+local://223.5.5.5:53"
},
"prioritizedDomain": [
{
@ -197,7 +225,7 @@
},
{
"address": {
"address": "local://119.29.29.29",
"address": "119.29.29.29",
"port": 53
},
"skipFallback": false,
@ -376,14 +404,30 @@
"packetEncoding": "Packet"
},
"port": 7830,
"listen": "127.0.0.1"
"listen": "127.0.0.1",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"metadataOnly": true
}
},
{
"tag": "http",
"protocol": "http",
"settings": {},
"port": 7831,
"listen": "127.0.0.1"
"listen": "127.0.0.1",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"metadataOnly": true
}
}
],
"outbounds": [
@ -518,7 +562,12 @@
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
"settings": {},
"mux": {
"domainStrategy": "UseIp", // [ "AsIs" | "UseIP" | "UseIP4" | "UseIP6" ]
"enabled": false,
"concurrency": 8
}
},
{
"tag": "block",
@ -683,7 +732,7 @@
{
"cidr": [
{
"ipAddr": "8.8.4.4",
"ipAddr": "8.8.4.4", // "prefix" IP
"prefix": 32
},
{
@ -691,7 +740,8 @@
"prefix": 32
},
{
"ipAddr": "1.1.1.1"
"ipAddr": "1.1.1.1",
"prefix": 32
}
]
}
@ -762,7 +812,7 @@
{
"cidr": [
{
"ipAddr": "233.5.5.5",
"ipAddr": "223.5.5.5",
"prefix": 32
},
{
@ -770,7 +820,8 @@
"prefix": 32
},
{
"ipAddr": "114.114.114.114"
"ipAddr": "114.114.114.114",
"prefix": 32
}
]
}

41
v5/Shadowsocks-TCP/shadowsocks_client.json

@ -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

@ -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

@ -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=="
]
}
}
]
}

50
v5/Trojan-TLS/trojan-tls_client.json

@ -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

@ -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"
}
]
}
Loading…
Cancel
Save