diff --git a/VLESS-TCP-TLS-proxy protocol/config_client.json b/VLESS-TCP-TLS-proxy protocol/config_client.json new file mode 100644 index 0000000..c87ee23 --- /dev/null +++ b/VLESS-TCP-TLS-proxy protocol/config_client.json @@ -0,0 +1,72 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" + } + }, + { + "listen": "127.0.0.1", + "port": "1081", + "protocol": "http" + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "1.2.3.4", + "port": 443, + "user": [ + { + "id": "", + "encryption": "none", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false, + "alpn": [ + "h2", + "http/1.1" + ], + "disableSessionResumption": true + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ], + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + } +} \ No newline at end of file diff --git a/VLESS-TCP-TLS-proxy protocol/config_server.json b/VLESS-TCP-TLS-proxy protocol/config_server.json new file mode 100644 index 0000000..cfd31e9 --- /dev/null +++ b/VLESS-TCP-TLS-proxy protocol/config_server.json @@ -0,0 +1,55 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 443, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", + "level": 0, + "email": "love@v2fly.org" + } + ], + "fallback": { + "addr": "127.0.0.1", + "port": 8001, + "xver": 1 + }, + "fallback_h2": { + "addr": "127.0.0.1", + "port": 8002, + "xver": 1 + }, + "decryption": "none" + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "alpn": [ + "h2", + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + } + ] +} \ No newline at end of file diff --git a/VLESS-TCP-TLS-proxy protocol/nginx.conf b/VLESS-TCP-TLS-proxy protocol/nginx.conf new file mode 100644 index 0000000..cbb51fb --- /dev/null +++ b/VLESS-TCP-TLS-proxy protocol/nginx.conf @@ -0,0 +1,73 @@ +worker_processes auto; +worker_cpu_affinity auto; +worker_rlimit_nofile 65535; + +error_log logs/error.log warn; + +pid logs/nginx.pid;; + +events { + worker_connections 1024; + use epoll; + multi_accept on; +} + +http { + + include mime.types; + default_type application/octet-stream; + + index index.html index.htm + + proxy_set_header X-Real-IP $proxy_protocol_addr; + proxy_set_header X-Forwarded-For $proxy_protocol_addr; + + log_format proxy '$proxy_protocol_addr - $remote_user [$time_local] ' + '"$request" $status $body_bytes_sent ' + '"$http_referer" "$http_user_agent"'; + + sendfile on; + + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { + listen 127.0.0.1:8001 proxy_protocol; + server_name yourserver_8001.com; + + set_real_ip_from 192.168.1.0/24; + + charset utf-8; + + access_log logs/yourserver_8001.access.log proxy; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + + server { + listen 127.0.0.1:8002 http2 proxy_protocol; + server_name yourserver_8002.com; + + charset utf-8; + + access_log logs/yourserver_8002.access.log proxy; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } +} diff --git a/VLESS-TCP-TLS/config_client.json b/VLESS-TCP-TLS/config_client.json new file mode 100644 index 0000000..c87ee23 --- /dev/null +++ b/VLESS-TCP-TLS/config_client.json @@ -0,0 +1,72 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" + } + }, + { + "listen": "127.0.0.1", + "port": "1081", + "protocol": "http" + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "1.2.3.4", + "port": 443, + "user": [ + { + "id": "", + "encryption": "none", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false, + "alpn": [ + "h2", + "http/1.1" + ], + "disableSessionResumption": true + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ], + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + } +} \ No newline at end of file diff --git a/VLESS-TCP-TLS/config_server.json b/VLESS-TCP-TLS/config_server.json new file mode 100644 index 0000000..647e10e --- /dev/null +++ b/VLESS-TCP-TLS/config_server.json @@ -0,0 +1,55 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 443, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", + "level": 0, + "email": "love@v2fly.org" + } + ], + "fallback": { + "addr": "127.0.0.1", + "port": 8001, + "xver": 0 + }, + "fallback_h2": { + "addr": "127.0.0.1", + "port": 8002, + "xver": 0 + }, + "decryption": "none" + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "alpn": [ + "h2", + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + } + ] +} \ No newline at end of file diff --git a/VLESS-TCP-TLS/nginx.conf b/VLESS-TCP-TLS/nginx.conf new file mode 100644 index 0000000..d04dbf4 --- /dev/null +++ b/VLESS-TCP-TLS/nginx.conf @@ -0,0 +1,68 @@ +worker_processes auto; +worker_cpu_affinity auto; +worker_rlimit_nofile 65535; + +error_log logs/error.log warn; + +pid logs/nginx.pid;; + +events { + worker_connections 1024; + use epoll; + multi_accept on; +} + +http { + + include mime.types; + default_type application/octet-stream; + + index index.html index.htm + + log_format main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + sendfile on; + + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { + listen 127.0.0.1:8001; + server_name yourserver_8001.com; + + charset utf-8; + + access_log logs/yourserver_8001.access.log main; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + + server { + listen 127.0.0.1:8002 http2; + server_name yourserver_8002.com; + + charset utf-8; + + access_log logs/yourserver_8002.access.log main; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } +} diff --git a/VLESS-TCP/config_client.json b/VLESS-TCP/config_client.json new file mode 100644 index 0000000..6b300ca --- /dev/null +++ b/VLESS-TCP/config_client.json @@ -0,0 +1,62 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" + } + }, + { + "listen": "127.0.0.1", + "port": "1081", + "protocol": "http" + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "1.2.3.4", + "port": 1234, + "user": [ + { + "id": "", + "encryption": "none", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp" + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ], + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + } +} \ No newline at end of file diff --git a/VLESS-TCP/config_server.json b/VLESS-TCP/config_server.json new file mode 100644 index 0000000..0dd816f --- /dev/null +++ b/VLESS-TCP/config_server.json @@ -0,0 +1,41 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", + "level": 0, + "email": "love@v2fly.org" + } + ], + "fallback": { + "addr": "127.0.0.1", + "port": 8001, + "xver": 0 + }, + "fallback_h2": { + "addr": "127.0.0.1", + "port": 8002, + "xver": 0 + }, + "decryption": "none" + }, + "streamSettings": { + "network": "tcp" + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + } + ] +} \ No newline at end of file diff --git a/VLESS-TCP/nginx.conf b/VLESS-TCP/nginx.conf new file mode 100644 index 0000000..d04dbf4 --- /dev/null +++ b/VLESS-TCP/nginx.conf @@ -0,0 +1,68 @@ +worker_processes auto; +worker_cpu_affinity auto; +worker_rlimit_nofile 65535; + +error_log logs/error.log warn; + +pid logs/nginx.pid;; + +events { + worker_connections 1024; + use epoll; + multi_accept on; +} + +http { + + include mime.types; + default_type application/octet-stream; + + index index.html index.htm + + log_format main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + sendfile on; + + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { + listen 127.0.0.1:8001; + server_name yourserver_8001.com; + + charset utf-8; + + access_log logs/yourserver_8001.access.log main; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + + server { + listen 127.0.0.1:8002 http2; + server_name yourserver_8002.com; + + charset utf-8; + + access_log logs/yourserver_8002.access.log main; + + location / { + root /var/www/html; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } +} diff --git a/VMess-TCP/config_client.json b/VMess-TCP/config_client.json index ddfc9be..c9d83e6 100644 --- a/VMess-TCP/config_client.json +++ b/VMess-TCP/config_client.json @@ -33,7 +33,7 @@ ], "outbounds": [ { - "protocol": "vmess", + "protocol": "vless", "settings": { "vnext": [ { @@ -43,8 +43,7 @@ { "id": "", "alterId": 4, - "security": "auto", - "testsEnabled": "VMessAEAD" + "encryption": "none" } ] }