{"id":1067,"date":"2025-07-24T20:31:04","date_gmt":"2025-07-25T03:31:04","guid":{"rendered":"https:\/\/www.sandcomp.com\/blog\/?p=1067"},"modified":"2025-07-24T21:38:09","modified_gmt":"2025-07-25T04:38:09","slug":"%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/www.sandcomp.com\/blog\/2025\/07\/24\/%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab\/","title":{"rendered":"\u5728\u56fd\u5185\u5916\u81ea\u7531\u8bbf\u95ee\u5e38\u7528\u670d\u52a1\u7684\u7f51\u7edc\u4f18\u5316\u7ecf\u9a8c\u5206\u4eab"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><h2>\u524d\u8a00<\/h2>\n<p>\u6211\u5e38\u5e74\u5728\u56fd\u5916\u751f\u6d3b\uff0c\u559c\u6b22\u5728\u559c\u9a6c\u62c9\u96c5\u4e0a\u542c\u6709\u58f0\u4e66\u3001\u5e7f\u64ad\u5267\u653e\u677e\u4e00\u4e0b\u3002\u4f46\u6709\u4e9b\u8d44\u6e90\u5728\u6d77\u5916\u53d7\u9650\uff0c\u4e0d\u80fd\u76f4\u63a5\u6536\u542c\uff0c\u633a\u4e0d\u65b9\u4fbf\u7684\u3002\n\u53cd\u8fc7\u6765\uff0c\u6bcf\u6b21\u56de\u56fd\u63a2\u4eb2\u65f6\uff0c\u6211\u65e5\u5e38\u4f7f\u7528\u7684 Gmail\u3001Google Docs\u3001YouTube\u3001ChatGPT \u7b49\u670d\u52a1\u53c8\u7ecf\u5e38\u65e0\u6cd5\u8bbf\u95ee\uff0c\u751f\u6d3b\u548c\u5de5\u4f5c\u90fd\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n<p>\u5c1d\u8bd5\u8fc7\u4e00\u4e9b\u4ed8\u8d39 VPN \u6216\u52a0\u901f\u670d\u52a1\uff0c\u4f46\u8981\u4e48\u4ef7\u683c\u4e0d\u4f4e\uff0c\u8981\u4e48\u7a33\u5b9a\u6027\u4e0d\u4f73\u3002\u4e8e\u662f\u6211\u5f00\u59cb\u7814\u7a76\u4e00\u4e9b\u7f51\u7edc\u4f18\u5316\u65b9\u6848\uff0c\u81ea\u5df1\u52a8\u624b\u642d\u5efa\u300c\u53cc\u5411\u8bbf\u95ee\u300d\u73af\u5883\uff0c\u65e2\u80fd\u5728\u56fd\u5916\u7528\u56fd\u5185\u7684\u5e94\u7528\uff0c\u53c8\u80fd\u5728\u56fd\u5185\u8bbf\u95ee\u5e38\u7528\u7684\u56fd\u9645\u7f51\u7ad9\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u7b97\u662f\u6211\u7684\u7ecf\u9a8c\u8bb0\u5f55\uff0c\u5206\u4eab\u4e00\u4e9b\u6280\u672f\u601d\u8def\u548c\u5de5\u5177\uff0c\u5e2e\u52a9\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u5c11\u8d70\u5f2f\u8def\u3002\u6240\u6709\u65b9\u6cd5\u4ec5\u7528\u4e8e\u4e2a\u4eba\u5b66\u4e60\u548c\u7f51\u7edc\u4f18\u5316\uff0c\u8bf7\u52ff\u7528\u4e8e\u8fdd\u53cd\u5e73\u53f0\u653f\u7b56\u7684\u7528\u9014\u3002<\/p>\n<hr>\n<h2>Part 1\uff1a\u56fd\u5916\u8bbf\u95ee\u56fd\u5185\u8d44\u6e90\uff08Shadowsocks + \u963f\u91cc\u4e91 ECS\uff09<\/h2>\n<h3>\u6b65\u9aa4 1\uff1a\u8d2d\u4e70\u963f\u91cc\u4e91 ECS<\/h3>\n<ol>\n<li>\u767b\u5f55 <a href=\"https:\/\/www.aliyun.com\/\">\u963f\u91cc\u4e91\u5b98\u7f51<\/a>\u3002<\/li>\n<li>\u6ce8\u518c\u5e76\u5b8c\u6210\u5b9e\u540d\u8ba4\u8bc1\u3002<\/li>\n<li>\u9009\u62e9 \u201c\u4e91\u670d\u52a1\u5668 ECS\u201d -&gt; \u201c\u7acb\u5373\u8d2d\u4e70\u201d\u3002<\/li>\n<li>\u9009\u62e9 <strong>\u5730\u57df\uff1a\u5317\u4eac\u3001\u676d\u5dde\u6216\u4e0a\u6d77<\/strong>\u3002<\/li>\n<li>\u7cfb\u7edf\u955c\u50cf\uff1a<strong>Ubuntu 22.04 LTS<\/strong>\u3002<\/li>\n<li>\u914d\u7f6e\uff1a1\u6838 1GB \u5185\u5b58\u5373\u53ef\uff0c\u5e26\u5bbd\u9009 1~3 Mbps\u3002<\/li>\n<li>\u786e\u8ba4\u8ba2\u5355\u5e76\u8d2d\u4e70\u3002<\/li>\n<\/ol>\n<blockquote>\n<p><strong>\u63d0\u793a\uff1a<\/strong> \u4e0d\u9700\u8981\u5907\u6848\uff0c\u56e0\u4e3a\u8fd9\u91cc\u53ea\u662f\u8dd1\u4ee3\u7406\u670d\u52a1\u3002<\/p>\n<\/blockquote>\n<h3>\u6b65\u9aa4 2\uff1a\u5b89\u88c5 Shadowsocks \u670d\u52a1\u7aef<\/h3>\n<p>SSH \u767b\u5f55\u670d\u52a1\u5668\uff1a<\/p>\n<pre><code class=\"language-bash\">ssh root@&lt;\u4f60\u7684ECS\u516c\u7f51IP&gt;\n<\/code><\/pre>\n<p>\u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5 Shadowsocks\uff1a<\/p>\n<pre><code class=\"language-bash\">sudo apt update &amp;&amp; sudo apt upgrade -y\nsudo apt install shadowsocks-libev -y\n<\/code><\/pre>\n<p>\u914d\u7f6e <code>\/etc\/shadowsocks-libev\/config.json<\/code>\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;server&quot;:&quot;0.0.0.0&quot;,\n  &quot;server_port&quot;:8388,\n  &quot;password&quot;:&quot;&lt;your_password&gt;&quot;,  \/\/ \u8bf7\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u5bc6\u7801\n  &quot;timeout&quot;:300,\n  &quot;method&quot;:&quot;aes-256-gcm&quot;\n}\n<\/code><\/pre>\n<p>\u542f\u52a8 Shadowsocks\uff1a<\/p>\n<pre><code class=\"language-bash\">sudo systemctl enable shadowsocks-libev\nsudo systemctl restart shadowsocks-libev\n<\/code><\/pre>\n<h3>\u6b65\u9aa4 3\uff1a\u5b89\u5168\u7ec4\u4e0e\u9632\u706b\u5899<\/h3>\n<ul>\n<li>\u963f\u91cc\u4e91\u63a7\u5236\u53f0 -&gt; ECS -&gt; \u5b89\u5168\u7ec4 -&gt; \u6dfb\u52a0\u89c4\u5219\uff1a\u5f00\u653e TCP\/UDP 8388 \u7aef\u53e3\u3002<\/li>\n<li>\u670d\u52a1\u5668\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">sudo ufw allow 8388\/tcp\nsudo ufw allow 8388\/udp\nsudo ufw enable\n<\/code><\/pre>\n<h3>\u6b65\u9aa4 4\uff1a\u5ba2\u6237\u7aef\u914d\u7f6e<\/h3>\n<h4>iPhone\/iPad\uff08Shadowrocket\uff09<\/h4>\n<ol>\n<li>\n<p>\u4ece App Store \u4e0b\u8f7d Shadowrocket\uff08\u4ed8\u8d39\u5e94\u7528\uff0c\u4ef7\u683c\u5408\u7406\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u670d\u52a1\u5668\uff1a<\/p>\n<ul>\n<li>\u7c7b\u578b\uff1aShadowsocks<\/li>\n<li>\u5730\u5740\uff1a\u4f60\u7684 ECS IP<\/li>\n<li>\u7aef\u53e3\uff1a8388<\/li>\n<li>\u5bc6\u7801\uff1a&lt;your_password&gt;<\/li>\n<li>\u52a0\u5bc6\uff1aaes-256-gcm<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bfc\u5165\u201c\u56de\u56fd\u89c4\u5219\u201d\uff1a<\/p>\n<ul>\n<li>\u7535\u8111\u6253\u5f00 <a href=\"https:\/\/github.com\/Johnshall\/Shadowrocket-ADBlock-Rules-Forever?tab=readme-ov-file#%E5%9B%9E%E5%9B%BD%E8%A7%84%E5%88%99\">\u56de\u56fd\u89c4\u5219\u94fe\u63a5<\/a><\/li>\n<li>Shadowrocket -&gt; \u914d\u7f6e -&gt; \u70b9\u51fb\u53f3\u4e0a\u89d2\u4e8c\u7ef4\u7801 -&gt; \u626b\u63cf\u7535\u8111\u4e0a\u7684\u4e8c\u7ef4\u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>macOS\/Windows\uff08Clash Verge\uff09<\/h4>\n<ol>\n<li>\u4e0b\u8f7d <a href=\"https:\/\/github.com\/zzzgydi\/clash-verge\">Clash Verge<\/a>\u3002<\/li>\n<li>\u7f16\u8f91 <code>config.yaml<\/code> \u6587\u4ef6\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-yaml\">port: 7890\nsocks-port: 7891\nallow-lan: true\nmode: rule\nlog-level: info\nproxies:\n  - name: &quot;CN-SS&quot;\n    type: ss\n    server: &lt;\u4f60\u7684ECS IP&gt;\n    port: 8388\n    cipher: aes-256-gcm\n    password: &lt;your_password&gt;\nproxy-groups:\n  - name: &quot;Proxy&quot;\n    type: select\n    proxies:\n      - &quot;CN-SS&quot;\n      - DIRECT\nrules:\n  - DOMAIN-SUFFIX,ximalaya.com,Proxy\n  - DOMAIN-SUFFIX,bilibili.com,Proxy\n  - GEOIP,CN,Proxy\n  - MATCH,DIRECT\n<\/code><\/pre>\n<ol start=\"3\">\n<li>Clash Verge -&gt; \u914d\u7f6e\u6587\u4ef6 -&gt; \u5bfc\u5165\u8be5 YAML \u6587\u4ef6\u3002<\/li>\n<\/ol>\n<hr>\n<h2>Part 2\uff1a\u56fd\u5185\u8bbf\u95ee\u56fd\u9645\u8d44\u6e90\uff08V2Ray + TLS + WS + AWS EC2\uff09<\/h2>\n<h3>\u4e3a\u4ec0\u4e48\u8981\u914d\u7f6e\u57df\u540d\u548c SSL \u8bc1\u4e66\uff1f<\/h3>\n<p>TLS \u53ef\u4ee5\u4f2a\u88c5\u6210\u666e\u901a HTTPS \u6d41\u91cf\uff0c\u907f\u514d\u88ab\u62e6\u622a\u3002\u57df\u540d\u4e0e\u8bc1\u4e66\u8ba9\u670d\u52a1\u66f4\u7a33\u5b9a\u3001\u5b89\u5168\u3002<\/p>\n<h3>\u6b65\u9aa4 1\uff1aAWS EC2<\/h3>\n<ol>\n<li>\u6ce8\u518c <a href=\"https:\/\/aws.amazon.com\/\">AWS<\/a>\u3002<\/li>\n<li>\u521b\u5efa Ubuntu 24.04 LTS \u5b9e\u4f8b\uff0c\u5f00\u653e 80\/443 \u7aef\u53e3\u3002<\/li>\n<\/ol>\n<h3>\u6b65\u9aa4 2\uff1a\u57df\u540d\u4e0e SSL\uff08Certbot\uff09<\/h3>\n<ol>\n<li>\u5c06\u57df\u540d\u89e3\u6790\u5230 EC2 IP\u3002<\/li>\n<li>\u5b89\u88c5 Nginx \u4e0e Certbot\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">sudo apt install nginx certbot python3-certbot-nginx -y\nsudo certbot --nginx -d your_domain.com\n<\/code><\/pre>\n<h3>\u6b65\u9aa4 3\uff1a\u5b89\u88c5 V2Ray \u5e76\u751f\u6210 UUID<\/h3>\n<pre><code class=\"language-bash\">cat \/proc\/sys\/kernel\/random\/uuid  # \u590d\u5236UUID\nbash &lt;(curl -Ls https:\/\/raw.githubusercontent.com\/v2fly\/fhs-install-v2ray\/master\/install-release.sh)\n<\/code><\/pre>\n<p>\u7f16\u8f91 <code>\/usr\/local\/etc\/v2ray\/config.json<\/code> \u5e76\u66ff\u6362 <code>&lt;your-uuid&gt;<\/code>\u3002<\/p>\n<h3>\u6b65\u9aa4 4\uff1aNginx \u53cd\u5411\u4ee3\u7406<\/h3>\n<p>\u914d\u7f6e <code>\/etc\/nginx\/sites-enabled\/default<\/code>\uff1a<\/p>\n<pre><code class=\"language-nginx\">location \/ray {\n    proxy_pass http:\/\/127.0.0.1:10000;\n    proxy_http_version 1.1;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection &quot;upgrade&quot;;\n}\n<\/code><\/pre>\n<h3>\u6b65\u9aa4 5\uff1a\u5ba2\u6237\u7aef\u914d\u7f6e<\/h3>\n<h4>Shadowrocket<\/h4>\n<ul>\n<li>\u7c7b\u578b\uff1aVmess<\/li>\n<li>\u5730\u5740\uff1ayour_domain.com<\/li>\n<li>\u7aef\u53e3\uff1a443<\/li>\n<li>\u7528\u6237ID\uff1a&lt;your-uuid&gt;<\/li>\n<li>TLS\uff1a\u5f00\u542f<\/li>\n<li>\u8def\u5f84\uff1a\/ray<\/li>\n<\/ul>\n<h4>Clash Verge \u793a\u4f8b\uff1a<\/h4>\n<pre><code class=\"language-yaml\">proxies:\n  - name: &quot;US-V2Ray&quot;\n    type: vmess\n    server: your_domain.com\n    port: 443\n    uuid: &lt;your-uuid&gt;\n    tls: true\n    network: ws\n    ws-opts:\n      path: \/ray\n<\/code><\/pre>\n<hr>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u901a\u8fc7\u8fd9\u5957\u65b9\u6848\uff0c\u6211\u5728\u56fd\u5916\u80fd\u7528\u559c\u9a6c\u62c9\u96c5\u3001Bilibili\uff1b\u56de\u56fd\u65f6 Gmail\u3001Google\u3001YouTube \u4e5f\u80fd\u6b63\u5e38\u8bbf\u95ee\u3002\u5982\u679c\u4f60\u6709\u7591\u95ee\u6216\u5efa\u8bae\uff0c\u6b22\u8fce\u5728\u7559\u8a00\u533a\u5206\u4eab\u4f60\u7684\u60f3\u6cd5\uff01<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[],"class_list":["post-1067","post","type-post","status-publish","format-standard","hentry","category-12"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/1067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/comments?post=1067"}],"version-history":[{"count":5,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/1067\/revisions"}],"predecessor-version":[{"id":1073,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/1067\/revisions\/1073"}],"wp:attachment":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/media?parent=1067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/categories?post=1067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/tags?post=1067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}