From d1f24d4a9f4e0e94dd0cce7043a01b5564243ced Mon Sep 17 00:00:00 2001 From: kirikira Date: Mon, 16 Apr 2018 17:07:21 +0800 Subject: [PATCH] add http/2 config --- HTTP2/config_client.json | 111 +++++++++++ HTTP2/config_server.json | 91 +++++++++ How_To_Choose.jpg | Bin README.md | 0 Shadowsocks+mKcp/config_cilent.json | 0 Shadowsocks+mKcp/config_server.json | 0 TCP+TLS/config_client.json | 2 +- TCP+TLS/config_server.json | 2 +- TCP/config_client.json | 75 ++++---- TCP/config_server.json | 74 +++---- http/config_client.json | 75 ++++---- http/config_server.json | 74 +++---- mKcp 伪装微信视频流量/config_client.json | 77 ++++---- mKcp 伪装微信视频流量/config_server.json | 76 ++++---- mKcp/config_client.json | 2 +- mKcp/config_server.json | 2 +- socks5-tls/config_client.json | 86 ++++----- socks5-tls/config_server.json | 148 +++++++------- vmess/config_client.json | 87 +++++---- vmess/config_server.json | 121 ++++++------ websocket+Caddy+TLS(use header)/Caddyfile | 0 .../config_client.json | 75 ++++---- .../config_server.json | 65 ++++--- websocket+Caddy+TLS(use path)/Caddyfile | 0 .../config_client.json | 75 ++++---- .../config_server.json | 65 ++++--- websocket+Nginx+TLS/Nginx.config | 0 websocket+Nginx+TLS/config_client.json | 132 ++++++------- websocket+Nginx+TLS/config_server.json | 0 websocket+TLS/config_client.json | 0 websocket+TLS/config_server.json | 180 +++++++++--------- websocket/config_client.json | 75 ++++---- websocket/config_server.json | 74 +++---- 33 files changed, 1064 insertions(+), 780 deletions(-) create mode 100755 HTTP2/config_client.json create mode 100755 HTTP2/config_server.json mode change 100644 => 100755 How_To_Choose.jpg mode change 100644 => 100755 README.md mode change 100644 => 100755 Shadowsocks+mKcp/config_cilent.json mode change 100644 => 100755 Shadowsocks+mKcp/config_server.json mode change 100644 => 100755 TCP+TLS/config_client.json mode change 100644 => 100755 TCP+TLS/config_server.json mode change 100644 => 100755 TCP/config_client.json mode change 100644 => 100755 TCP/config_server.json mode change 100644 => 100755 http/config_client.json mode change 100644 => 100755 http/config_server.json mode change 100644 => 100755 mKcp 伪装微信视频流量/config_client.json mode change 100644 => 100755 mKcp 伪装微信视频流量/config_server.json mode change 100644 => 100755 mKcp/config_client.json mode change 100644 => 100755 mKcp/config_server.json mode change 100644 => 100755 websocket+Caddy+TLS(use header)/Caddyfile mode change 100644 => 100755 websocket+Caddy+TLS(use header)/config_server.json mode change 100644 => 100755 websocket+Caddy+TLS(use path)/Caddyfile mode change 100644 => 100755 websocket+Caddy+TLS(use path)/config_server.json mode change 100644 => 100755 websocket+Nginx+TLS/Nginx.config mode change 100644 => 100755 websocket+Nginx+TLS/config_client.json mode change 100644 => 100755 websocket+Nginx+TLS/config_server.json mode change 100644 => 100755 websocket+TLS/config_client.json mode change 100644 => 100755 websocket+TLS/config_server.json mode change 100644 => 100755 websocket/config_client.json mode change 100644 => 100755 websocket/config_server.json diff --git a/HTTP2/config_client.json b/HTTP2/config_client.json new file mode 100755 index 0000000..f3964e2 --- /dev/null +++ b/HTTP2/config_client.json @@ -0,0 +1,111 @@ +{ + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "tls" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" + } + ], + "port": 443, + "address": "example.domain" + } + ] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [ + { + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null + } + }, + { + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } + } + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +} \ No newline at end of file diff --git a/HTTP2/config_server.json b/HTTP2/config_server.json new file mode 100755 index 0000000..76c8625 --- /dev/null +++ b/HTTP2/config_server.json @@ -0,0 +1,91 @@ +{ + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "error", + "error": "/var/log/v2ray/error.log" + }, + "inboundDetour": null, + "inbound": { + "streamSettings": { + "network": "h2", + "kcpSettings": null, + "httpSettings": { + "host": [ + "lax.kirikira.moe" + ], + "path": "/test" + }, + "tcpSettings": null, + "tlsSettings": { + "certificates": [ + { + "keyFile": "/path/to/example.domain.key", + "certificateFile": "/path/to/example.domain/fullchain.cer" + } + ] + }, + "security": "tls" + }, + "listen": null, + "protocol": "vmess", + "port": 443, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" + } + ], + "auth": null + } + }, + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], + "routing": { + "strategy": "rules", + "settings": { + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], + "domainStrategy": null + } + }, + "dns": null +} \ No newline at end of file diff --git a/How_To_Choose.jpg b/How_To_Choose.jpg old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/Shadowsocks+mKcp/config_cilent.json b/Shadowsocks+mKcp/config_cilent.json old mode 100644 new mode 100755 diff --git a/Shadowsocks+mKcp/config_server.json b/Shadowsocks+mKcp/config_server.json old mode 100644 new mode 100755 diff --git a/TCP+TLS/config_client.json b/TCP+TLS/config_client.json old mode 100644 new mode 100755 index e6a5018..957a3fd --- a/TCP+TLS/config_client.json +++ b/TCP+TLS/config_client.json @@ -103,4 +103,4 @@ }, "strategy": "rules" } -} +} \ No newline at end of file diff --git a/TCP+TLS/config_server.json b/TCP+TLS/config_server.json old mode 100644 new mode 100755 index 025808a..673edf3 --- a/TCP+TLS/config_server.json +++ b/TCP+TLS/config_server.json @@ -83,4 +83,4 @@ }, "strategy": "rules" } -} +} \ No newline at end of file diff --git a/TCP/config_client.json b/TCP/config_client.json old mode 100644 new mode 100755 index 4631914..4f9f35d --- a/TCP/config_client.json +++ b/TCP/config_client.json @@ -14,15 +14,19 @@ "enabled": true }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 1234, - "address": "Your_IP_Address" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 1234, + "address": "Your_IP_Address" + } + ] } }, "log": { @@ -30,7 +34,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -62,29 +67,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -96,4 +103,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/TCP/config_server.json b/TCP/config_server.json old mode 100644 new mode 100755 index ff95a6d..7edc5c2 --- a/TCP/config_server.json +++ b/TCP/config_server.json @@ -27,47 +27,53 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null } }, - "outboundDetour": [{ - "tag": "blocked", - "protocol": "blackhole", - "settings": null - }], + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], "routing": { "strategy": "rules", "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null } }, "dns": null -} +} \ No newline at end of file diff --git a/http/config_client.json b/http/config_client.json old mode 100644 new mode 100755 index 308be18..27f3791 --- a/http/config_client.json +++ b/http/config_client.json @@ -57,15 +57,19 @@ "enabled": true }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 1234, - "address": "Your_IP_Address" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 1234, + "address": "Your_IP_Address" + } + ] } }, "log": { @@ -73,7 +77,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -105,29 +110,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -139,4 +146,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/http/config_server.json b/http/config_server.json old mode 100644 new mode 100755 index 878e2e5..dfa20fd --- a/http/config_server.json +++ b/http/config_server.json @@ -11,11 +11,13 @@ "loglevel": "info", "error": "/var/log/v2ray/error.log" }, - "outboundDetour": [{ - "tag": "blocked", - "protocol": "blackhole", - "settings": null - }], + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], "inbound": { "streamSettings": { "network": "tcp", @@ -71,11 +73,13 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null }, "protocol": "vmess", @@ -85,32 +89,34 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null }, "strategy": "rules" }, "dns": null -} +} \ No newline at end of file diff --git a/mKcp 伪装微信视频流量/config_client.json b/mKcp 伪装微信视频流量/config_client.json old mode 100644 new mode 100755 index c0c5db1..e92a562 --- a/mKcp 伪装微信视频流量/config_client.json +++ b/mKcp 伪装微信视频流量/config_client.json @@ -3,7 +3,7 @@ "streamSettings": { "network": "kcp", "kcpSettings": { - "uplinkCapacity": 100, + "uplinkCapacity": 15, "downlinkCapacity": 100, "readBufferSize": 2, "mtu": 1350, @@ -27,15 +27,19 @@ "enabled": true }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 1234, - "address": "Your_IP_Address" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 1234, + "address": "Your_IP_Address" + } + ] } }, "log": { @@ -43,7 +47,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -75,29 +80,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -109,4 +116,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/mKcp 伪装微信视频流量/config_server.json b/mKcp 伪装微信视频流量/config_server.json old mode 100644 new mode 100755 index bde7655..9edc1c8 --- a/mKcp 伪装微信视频流量/config_server.json +++ b/mKcp 伪装微信视频流量/config_server.json @@ -11,16 +11,18 @@ "loglevel": "info", "error": "/var/log/v2ray/error.log" }, - "outboundDetour": [{ - "tag": "blocked", - "protocol": "blackhole", - "settings": null - }], + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], "inbound": { "streamSettings": { "network": "kcp", "kcpSettings": { - "uplinkCapacity": 100, + "uplinkCapacity": 15, "downlinkCapacity": 100, "readBufferSize": 2, "mtu": 1350, @@ -41,11 +43,13 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null }, "protocol": "vmess", @@ -55,32 +59,34 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null }, "strategy": "rules" }, "dns": null -} +} \ No newline at end of file diff --git a/mKcp/config_client.json b/mKcp/config_client.json old mode 100644 new mode 100755 index 01e4337..04e367b --- a/mKcp/config_client.json +++ b/mKcp/config_client.json @@ -3,7 +3,7 @@ "streamSettings": { "network": "kcp", "kcpSettings": { - "uplinkCapacity": 100, + "uplinkCapacity": 15, "downlinkCapacity": 100, "readBufferSize": 2, "mtu": 1350, diff --git a/mKcp/config_server.json b/mKcp/config_server.json old mode 100644 new mode 100755 index ba6e1aa..e163f1c --- a/mKcp/config_server.json +++ b/mKcp/config_server.json @@ -20,7 +20,7 @@ "streamSettings": { "network": "kcp", "kcpSettings": { - "uplinkCapacity": 100, + "uplinkCapacity": 15, "downlinkCapacity": 100, "readBufferSize": 2, "mtu": 1350, diff --git a/socks5-tls/config_client.json b/socks5-tls/config_client.json index c8ae988..5339657 100644 --- a/socks5-tls/config_client.json +++ b/socks5-tls/config_client.json @@ -1,46 +1,44 @@ { - "log":{ - "loglevel":"warning" - }, - "inbound":{ - "port":6789, - "listen":"127.0.0.1", - "protocol":"socks", - "settings":{ - "auth":"noauth", - "udp":false, - "ip":"127.0.0.1" - } - }, - "outbound":{ - "protocol":"socks", - "settings":{ - "servers":[ - { - "address":"you server", - "port": 443, - "users":[ - { - "user":"hello", - "pass":"3.1415", - "level":0 - } - ] + "log": { + "loglevel": "warning" + }, + "inbound": { + "port": 6789, + "listen": "127.0.0.1", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": false, + "ip": "127.0.0.1" + } + }, + "outbound": { + "protocol": "socks", + "settings": { + "servers": [ + { + "address": "you server", + "port": 443, + "users": [ + { + "user": "hello", + "pass": "3.1415", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls" + } + }, + "policy": { + "levels": { + "0": { + "uplinkOnly": 0 } - ] - }, - - "streamSettings": { - "network": "tcp", - "security": "tls" - } - - }, - "policy":{ - "levels":{ - "0":{ - "uplinkOnly":0 - } - } - } -} + } + } +} \ No newline at end of file diff --git a/socks5-tls/config_server.json b/socks5-tls/config_server.json index 20eeb96..4dc7a0e 100644 --- a/socks5-tls/config_server.json +++ b/socks5-tls/config_server.json @@ -1,79 +1,75 @@ { - "log":{ - "access":"/var/log/v2ray/access.log", - "error":"/var/log/v2ray/error.log", - "loglevel":"warning" - }, - "inbound":{ - "port":443, - "protocol":"socks", - "settings":{ - "auth":"password", - "accounts":[ - { - "user":"hello", - "pass":"3.1415" + "log": { + "access": "/var/log/v2ray/access.log", + "error": "/var/log/v2ray/error.log", + "loglevel": "warning" + }, + "inbound": { + "port": 443, + "protocol": "socks", + "settings": { + "auth": "password", + "accounts": [ + { + "user": "hello", + "pass": "3.1415" + } + ], + "udp": false, + "ip": "127.0.0.1", + "timeout": 0, + "userLevel": 0 + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/etc/v2ray/v2ray.crt", + "keyFile": "/etc/v2ray/v2ray.key" + } + ] } - ], - "udp":false, - "ip":"127.0.0.1", - "timeout":0, - "userLevel":0 - }, - "streamSettings":{ - "network":"tcp", - "security":"tls", - "tlsSettings":{ - "certificates":[ - { - "certificateFile":"/etc/v2ray/v2ray.crt", - "keyFile":"/etc/v2ray/v2ray.key" - } + } + }, + "outbound": { + "protocol": "freedom", + "settings": {} + }, + "outboundDetour": [ + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + } + ], + "routing": { + "strategy": "rules", + "settings": { + "rules": [ + { + "type": "field", + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "outboundTag": "blocked" + } ] - } - } - }, - "outbound":{ - "protocol":"freedom", - "settings":{ - - } - }, - "outboundDetour":[ - { - "protocol":"blackhole", - "settings":{ - - }, - "tag":"blocked" - } - ], - "routing":{ - "strategy":"rules", - "settings":{ - "rules":[ - { - "type":"field", - "ip":[ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "outboundTag":"blocked" - } - ] - } - } -} + } + } +} \ No newline at end of file diff --git a/vmess/config_client.json b/vmess/config_client.json index 4268e17..bd272ec 100644 --- a/vmess/config_client.json +++ b/vmess/config_client.json @@ -1,45 +1,53 @@ { - "log": { - "error": "F:\\Program Files\\v2ray-v2.40-windows-64\\error.log", - "loglevel": "warning" - }, - "inbound": { - "port": 1082, - "listen": "127.0.0.1", - "protocol": "socks", - "settings": { - "auth": "noauth", - "udp": true - } - }, - "outbound": { - "protocol": "vmess", - "settings": { - "vnext": [{ + "log": { + "error": "F:\\Program Files\\v2ray-v2.40-windows-64\\error.log", + "loglevel": "warning" + }, + "inbound": { + "port": 1082, + "listen": "127.0.0.1", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true + } + }, + "outbound": { + "protocol": "vmess", + "settings": { + "vnext": [ + { "address": "0.0.0.0", "port": 1234, - "users": [{ - "id": "a90597c1-bab3-4217-ad6f-0838675c8633", - "alterId": 10 - }, { - "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", - "level": 1, - "security": "aes-128-gcm", - "alterId": 12 - }] - }] - } - }, - "outboundDetour": [{ + "users": [ + { + "id": "a90597c1-bab3-4217-ad6f-0838675c8633", + "alterId": 10 + }, + { + "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", + "level": 1, + "security": "aes-128-gcm", + "alterId": 12 + } + ] + } + ] + } + }, + "outboundDetour": [ + { "protocol": "freedom", "tag": "direct", "settings": {} - }], - "routing": { - "strategy": "rules", - "settings": { - "domainStrategy": "IPOnDemand", - "rules": [{ + } + ], + "routing": { + "strategy": "rules", + "settings": { + "domainStrategy": "IPOnDemand", + "rules": [ + { "type": "field", "ip": [ "0.0.0.0/8", @@ -59,7 +67,8 @@ "fe80::/10" ], "outboundTag": "direct" - }] - } + } + ] } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/vmess/config_server.json b/vmess/config_server.json index 5d8f459..03b3a63 100644 --- a/vmess/config_server.json +++ b/vmess/config_server.json @@ -1,61 +1,64 @@ { - "log" : { - "access": "/var/log/v2ray/access.log", - "error": "/var/log/v2ray/error.log", - "loglevel": "warning" - }, - "inbound": { - "port": 1234, - "protocol": "vmess", - "settings": { - "clients": [{ - "id": "a90597c1-bab3-4217-ad6f-0838675c8633", - "alterId": 10 - }, { - "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", - "level": 1, - "security": "aes-128-gcm", - "alterId": 12 - }] - } - }, - "outbound": { - "protocol": "freedom", - "settings": {} - }, - "outboundDetour": [ - { - "protocol": "blackhole", - "settings": {}, - "tag": "blocked" - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "type": "field", - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "outboundTag": "blocked" - } - ] - } + "log": { + "access": "/var/log/v2ray/access.log", + "error": "/var/log/v2ray/error.log", + "loglevel": "warning" + }, + "inbound": { + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "a90597c1-bab3-4217-ad6f-0838675c8633", + "alterId": 10 + }, + { + "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", + "level": 1, + "security": "aes-128-gcm", + "alterId": 12 + } + ] } - } \ No newline at end of file + }, + "outbound": { + "protocol": "freedom", + "settings": {} + }, + "outboundDetour": [ + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + } + ], + "routing": { + "strategy": "rules", + "settings": { + "rules": [ + { + "type": "field", + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "outboundTag": "blocked" + } + ] + } + } +} \ No newline at end of file diff --git a/websocket+Caddy+TLS(use header)/Caddyfile b/websocket+Caddy+TLS(use header)/Caddyfile old mode 100644 new mode 100755 diff --git a/websocket+Caddy+TLS(use header)/config_client.json b/websocket+Caddy+TLS(use header)/config_client.json index 63ae65a..3e33037 100755 --- a/websocket+Caddy+TLS(use header)/config_client.json +++ b/websocket+Caddy+TLS(use header)/config_client.json @@ -20,15 +20,19 @@ "concurrency": 8 }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 443, - "address": "example.domain" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 443, + "address": "example.domain" + } + ] } }, "log": { @@ -36,7 +40,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -68,29 +73,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -102,4 +109,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/websocket+Caddy+TLS(use header)/config_server.json b/websocket+Caddy+TLS(use header)/config_server.json old mode 100644 new mode 100755 index 79f127d..4ddfb2e --- a/websocket+Caddy+TLS(use header)/config_server.json +++ b/websocket+Caddy+TLS(use header)/config_server.json @@ -11,7 +11,8 @@ "loglevel": "info", "error": "/var/log/v2ray/error.log" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": null @@ -39,11 +40,13 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null }, "protocol": "vmess", @@ -53,32 +56,34 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null }, "strategy": "rules" }, "dns": null -} +} \ No newline at end of file diff --git a/websocket+Caddy+TLS(use path)/Caddyfile b/websocket+Caddy+TLS(use path)/Caddyfile old mode 100644 new mode 100755 diff --git a/websocket+Caddy+TLS(use path)/config_client.json b/websocket+Caddy+TLS(use path)/config_client.json index c7a207e..4069f52 100755 --- a/websocket+Caddy+TLS(use path)/config_client.json +++ b/websocket+Caddy+TLS(use path)/config_client.json @@ -17,15 +17,19 @@ "concurrency": 8 }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 443, - "address": "example.domain" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 443, + "address": "example.domain" + } + ] } }, "log": { @@ -33,7 +37,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -65,29 +70,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -99,4 +106,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/websocket+Caddy+TLS(use path)/config_server.json b/websocket+Caddy+TLS(use path)/config_server.json old mode 100644 new mode 100755 index c94f841..2714157 --- a/websocket+Caddy+TLS(use path)/config_server.json +++ b/websocket+Caddy+TLS(use path)/config_server.json @@ -11,7 +11,8 @@ "loglevel": "info", "error": "/var/log/v2ray/error.log" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": null @@ -36,11 +37,13 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null }, "protocol": "vmess", @@ -50,32 +53,34 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null }, "strategy": "rules" }, "dns": null -} +} \ No newline at end of file diff --git a/websocket+Nginx+TLS/Nginx.config b/websocket+Nginx+TLS/Nginx.config old mode 100644 new mode 100755 diff --git a/websocket+Nginx+TLS/config_client.json b/websocket+Nginx+TLS/config_client.json old mode 100644 new mode 100755 index a7f9410..aad0a55 --- a/websocket+Nginx+TLS/config_client.json +++ b/websocket+Nginx+TLS/config_client.json @@ -1,132 +1,132 @@ { "outbound": { - "protocol": "freedom", - "settings": { }, + "protocol": "freedom", + "settings": {}, "tag": "direct" - }, + }, "inboundDetour": [ { - "port": 1086, - "listen": "127.0.0.1", - "protocol": "socks", + "port": 1086, + "listen": "127.0.0.1", + "protocol": "socks", "settings": { - "auth": "noauth", - "timeout": 300, + "auth": "noauth", + "timeout": 300, "udp": true } } - ], + ], "outboundDetour": [ { "mux": { - "concurrency": 6, + "concurrency": 6, "enabled": true - }, - "protocol": "vmess", + }, + "protocol": "vmess", "settings": { "vnext": [ { "users": [ { - "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a", - "alterId": 0, + "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a", + "alterId": 0, "security": "aes-128-cfb" } - ], - "address": "domain.Name", + ], + "address": "domain.Name", "port": 443 } ] - }, + }, "streamSettings": { "tlsSettings": { "allowInsecure": false - }, + }, "wsSettings": { "headers": { "Host": "domain.Name" - }, + }, "path": "/PATH/" - }, - "network": "ws", + }, + "network": "ws", "security": "tls" - }, + }, "tag": "proxy" - }, + }, { - "protocol": "blackhole", - "settings": { }, + "protocol": "blackhole", + "settings": {}, "tag": "block" } - ], + ], "dns": { "servers": [ - "8.8.8.8", + "8.8.8.8", "8.8.4.4" ] - }, + }, "inbound": { - "port": 1087, - "listen": "127.0.0.1", - "protocol": "http", + "port": 1087, + "listen": "127.0.0.1", + "protocol": "http", "settings": { "timeout": 300 } - }, + }, "routing": { "settings": { "rules": [ { - "type": "field", + "type": "field", "domain": [ "geosite:cn" - ], + ], "outboundTag": "direct" - }, + }, { - "type": "field", + "type": "field", "domain": [ - "google", - "facebook", - "youtube", - "twitter", - "instagram", - "gmail", - "domain:twimg.com", + "google", + "facebook", + "youtube", + "twitter", + "instagram", + "gmail", + "domain:twimg.com", "domain:t.co" - ], + ], "outboundTag": "proxy" - }, + }, { - "type": "field", + "type": "field", "ip": [ - "8.8.8.8/32", - "8.8.4.4/32", - "91.108.56.0/22", - "91.108.4.0/22", - "109.239.140.0/24", - "149.154.164.0/22", - "91.108.56.0/23", - "67.198.55.0/24", - "149.154.168.0/22", + "8.8.8.8/32", + "8.8.4.4/32", + "91.108.56.0/22", + "91.108.4.0/22", + "109.239.140.0/24", + "149.154.164.0/22", + "91.108.56.0/23", + "67.198.55.0/24", + "149.154.168.0/22", "149.154.172.0/22" - ], + ], "outboundTag": "proxy" - }, + }, { - "type": "field", + "type": "field", "ip": [ - "192.168.0.0/16", - "10.0.0.0/8", - "172.16.0.0/12", - "127.0.0.0/8", + "192.168.0.0/16", + "10.0.0.0/8", + "172.16.0.0/12", + "127.0.0.0/8", "geoip:cn" - ], + ], "outboundTag": "direct" } - ], + ], "domainStrategy": "IPIfNonMatch" - }, + }, "strategy": "rules" } -} +} \ No newline at end of file diff --git a/websocket+Nginx+TLS/config_server.json b/websocket+Nginx+TLS/config_server.json old mode 100644 new mode 100755 diff --git a/websocket+TLS/config_client.json b/websocket+TLS/config_client.json old mode 100644 new mode 100755 diff --git a/websocket+TLS/config_server.json b/websocket+TLS/config_server.json old mode 100644 new mode 100755 index d02bac7..d1692f4 --- a/websocket+TLS/config_server.json +++ b/websocket+TLS/config_server.json @@ -1,91 +1,91 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "error", - "error": "/var/log/v2ray/error.log" - }, - "inboundDetour": null, - "inbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "" - }, - "tcpSettings": null, - "tlsSettings": { - "certificates": [ - { - "keyFile": "/path/to/example.domain.key", - "certificateFile": "/path/to/example.domain/fullchain.cer" - } - ] - }, - "security": "tls" - }, - "listen": null, - "protocol": "vmess", - "port": 443, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" - } - ], - "auth": null - } - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - } - }, - "dns": null -} + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "error", + "error": "/var/log/v2ray/error.log" + }, + "inboundDetour": null, + "inbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": { + "certificates": [ + { + "keyFile": "/path/to/example.domain.key", + "certificateFile": "/path/to/example.domain/fullchain.cer" + } + ] + }, + "security": "tls" + }, + "listen": null, + "protocol": "vmess", + "port": 443, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" + } + ], + "auth": null + } + }, + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], + "routing": { + "strategy": "rules", + "settings": { + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], + "domainStrategy": null + } + }, + "dns": null +} \ No newline at end of file diff --git a/websocket/config_client.json b/websocket/config_client.json old mode 100644 new mode 100755 index 0601fae..c522154 --- a/websocket/config_client.json +++ b/websocket/config_client.json @@ -19,15 +19,19 @@ "enabled": true }, "settings": { - "vnext": [{ - "users": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], - "port": 1234, - "address": "Your_IP_Address" - }] + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 1234, + "address": "Your_IP_Address" + } + ] } }, "log": { @@ -35,7 +39,8 @@ "loglevel": "info", "error": "" }, - "outboundDetour": [{ + "outboundDetour": [ + { "tag": "direct", "protocol": "freedom", "settings": { @@ -67,29 +72,31 @@ "inboundDetour": null, "routing": { "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + } + ], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" @@ -101,4 +108,4 @@ "localhost" ] } -} +} \ No newline at end of file diff --git a/websocket/config_server.json b/websocket/config_server.json old mode 100644 new mode 100755 index 0083e2b..62e96a7 --- a/websocket/config_server.json +++ b/websocket/config_server.json @@ -32,47 +32,53 @@ "settings": { "ip": null, "udp": true, - "clients": [{ - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - }], + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], "auth": null } }, - "outboundDetour": [{ - "tag": "blocked", - "protocol": "blackhole", - "settings": null - }], + "outboundDetour": [ + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], "routing": { "strategy": "rules", "settings": { - "rules": [{ - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - }], + "rules": [ + { + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + } + ], "domainStrategy": null } }, "dns": null -} +} \ No newline at end of file