diff --git a/Socks5-TLS/config_client.json b/Socks5-TLS/config_client.json index d0d84e6..058ed07 100644 --- a/Socks5-TLS/config_client.json +++ b/Socks5-TLS/config_client.json @@ -2,36 +2,65 @@ "log": { "loglevel": "warning" }, - "inbound": { - "port": 6789, - "listen": "127.0.0.1", - "protocol": "socks", - "settings": { - "auth": "noauth", - "udp": false, - "ip": "127.0.0.1" - } + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] }, - "outbound": { - "protocol": "socks", - "settings": { - "servers": [ - { - "address": "you server", - "port": 443, - "users": [ - { - "user": "hello", - "pass": "3.1415", - "level": 0 - } - ] - } - ] + "inbounds": [ + { + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" + } }, - "streamSettings": { - "network": "tcp", - "security": "tls" + { + "listen": "127.0.0.1", + "port": "1081", + "protocol": "http" } - } + ], + "outbounds": [ + { + "protocol": "socks", + "settings": { + "server": [ + { + "address": "", + "port": 1234, + "users": [ + { + "user": "", + "pass": "" + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ] } diff --git a/Socks5-TLS/config_server.json b/Socks5-TLS/config_server.json index 4dc7a0e..b5a9227 100644 --- a/Socks5-TLS/config_server.json +++ b/Socks5-TLS/config_server.json @@ -1,75 +1,57 @@ { "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": [ + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + } + ] + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 1234, + "protocol": "socks", + "settings": { + "auth": "password", + "accounts": [ { - "certificateFile": "/etc/v2ray/v2ray.crt", - "keyFile": "/etc/v2ray/v2ray.key" + "user": "", + "pass": "" } - ] + ], + "udp": true, + "ip": "127.0.0.1" + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } } } - }, - "outbound": { - "protocol": "freedom", - "settings": {} - }, - "outboundDetour": [ + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + }, { "protocol": "blackhole", - "settings": {}, - "tag": "blocked" + "tag": "block" } - ], - "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-HTTP/config_client.json b/VMess-HTTP/config_client.json index 27f3791..48637a2 100644 --- a/VMess-HTTP/config_client.json +++ b/VMess-HTTP/config_client.json @@ -1,149 +1,94 @@ { - "outbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": { - "header": { - "type": "http", - "request": { - "path": [ - "/" - ], - "version": "1.1", - "method": "GET", - "headers": { - "Host": "cloudflare.com", - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", - "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache", - "Accept-Encoding": [ - "gzip, deflate" - ] - } - }, - "response": { - "status": "200", - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Pragma": "no-cache" - }, - "reason": "OK", - "version": "1.1" - } - } - }, - "tlsSettings": {}, - "security": "" + "log": { + "loglevel": "warning" }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ + "routing": { + "domainStratedy": "AsIs", + "rules": [ { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "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": [ + "inbounds": [ { - "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" + "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": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "auto", + "testsEnabled": "VMessAEAD" + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "tcpSettings": { + "header": { + "type": "http", + "request": { + "version": "1.1", + "method": "GET", + "path": [ + "/" + ], + "headers": { + "Host": [ + "www.bing.com", + "www.cloudflare.com", + "www.amazon.com" + ], + "User-Agent": [ + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.49", + "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.71 Mobile/15E148 Safari/604.1" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Connection": [ + "keep-alive" + ], + "Pragma": "no-cache" + } + } + } + }, + "security": "none" + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "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/VMess-HTTP/config_server.json b/VMess-HTTP/config_server.json index dfa20fd..b51c56f 100644 --- a/VMess-HTTP/config_server.json +++ b/VMess-HTTP/config_server.json @@ -1,122 +1,73 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": { - "header": { - "request": { - "path": [ - "/" - ], - "version": "1.1", - "method": "GET", - "headers": { - "Host": "cloudflare.com", - "Connection": [ - "keep-alive" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Pragma": "no-cache", - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", - "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" - ] + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" } - }, - "type": "http", - "response": { - "status": "200", - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Pragma": "no-cache" + ] + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", + "alterId": 4 + } + ], + "disableInsecureEncryption": true }, - "reason": "OK", - "version": "1.1" - } + "streamSettings": { + "network": "tcp", + "tcpSettings": { + "header": { + "type": "http", + "response": { + "version": "1.1", + "status": "200", + "reason": "OK", + "headers": { + "Content-Type": [ + "application/octet-stream", + "video/mpeg", + "application/x-msdownload", + "text/html", + "application/x-shockwave-flash" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Connection": [ + "keep-alive" + ], + "Pragma": "no-cache" + } + } + } + }, + "security": "none" + } } - }, - "tlsSettings": {}, - "security": "" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ + ], + "outbounds": [ { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "auth": null - }, - "protocol": "vmess", - "port": 1234, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + "protocol": "freedom", + "tag": "direct" + }, { - "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" + "protocol": "blackhole", + "tag": "block" } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null -} \ No newline at end of file + ] +} diff --git a/VMess-HTTP2/config_client.json b/VMess-HTTP2/config_client.json index e4e7ed5..4938251 100644 --- a/VMess-HTTP2/config_client.json +++ b/VMess-HTTP2/config_client.json @@ -1,111 +1,73 @@ { - "outbound": { - "streamSettings": { - "network": "h2", - "kcpSettings": null, - "httpSettings": { - "host": [ - "example.domain" - ], - "path": "/test" - }, - "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": "" + "loglevel": "warning" }, - "outboundDetour": [ + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + }, + "inbounds": [ { - "tag": "direct", - "protocol": "freedom", + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", "settings": { - "response": null + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" } }, { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } + "listen": "127.0.0.1", + "port": "1081", + "protocol": "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" + "outbounds": [ + { + "protocol": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "http", + "httpSettings": { + "host": [ + "example.domain" ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "path": "" + }, + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false } - ], - "domainStrategy": "IPIfNonMatch" + }, + "tag": "proxy" }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file + { + "protocol": "freedom", + "tag": "direct" + } + ] +} diff --git a/VMess-HTTP2/config_server.json b/VMess-HTTP2/config_server.json index bb8ecf1..a6dafd7 100644 --- a/VMess-HTTP2/config_server.json +++ b/VMess-HTTP2/config_server.json @@ -1,91 +1,61 @@ { - "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" + "loglevel": "warning" }, - "inboundDetour": null, - "inbound": { - "streamSettings": { - "network": "h2", - "kcpSettings": null, - "httpSettings": { - "host": [ - "example.domain" + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" ], - "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 - } + "outboundTag": "block" + } + ] }, - "outboundDetour": [ + "inbounds": [ { - "tag": "blocked", - "protocol": "blackhole", - "settings": null + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", + "alterId": 4 + } + ], + "disableInsecureEncryption": false + }, + "streamSettings": { + "network": "http", + "httpSettings": { + "host": [ + "example.domain" + ], + "path": "" + }, + "security": "tls", + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } + } } ], - "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 + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + }, + { + "protocol": "blackhole", + "tag": "block" } - }, - "dns": null -} \ No newline at end of file + ] +} diff --git a/VMess-TCP-TLS/config_client.json b/VMess-TCP-TLS/config_client.json index 957a3fd..7189e32 100644 --- a/VMess-TCP-TLS/config_client.json +++ b/VMess-TCP-TLS/config_client.json @@ -1,106 +1,67 @@ { - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } ] }, - "inbound": { - "listen": "0.0.0.0", - "port": 1080, - "protocol": "socks", - "settings": { - "auth": "noauth", - "clients": null, - "ip": "127.0.0.1", - "udp": true - }, - "streamSettings": null - }, - "inboundDetour": null, - "log": { - "access": "/var/log/v2ray/access.log", - "error": "/var/log/v2ray/error.log", - "loglevel": "info" - }, - "outbound": { - "mux": { - "enabled": true - }, - "protocol": "vmess", - "settings": { - "vnext": [ - { - "address": "example.domain", - "port": 443, - "users": [ - { - "alterId": 64, - "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e", - "security": "none" - } - ] - } - ] - }, - "streamSettings": { - "kcpSettings": null, - "network": "tcp", - "security": "tls", - "tcpSettings": null, - "tlsSettings": {}, - "wsSettings": null - }, - "tag": "agentout" - }, - "outboundDetour": [ + "inbounds": [ { - "protocol": "freedom", + "listen": "127.0.0.1", + "port": "1080", + "protocol": "socks", "settings": { - "response": null - }, - "tag": "direct" + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1" + } }, { - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - }, - "tag": "blockout" + "listen": "127.0.0.1", + "port": "1081", + "protocol": "http" } ], - "routing": { - "settings": { - "domainStrategy": "IPIfNonMatch", - "rules": [ - { - "domain": null, - "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": "direct", - "port": null, - "type": "field" + "outbounds": [ + { + "protocol": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false } - ] + }, + "tag": "proxy" }, - "strategy": "rules" - } -} \ No newline at end of file + { + "protocol": "freedom", + "tag": "direct" + } + ] +} diff --git a/VMess-TCP-TLS/config_server.json b/VMess-TCP-TLS/config_server.json index 673edf3..5c7390f 100644 --- a/VMess-TCP-TLS/config_server.json +++ b/VMess-TCP-TLS/config_server.json @@ -1,86 +1,55 @@ { - "dns": null, - "inbound": { - "listen": null, - "port": 443, - "protocol": "vmess", - "settings": { - "auth": null, - "clients": [ - { - "alterId": 64, - "id": "e2b39869-7e9e-411b-a561-00904419bed9", - "security": "none" - } - ], - "ip": null, - "udp": true - }, - "streamSettings": { - "kcpSettings": null, - "network": "tcp", - "security": "tls", - "tcpSettings": null, - "tlsSettings": { - "certificates": [ - { - "certificateFile": "/path/to/example.domain/fullchain.cer", - "keyFile": "/path/to/example.domain.key" - } - ] - }, - "wsSettings": null - } - }, - "inboundDetour": null, "log": { - "access": "/var/log/v2ray/access.log", - "error": "/var/log/v2ray/error.log", - "loglevel": "info" + "loglevel": "warning" }, - "outbound": { - "mux": null, - "protocol": "freedom", - "settings": null, - "streamSettings": null, - "tag": null + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + } + ] }, - "outboundDetour": [ + "inbounds": [ { - "protocol": "blackhole", - "settings": null, - "tag": "blocked" + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", + "alterId": 4 + } + ], + "disableInsecureEncryption": false + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } + } } ], - "routing": { - "settings": { - "domainStrategy": null, - "rules": [ - { - "domain": null, - "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", - "port": null, - "type": "field" - } - ] + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" }, - "strategy": "rules" - } -} \ No newline at end of file + { + "protocol": "blackhole", + "tag": "block" + } + ] +} diff --git a/VMess-TCP/config_client.json b/VMess-TCP/config_client.json index 3d0bd70..ddfc9be 100644 --- a/VMess-TCP/config_client.json +++ b/VMess-TCP/config_client.json @@ -1,56 +1,63 @@ { - "log": { - "loglevel": "warning" - }, - "routing": { - "domainStrategy": "AsIs", - "rules": [ - { - "ip": [ - "geoip:private" - ], - "outboundTag": "direct", - "port": null, - "type": "field" - } - ] - }, - "outbounds": [ - { - "port": 1234, - "protocol": "vmess", - "settings": { - "clients": [ - { - "id": "e2b39869-7e9e-411b-a561-00904419bed9", - "alterId": 100, - "testsEnabled": "VMessAEAD" - } - ] - }, - "tag": "proxy", - "streamSettings": { - "network": "tcp" - } + "log": { + "loglevel": "warning" }, - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "domainStrategy": "UseIP" - } - } - ], - "inbounds": [ - { - "port": 6789, - "listen": "127.0.0.1", - "protocol": "socks", - "settings": { - "auth": "noauth", - "udp": false, - "ip": "127.0.0.1" - } - } - ] + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + }, + "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": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "auto", + "testsEnabled": "VMessAEAD" + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp" + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ] } \ No newline at end of file diff --git a/VMess-TCP/config_server.json b/VMess-TCP/config_server.json index 7c1a152..cb71d06 100644 --- a/VMess-TCP/config_server.json +++ b/VMess-TCP/config_server.json @@ -6,29 +6,28 @@ "domainStrategy": "AsIs", "rules": [ { + "type": "field", "ip": [ "geoip:private" ], - "outboundTag": "blocked", - "port": null, - "type": "field" + "outboundTag": "block" } ] }, "inbounds": [ { + "listen": "0.0.0.0", "port": 1234, "protocol": "vmess", "settings": { "clients": [ { "id": "", - "alterId": 100, - "testsEnabled": "VMessAEAD" + "alterId": 4 } - ] + ], + "disableInsecureEncryption": true }, - "tag": "tcp", "streamSettings": { "network": "tcp" } @@ -37,15 +36,11 @@ "outbounds": [ { "protocol": "freedom", - "settings": { - }, "tag": "direct" }, { "protocol": "blackhole", - "settings": { - }, - "tag": "blocked" + "tag": "block" } ] } diff --git a/VMess-Websocket-TLS/config_client.json b/VMess-Websocket-TLS/config_client.json index 0e33473..a30799d 100644 --- a/VMess-Websocket-TLS/config_client.json +++ b/VMess-Websocket-TLS/config_client.json @@ -1,111 +1,73 @@ { - "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" - ] - } + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStratedy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" + } + ] + }, + "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": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "", + "headers": { + "Host": "example.domain" + } + }, + "security": "tls", + "tlsSettings": { + "serverName": "example.domain", + "allowInsecure": false + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ] } diff --git a/VMess-Websocket-TLS/config_server.json b/VMess-Websocket-TLS/config_server.json index d1692f4..9816222 100644 --- a/VMess-Websocket-TLS/config_server.json +++ b/VMess-Websocket-TLS/config_server.json @@ -1,91 +1,61 @@ { - "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" + "loglevel": "warning" }, - "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 - } + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + } + ] }, - "outboundDetour": [ + "inbounds": [ { - "tag": "blocked", - "protocol": "blackhole", - "settings": null + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", + "alterId": 4 + } + ], + "disableInsecureEncryption": false + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "", + "headers": { + "Host": "example.domain" + } + }, + "security": "tls", + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/path/to/certificate.crt", + "keyFile": "/path/to/key.key" + } + ] + } + } } ], - "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 + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + }, + { + "protocol": "blackhole", + "tag": "block" } - }, - "dns": null -} \ No newline at end of file + ] +} diff --git a/VMess-Websocket/config_client.json b/VMess-Websocket/config_client.json index c522154..33bf0f1 100644 --- a/VMess-Websocket/config_client.json +++ b/VMess-Websocket/config_client.json @@ -1,111 +1,69 @@ { - "outbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "" - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" + "log": { + "loglevel": "warning" }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ + "routing": { + "domainStratedy": "AsIs", + "rules": [ { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "type": "field", + "ip": [ + "geoip:private" + ], + "tag": "direct" } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "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": [ + "inbounds": [ { - "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" + "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": "vmess", + "settings": { + "vnext": [ + { + "address": "", + "port": 1234, + "user": [ + { + "id": "", + "alterId": 4, + "security": "auto", + "testsEnabled": "VMessAEAD" + } + ] + } + ] + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "", + "headers": { + "Host": "" + } + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "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/VMess-Websocket/config_server.json b/VMess-Websocket/config_server.json index 62e96a7..3b088ad 100644 --- a/VMess-Websocket/config_server.json +++ b/VMess-Websocket/config_server.json @@ -1,84 +1,53 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "inboundDetour": null, - "inbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "" - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" + "log": { + "loglevel": "warning" }, - "listen": null, - "protocol": "vmess", - "port": 1234, - "settings": { - "ip": null, - "udp": true, - "clients": [ + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + } + ] + }, + "inbounds": [ { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "listen": "0.0.0.0", + "port": 1234, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", + "alterId": 4 + } + ], + "disableInsecureEncryption": true + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "", + "headers": { + "Host": "" + } + }, + "security": "none" + } } - ], - "auth": null - } - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ + ], + "outbounds": [ { - "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" + "protocol": "freedom", + "tag": "direct" + }, + { + "protocol": "blackhole", + "tag": "block" } - ], - "domainStrategy": null - } - }, - "dns": null -} \ No newline at end of file + ] +}