{"id":557535,"date":"2022-07-20T11:17:54","date_gmt":"2022-07-20T03:17:54","guid":{"rendered":"http:\/\/4563.org\/?p=557535"},"modified":"2022-07-20T11:17:54","modified_gmt":"2022-07-20T03:17:54","slug":"v2ray-%e4%b8%80%e7%9b%b4%e6%97%a0%e6%b3%95%e8%bf%9e%e6%8e%a5%ef%bc%8c%e6%9c%89%e6%8a%a5%e9%94%99%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=557535","title":{"rendered":"V2Ray \u4e00\u76f4\u65e0\u6cd5\u8fde\u63a5\uff0c\u6709\u62a5\u9519\u4fe1\u606f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Jianrry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>V2Ray \u4e00\u76f4\u65e0\u6cd5\u8fde\u63a5\uff0c\u6709\u62a5\u9519\u4fe1\u606f<\/h3>\n<p>  \t\t\u8fd9\u4e2a\u95ee\u9898\u5df2\u7ecf\u56f0\u6270\u62113\u5929\u4e86\uff0c\u4e00\u76f4\u6ca1\u6709\u89e3\u51b3\uff0c\u8bf7\u6559\u4e00\u4e0b\u5404\u4f4d18cm\u7684mjj\u8be5\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>  \u6211\u4f7f\u7528\u4e86 docker compose \u90e8\u7f72\u4e86 V2Ray \u7684 vmess + tls + ws \u65b9\u6848\uff0c\u5bb9\u5668\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\uff0c\u5374\u4e00\u76f4\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n<p>  \u4e0b\u9762\u7684\u662f\u6211\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u9ebb\u70e6\u5e2e\u5fd9\u770b\u4e00\u4e0b\uff0c\u914d\u7f6e\u662f\u5426\u51fa\u9519\u4e86\u3002<\/p>\n<p>  docker-compose.yml (docker compose \u914d\u7f6e\u6587\u4ef6)<\/p>\n<p>  version: &#8216;3&#8217;<\/p>\n<p>  services:<\/p>\n<p>  &nbsp; &nbsp; nginx:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u955c\u50cf<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;image: nginx<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u5bb9\u5668\u540d<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;container_name: nginx&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;ports:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# 80 \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;80:80&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# 443 \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;443:443&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u6570\u636e\u5377&nbsp; &nbsp; <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;volumes:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# Nginx \u914d\u7f6e\u6587\u4ef6\u5939<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;.\/nginx\/config:\/etc\/nginx\/conf.d&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# Nginx \u7ad9\u70b9\u7684\u6839\u76ee\u5f55<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;.\/nginx\/html:\/html&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# Nginx \u65e5\u5fd7\u6587\u4ef6\u5939<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;.\/nginx\/log:\/log&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# SSL \u8bc1\u4e66\u6587\u4ef6\u5939<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;.\/nginx\/ssl:\/ssl&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u5728\u5bb9\u5668\u9000\u51fa\u65f6\uff0c\u603b\u662f\u91cd\u542f\u5bb9\u5668&nbsp; &nbsp; <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;restart: always <\/p>\n<p>  &nbsp; &nbsp; v2ray:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u955c\u50cf<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;image: v2ray\/official<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u5bb9\u5668\u540d<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;container_name: v2ray&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u6570\u636e\u5377<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;volumes:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# V2Ray \u914d\u7f6e\u6587\u4ef6<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; .\/v2ray\/config\/config.json:\/etc\/v2ray\/config.json<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# V2Ray \u8bbf\u95ee\u65e5\u5fd7\u6587\u4ef6<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; .\/v2ray\/log\/access.log:\/var\/log\/v2ray\/access.log<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# V2Ray \u9519\u8bef\u65e5\u5fd7\u6587\u4ef6<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; .\/v2ray\/log\/error.log:\/var\/log\/v2ray\/error.log&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u5728\u5bb9\u5668\u9000\u51fa\u65f6\uff0c\u603b\u662f\u91cd\u542f\u5bb9\u5668&nbsp; &nbsp; <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;restart: always<\/p>\n<p>  v2ray.conf (Nginx \u914d\u7f6e\u6587\u4ef6)<\/p>\n<p>  server {<\/p>\n<p>  listen 443 ssl;<br \/>  listen [::]:443 ssl;<\/p>\n<p>  ssl_certificate&nbsp; &nbsp;&nbsp; &nbsp; \/path\/to\/cert\/file;<br \/>  ssl_certificate_key&nbsp; &nbsp;\/path\/to\/cert\/file;<br \/>  ssl_session_timeout 1d;<br \/>  ssl_session_cache shared:MozSSL:10m;<br \/>  ssl_session_tickets off;<\/p>\n<p>  ssl_protocols&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;TLSv1.2 TLSv1.3;<br \/>  ssl_ciphers&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;<br \/>  ssl_prefer_server_ciphers off;<\/p>\n<p>  server_name&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;domain.com;<\/p>\n<p>  # \u4e0e V2Ray \u914d\u7f6e\u4e2d\u7684 path \u4fdd\u6301\u4e00\u81f4<br \/>  location \/v2ray { <\/p>\n<p>  &nbsp; &nbsp; # WebSocket\u534f\u5546\u5931\u8d25\u65f6\u8fd4\u56de404<br \/>  &nbsp; &nbsp; if ($http_upgrade != &quot;websocket&quot;) { <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;return 404;<br \/>  &nbsp; &nbsp; }<\/p>\n<p>  &nbsp; &nbsp; proxy_redirect off;<\/p>\n<p>  &nbsp; &nbsp; # \u5047\u8bbeWebSocket\u76d1\u542c\u5728\u73af\u56de\u5730\u5740\u768410000\u7aef\u53e3\u4e0a<br \/>  &nbsp; &nbsp; proxy_pass http:\/\/v2ray:1024; <br \/>  &nbsp; &nbsp; proxy_http_version 1.1;<br \/>  &nbsp; &nbsp; proxy_set_header Upgrade $http_upgrade;<br \/>  &nbsp; &nbsp; proxy_set_header Connection &quot;upgrade&quot;;<br \/>  &nbsp; &nbsp; proxy_set_header Host $host;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; # Show real IP in v2ray access.log<br \/>  &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br \/>  &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/p>\n<p>  }<\/p>\n<p>  # \u8bbf\u95ee\u65e5\u5fd7<br \/>  access_log\/log\/domain.com.log;<\/p>\n<p>  }<\/p>\n<p>  V2Ray \u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  {<br \/>  &quot;log&quot;: {<br \/>  &nbsp; &nbsp; &quot;loglevel&quot;: &quot;warning&quot;,<br \/>  &nbsp; &nbsp; &quot;access&quot;: &quot;\/var\/log\/v2ray\/access.log&quot;, <br \/>  &nbsp; &nbsp; &quot;error&quot;: &quot;\/var\/log\/v2ray\/error.log&quot;<br \/>  },<br \/>  &quot;inbounds&quot;: [<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 1024,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;listen&quot;:&quot;127.0.0.1&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;vmess&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;clients&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;id&quot;: &quot;uuid&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;alterId&quot;: 0<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; }<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;streamSettings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;network&quot;: &quot;ws&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;wsSettings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;path&quot;: &quot;\/v2ray&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; }<br \/>  ],<br \/>  &quot;outbounds&quot;: [<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;freedom&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {}<br \/>  &nbsp; &nbsp; }<br \/>  ]<br \/>  }<\/p>\n<p>  V2Ray \u5ba2\u6237\u7aef\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  \/\/ \u901a\u8fc7 V2RayN \u5bfc\u51fa\u4e3a\u5ba2\u6237\u7aef\u914d\u7f6e\u6587\u4ef6<br \/>  {<br \/>  &quot;policy&quot;: {<br \/>  &nbsp; &nbsp; &quot;system&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;statsOutboundUplink&quot;: true,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;statsOutboundDownlink&quot;: true<br \/>  &nbsp; &nbsp; }<br \/>  },<br \/>  &quot;log&quot;: {<br \/>  &nbsp; &nbsp; &quot;access&quot;: &quot;&quot;,<br \/>  &nbsp; &nbsp; &quot;error&quot;: &quot;&quot;,<br \/>  &nbsp; &nbsp; &quot;loglevel&quot;: &quot;warning&quot;<br \/>  },<br \/>  &quot;inbounds&quot;: [<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;socks&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 10808,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;listen&quot;: &quot;127.0.0.1&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;socks&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;sniffing&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;enabled&quot;: true,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;destOverride&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;http&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;tls&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;auth&quot;: &quot;noauth&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;udp&quot;: true,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;allowTransparent&quot;: false<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; },<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;http&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 10809,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;listen&quot;: &quot;127.0.0.1&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;http&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;sniffing&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;enabled&quot;: true,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;destOverride&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;http&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;tls&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;udp&quot;: false,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;allowTransparent&quot;: false<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; },<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;api&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 59712,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;listen&quot;: &quot;127.0.0.1&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;dokodemo-door&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;udp&quot;: false,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;address&quot;: &quot;127.0.0.1&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;allowTransparent&quot;: false<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; }<br \/>  ],<br \/>  &quot;outbounds&quot;: [<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;proxy&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;vmess&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;vnext&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;address&quot;: &quot;domain.com&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 443,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;users&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;id&quot;: &quot;uuid&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;alterId&quot;: 0,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;email&quot;: &quot;t@t.tt&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;security&quot;: &quot;auto&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; }<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;streamSettings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;network&quot;: &quot;ws&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;security&quot;: &quot;tls&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tlsSettings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;allowInsecure&quot;: true,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;serverName&quot;: &quot;domain.com&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;wsSettings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;path&quot;: &quot;\/v2ray&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;headers&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;Host&quot;: &quot;domain.com&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; }<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;mux&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;enabled&quot;: false,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;concurrency&quot;: -1<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; },<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;direct&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;freedom&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {}<br \/>  &nbsp; &nbsp; },<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;tag&quot;: &quot;block&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;protocol&quot;: &quot;blackhole&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;settings&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;response&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;type&quot;: &quot;http&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; }<br \/>  ],<br \/>  &quot;stats&quot;: {},<br \/>  &quot;api&quot;: {<br \/>  &nbsp; &nbsp; &quot;tag&quot;: &quot;api&quot;,<br \/>  &nbsp; &nbsp; &quot;services&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;StatsService&quot;<br \/>  &nbsp; &nbsp; ]<br \/>  },<br \/>  &quot;routing&quot;: {<br \/>  &nbsp; &nbsp; &quot;domainStrategy&quot;: &quot;IPIfNonMatch&quot;,<br \/>  &nbsp; &nbsp; &quot;domainMatcher&quot;: &quot;linear&quot;,<br \/>  &nbsp; &nbsp; &quot;rules&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;type&quot;: &quot;field&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;inboundTag&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;api&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;],<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;outboundTag&quot;: &quot;api&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;enabled&quot;: true<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;},<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;type&quot;: &quot;field&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: &quot;0-65535&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;outboundTag&quot;: &quot;proxy&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;enabled&quot;: true<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; ]<br \/>  }<br \/>  }<\/p>\n<p>  domain.com.log (Nginx \u65e5\u5fd7\u6587\u4ef6)<\/p>\n<p>  162.142.125.210 &#8211; &#8211;  &quot;GET \/ HTTP\/1.1&quot; 404 153 &quot;-&quot; &quot;-&quot;<br \/>  162.142.125.210 &#8211; &#8211;  &quot;GET \/ HTTP\/1.1&quot; 404 153 &quot;-&quot; &quot;Mozilla\/5.0 (compatible; CensysInspect\/1.1; +https:\/\/about.censys.io\/)&quot;<br \/>  172.70.210.164 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.70.210.164 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<\/p>\n<p>  V2Ray \u670d\u52a1\u7aef\u65e5\u5fd7\u6587\u4ef6<\/p>\n<p>  2022\/07\/19 09:57:02  v2ray.com\/core: V2Ray 4.22.1 started<\/p>\n<p>  V2Ray \u5ba2\u6237\u7aef\u65e5\u5fd7\u6587\u4ef6<\/p>\n<p>  \/\/ \u5728\u8fd9\u91cc\u9644\u4e0a\u5ba2\u6237\u7aef\u65e5\u5fd7<\/p>\n<p>  \u914d\u7f6e\u6210\u529f<br \/>   V2Ray(v2ray***com:443)<br \/>  \u542f\u52a8\u670d\u52a1(2022\/7\/19 18:35:25)&#8230;<br \/>  V2Ray 4.42.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.17.1 windows\/386)<br \/>  A unified platform for anti-**ship.<br \/>  2022\/07\/19 18:35:25  main\/jsonem: Reading config: D:Softwarev2rayN-Coreconfig.json<br \/>  2022\/07\/19 18:35:25  V2Ray 4.42.2 started<br \/>  2022\/07\/19 18:35:25 127.0.0.1:61280 accepted \/\/mtalk.google.com:5228 <br \/>  2022\/07\/19 18:35:25 127.0.0.1:61281 accepted \/\/bl3301.storage.live.com:443 <br \/>  2022\/07\/19 18:35:26 127.0.0.1:61286 accepted tcp:127.0.0.1:0 <br \/>  2022\/07\/19 18:35:30 127.0.0.1:61292 accepted \/\/www.google.com:443 <br \/>  2022\/07\/19 18:35:30 127.0.0.1:61294 accepted \/\/alive.github.com:443 <br \/>  2022\/07\/19 18:35:35 127.0.0.1:61308 accepted \/\/alive.github.com:443 <br \/>  2022\/07\/19 18:35:36   app\/proxyman\/outbound: failed to process outbound traffic &gt; proxy\/vmess\/outbound: failed to find an available destination &gt; common\/retry:  &gt; common\/retry: all retry attempts failed<br \/>  2022\/07\/19 18:35:36 127.0.0.1:61311 accepted \/\/mtalk.google.com:5228 <br \/>  2022\/07\/19 18:35:39   app\/proxyman\/outbound: failed to process outbound traffic &gt; proxy\/vmess\/outbound: failed to find an available destination &gt; common\/retry:  &gt; common\/retry: all retry attempts failed<br \/>  2022\/07\/19 18:35:39 127.0.0.1:61321 accepted \/\/alive.github.com:443 <br \/>  2022\/07\/19 18:35:40   app\/proxyman\/outbound: failed to process outbound traffic &gt; proxy\/vmess\/outbound: failed to find an available destination &gt; common\/retry:  &gt; common\/retry: all retry attempts failed<br \/>  2022\/07\/19 18:35:40 127.0.0.1:61326 accepted \/\/www.google.com:443   \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6469\u5361<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u6469\u5361 \u4e8e 2022-7-20 10:56 \u7f16\u8f91 <\/p>\n<p> \u770b\u4e0bnginx\u7684\u65e5\u5fd7 \u6709\u6ca1\u6709\u8f6c\u53d1\u5230v2\u5bb9\u5668<br \/>  \u53e6\u5916\u6211\u770bv2\u5bb9\u5668\u6ca1\u6709\u914d\u7f6e\u7aef\u53e3\u53f7 \u4f60\u914d\u7f6e\u4e0b\u7aef\u53e3\u6620\u5c04\u89c4\u5219\u8bd5\u8bd5\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>toot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7528aapanrl\u9762\u677f\u5427\u3002\u65b9\u4fbf\u7ba1\u7406https:\/\/daima.eu.org\/post\/bt-v2ray\/\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6c64\u5bb6\u51e4<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u522b\u7684\u4e0d\u8bf4\uff0c\u5148\u6821\u65f6\uff0c\u4fdd\u8bc1\u4e8c\u8005\u76f8\u5dee\u4e0d\u8d85\u8fc790s\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>CC\u5927\u9b54\u738b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdomain.com \u662f\u672c\u6765\u5c31\u662f\u8fd9\u6837\u5199\u7684\uff0c\u8fd8\u662f\u4f60\u6253\u7801\u4e86\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Jianrry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Jianrry \u4e8e 2022-7-20 11:11 \u7f16\u8f91 <\/p>\n<p> \u6469\u5361 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-7-20 10:52<br \/>  \u770b\u4e0bnginx\u7684\u65e5\u5fd7 \u6709\u6ca1\u6709\u8f6c\u53d1\u5230v2\u5bb9\u5668<br \/>  \u53e6\u5916\u6211\u770bv2\u5bb9\u5668\u6ca1\u6709\u914d\u7f6e\u7aef\u53e3\u53f7 \u4f60\u914d\u7f6e\u4e0b\u7aef\u53e3\u6620\u5c04\u89c4\u5219\u8bd5\u8bd5\uff1f &#8230;<\/p>\n<p>  \u6211\u4e0d\u77e5\u9053\u5982\u4f55\u5224\u65ad\u662f\u5426\u8f6c\u53d1\uff0c\u9ebb\u70e6\u5927\u4f6c\u5e2e\u6211\u770b\u4e00\u4e0b\uff0c\u4e0b\u9762\u662f nginx \u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n<p>  162.142.125.210 &#8211; &#8211;  &quot;GET \/ HTTP\/1.1&quot; 404 153 &quot;-&quot; &quot;-&quot;<br \/>  162.142.125.210 &#8211; &#8211;  &quot;GET \/ HTTP\/1.1&quot; 404 153 &quot;-&quot; &quot;Mozilla\/5.0 (compatible; CensysInspect\/1.1; +https:\/\/about.censys.io\/)&quot;<br \/>  172.70.210.164 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.70.210.164 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.68.254.38 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.68.254.38 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.70.214.84 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<br \/>  172.69.33.240 &#8211; &#8211;  &quot;GET \/v2ray HTTP\/1.1&quot; 502 157 &quot;-&quot; &quot;Go-http-client\/1.1&quot;<\/p>\n<p>  \u53e6\u5916\u6211\u770bv2\u5bb9\u5668\u6ca1\u6709\u914d\u7f6e\u7aef\u53e3\u53f7 \u4f60\u914d\u7f6e\u4e0b\u7aef\u53e3\u6620\u5c04\u89c4\u5219\u8bd5\u8bd5\uff1f<\/p>\n<p>  v2 \u5bb9\u5668\u7528\u7684\u662f 1024 \u7aef\u53e3\uff0c\u901a\u8fc7 nginx \u53cd\u5411\u4ee3\u7406\u8f6c\u53d1\u5230 443 \u7aef\u53e3\uff0c443 \u7aef\u53e3\u6620\u5c04\u4e3a\u672c\u673a\u7684 443 \u7aef\u53e3\uff0c\u8fd9\u4e2a\u5df2\u7ecf\u914d\u7f6e\u4e86\u3002<\/p>\n<p>  V2Ray \u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  &#8230;<br \/>   &quot;inbounds&quot;: [<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;port&quot;: 1024,<br \/>  &#8230;<\/p>\n<p>  v2ray.conf (Nginx \u914d\u7f6e\u6587\u4ef6)<\/p>\n<p>  &#8230;<br \/>  &nbsp; &nbsp; # \u5047\u8bbeWebSocket\u76d1\u542c\u5728\u73af\u56de\u5730\u5740\u768410000\u7aef\u53e3\u4e0a<br \/>  &nbsp; &nbsp; proxy_pass http:\/\/v2ray:1024;<br \/>  &#8230;<\/p>\n<p>  docker-compose.yml (docker compose \u914d\u7f6e\u6587\u4ef6)<\/p>\n<p>  &#8230;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;ports:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# 80 \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;80:80&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;# 443 \u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8211; &quot;443:443&quot;<br \/>  &#8230;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Jianrry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\ttoot \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-7-20 10:52<br \/>  \u7528aapanrl\u9762\u677f\u5427\u3002\u65b9\u4fbf\u7ba1\u7406https:\/\/daima.eu.org\/post\/bt-v2ray\/<\/p>\n<p> \u4e0d\u4e60\u60ef\u7528\u9762\u677f\uff0c\u4e60\u60ef\u7528 docker \u4e00\u628a\u68ad\u4e86\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Jianrry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6c64\u5bb6\u51e4 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-7-20 11:01<br \/>  \u522b\u7684\u4e0d\u8bf4\uff0c\u5148\u6821\u65f6\uff0c\u4fdd\u8bc1\u4e8c\u8005\u76f8\u5dee\u4e0d\u8d85\u8fc790s<\/p>\n<p> \u5df2\u7ecf\u4fee\u6539\u65f6\u533a \u548c \u6821\u65f6 \u4e86\uff0c\u670d\u52a1\u5668\u65f6\u95f4\u548c\u672c\u673a\u65f6\u95f4\u76f8\u5dee\u4e0d\u52301min.\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e00\u9897\u8d5b\u8247<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tnginx \u62a5\u9519502 \u8bf4\u660e\u8fde\u63a5\u4e0d\u5230\u540e\u7aef<\/p>\n<p>  \u518d\u770b\u4f60\u7684docker compose\u6587\u4ef6\uff0c\u4e24\u4e2a\u5bb9\u5668\u4e4b\u95f4\u6ca1\u6709\u5b9a\u4e49\u5173\u8054\u7f51\u7edc\uff0c\u4e24\u4e2a\u5bb9\u5668\u7f51\u7edc\u662f\u4e0d\u901a\u7684<\/p>\n<p>  \u8981\u4e48\u7528link\u5173\u8054 \u8981\u4e48\u5b9a\u4e49\u4e00\u4e2a\u7f51\u7edc\u4e24\u4e2a\u5bb9\u5668\u52a0\u5165<\/p>\n<p>  \u53c2\u8003 https:\/\/docs.docker.com\/compose\/networking\/\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Jianrry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tCC\u5927\u9b54\u738b \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-7-20 11:04<br \/>  domain.com \u662f\u672c\u6765\u5c31\u662f\u8fd9\u6837\u5199\u7684\uff0c\u8fd8\u662f\u4f60\u6253\u7801\u4e86\u7684<\/p>\n<p> \u6253\u4e86\u7801\uff0c\u5c06 \u6211\u7684\u57df\u540d\u4fee\u6539\u4e3a\u4e86 domain.com \uff0c\u4e3a\u4e86\u9632\u6b62\u522b\u4eba\u6076\u610f\u653b\u51fb\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jianrry \u5927\u4f6c\u6709\u8bdd\u8bf4 : V&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/557535"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=557535"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/557535\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=557535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=557535"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=557535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}