From af746f90749e95439e63d5a347241d3761e8be79 Mon Sep 17 00:00:00 2001 From: kirikira Date: Sat, 25 Nov 2017 19:43:00 +0800 Subject: [PATCH] edit README --- README.md | 5 +- TCP/config_client.json | 106 ++++++++++++++++ TCP/config_server.json | 79 ++++++++++++ http/config_client.json | 149 +++++++++++++++++++++++ http/config_server.json | 123 +++++++++++++++++++ mKcp 伪装微信视频流量/config_client.json | 119 ++++++++++++++++++ mKcp 伪装微信视频流量/config_server.json | 92 ++++++++++++++ mKcp/config_client.json | 119 ++++++++++++++++++ mKcp/config_server.json | 92 ++++++++++++++ websocket+TLS/config_client.json | 112 +++++++++++++++++ websocket+TLS/config_server.json | 99 +++++++++++++++ websocket+caddy+tls/Caddyfile | 10 ++ websocket+caddy+tls/config_client.json | 113 +++++++++++++++++ websocket+caddy+tls/config_server.json | 90 ++++++++++++++ websocket/config_client.json | 111 +++++++++++++++++ websocket/config_server.json | 85 +++++++++++++ 16 files changed, 1503 insertions(+), 1 deletion(-) create mode 100644 TCP/config_client.json create mode 100644 TCP/config_server.json create mode 100644 http/config_client.json create mode 100644 http/config_server.json create mode 100644 mKcp 伪装微信视频流量/config_client.json create mode 100644 mKcp 伪装微信视频流量/config_server.json create mode 100644 mKcp/config_client.json create mode 100644 mKcp/config_server.json create mode 100755 websocket+TLS/config_client.json create mode 100644 websocket+TLS/config_server.json create mode 100644 websocket+caddy+tls/Caddyfile create mode 100755 websocket+caddy+tls/config_client.json create mode 100644 websocket+caddy+tls/config_server.json create mode 100644 websocket/config_client.json create mode 100644 websocket/config_server.json diff --git a/README.md b/README.md index 8317df2..6d9b8de 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,12 @@ 这是一个社会实验性质的项目,提供数种常见的v2ray配置模板 ----------------------------------- 这两天雨落无声大佬的[v2ray.fun](https://github.com/FunctionClub/v2ray.fun)宣布弃坑,再次引发了v2ray水群里大佬关于一键脚本和伸手党的讨论。在讨论过程中,提出了一个有趣的命题: + 一键脚本是否会助长伸手之风?如果会,我们不提供一键脚本而只提供模板的话,情况是否又会好些? + 于是,这个项目就诞生了。在这里收录一些常用的v2ray配置模板,这些配置多由v2ray.fun生成,在这基础上加上少许改动。 -在你套用模板之前,请先仔细阅读v2ray官方文档,如果可能,尽量尝试不借助模板字节编写配置文件,以加深对配置的理解。 +在你套用模板之前,请先仔细阅读v2ray官方文档,如果可能,尽量尝试不借助模板自己编写配置文件,以加深对配置的理解。 + 如果你在配置过程中遇到问题,请再看一遍文档,或是在Google搜索以求自己解决问题。当你确认你的问题无法独立解决时,你可以在v2ray的telegram群组里求助,或是在v2ray官方项目中提交issue。 遇事不决,请RTFM/STFW。 玩的愉快。 diff --git a/TCP/config_client.json b/TCP/config_client.json new file mode 100644 index 0000000..c76ec15 --- /dev/null +++ b/TCP/config_client.json @@ -0,0 +1,106 @@ +{ + "outbound": { + "streamSettings": { + "network": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": [ + { + "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/TCP/config_server.json b/TCP/config_server.json new file mode 100644 index 0000000..1a00eb3 --- /dev/null +++ b/TCP/config_server.json @@ -0,0 +1,79 @@ +{ + "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": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "listen": null, + "protocol": "vmess", + "port": 1234, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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/http/config_client.json b/http/config_client.json new file mode 100644 index 0000000..e49f60c --- /dev/null +++ b/http/config_client.json @@ -0,0 +1,149 @@ +{ + "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": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": [ + { + "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/http/config_server.json b/http/config_server.json new file mode 100644 index 0000000..5d3a75f --- /dev/null +++ b/http/config_server.json @@ -0,0 +1,123 @@ +{ + "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" + ] + } + }, + "type": "http", + "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" + } + }, + "connectionReuse": true + }, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "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": [ + { + "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 new file mode 100644 index 0000000..c7fc85b --- /dev/null +++ b/mKcp 伪装微信视频流量/config_client.json @@ -0,0 +1,119 @@ +{ + "outbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "srtp", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": [ + { + "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/mKcp 伪装微信视频流量/config_server.json b/mKcp 伪装微信视频流量/config_server.json new file mode 100644 index 0000000..8d28eae --- /dev/null +++ b/mKcp 伪装微信视频流量/config_server.json @@ -0,0 +1,92 @@ +{ + "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": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "request": null, + "type": "srtp", + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "listen": null, + "protocol": "vmess", + "port": 1234, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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/mKcp/config_client.json b/mKcp/config_client.json new file mode 100644 index 0000000..2f0e3bb --- /dev/null +++ b/mKcp/config_client.json @@ -0,0 +1,119 @@ +{ + "outbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "none", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": [ + { + "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/mKcp/config_server.json b/mKcp/config_server.json new file mode 100644 index 0000000..96cd7cd --- /dev/null +++ b/mKcp/config_server.json @@ -0,0 +1,92 @@ +{ + "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": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "request": null, + "type": "none", + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "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": [ + { + "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+TLS/config_client.json b/websocket+TLS/config_client.json new file mode 100755 index 0000000..4cf8f14 --- /dev/null +++ b/websocket+TLS/config_client.json @@ -0,0 +1,112 @@ +{ + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "tls" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true, + "concurrency": 8 + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "port": 443, + "address": "example.domain" + } + ] + } + }, + "log": { + "access": "", + "loglevel": "debug", + "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": 10086, + "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" + ] + } +} diff --git a/websocket+TLS/config_server.json b/websocket+TLS/config_server.json new file mode 100644 index 0000000..d25ef83 --- /dev/null +++ b/websocket+TLS/config_server.json @@ -0,0 +1,99 @@ +{ + "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": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "srtp", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": { + "certificates": [ + { + "keyFile": "/path/to/example.domain.key", + "certificateFile": "/path/to/example.domain/fullchain.cer" + } + ] + }, + "security": "tls" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "auth": null + }, + "protocol": "vmess", + "port": 443, + "listen": null + }, + "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" + } + ], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null +} \ No newline at end of file diff --git a/websocket+caddy+tls/Caddyfile b/websocket+caddy+tls/Caddyfile new file mode 100644 index 0000000..68adcab --- /dev/null +++ b/websocket+caddy+tls/Caddyfile @@ -0,0 +1,10 @@ +https://example.domain { + root /usr/local/caddy/www/aria2 + timeouts none + tls kiri_so@outlook.com + gzip + proxy /test localhost:1234 { + websocket + header_upstream -Origin + } +} diff --git a/websocket+caddy+tls/config_client.json b/websocket+caddy+tls/config_client.json new file mode 100755 index 0000000..510d4cf --- /dev/null +++ b/websocket+caddy+tls/config_client.json @@ -0,0 +1,113 @@ +{ + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "/test" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "tls" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true, + "concurrency": 8 + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": 10086, + "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" + ] + } + } + diff --git a/websocket+caddy+tls/config_server.json b/websocket+caddy+tls/config_server.json new file mode 100644 index 0000000..7e3e2d5 --- /dev/null +++ b/websocket+caddy+tls/config_server.json @@ -0,0 +1,90 @@ +{ + "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": "direct", + "protocol": "freedom", + "settings": null + }, + { + "tag": "blocked", + "protocol": "blackhole", + "settings": null + } + ], + "inbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "/test", + "connectionReuse": true + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "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": [ + { + "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 +} diff --git a/websocket/config_client.json b/websocket/config_client.json new file mode 100644 index 0000000..7eae8c9 --- /dev/null +++ b/websocket/config_client.json @@ -0,0 +1,111 @@ +{ + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [ + { + "users": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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": [ + { + "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/websocket/config_server.json b/websocket/config_server.json new file mode 100644 index 0000000..8f22891 --- /dev/null +++ b/websocket/config_server.json @@ -0,0 +1,85 @@ +{ + "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": "", + "connectionReuse": true + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "listen": null, + "protocol": "vmess", + "port": 1234, + "settings": { + "ip": null, + "udp": true, + "clients": [ + { + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + } + ], + "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