{"id":55279,"date":"2025-02-18T12:26:23","date_gmt":"2025-02-18T04:26:23","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55279\/"},"modified":"2025-02-18T12:26:23","modified_gmt":"2025-02-18T04:26:23","slug":"%e5%9c%a8google-cloud%e4%b8%8a%e9%85%8d%e7%bd%aeshadowsocks%e9%98%b2%e7%81%ab%e5%a2%99%e7%9a%84%e5%85%a8%e9%9d%a2%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55279\/","title":{"rendered":"\u5728Google Cloud\u4e0a\u914d\u7f6eShadowsocks\u9632\u706b\u5899\u7684\u5168\u9762\u6307\u5357"},"content":{"rendered":"<h2>\u76ee\u5f55<\/h2>\n<ol>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ol>\n<h2>\u4ec0\u4e48\u662fShadowsocks\uff1f<\/h2>\n<p><em>Shadowsocks<\/em>\u662f\u4e00\u79cd\u5f00\u6e90\u4ee3\u7406\u5de5\u5177\uff0c\u901a\u5e38\u7528\u4e8e\u7ffb\u5899\u548c\u4fdd\u62a4\u7528\u6237\u7684\u9690\u79c1\u3002\u5b83\u4f7f\u7528\u4e86\u52a0\u5bc6\u534f\u8bae\uff0c\u53ef\u4ee5\u5b89\u5168\u5730\u4f20\u8f93\u6570\u636e\uff0c\u907f\u514d\u88ab\u76d1\u63a7\u3002\u7531\u4e8e\u5176\u9ad8\u6548\u6027\uff0c<em>Shadowsocks<\/em>\u5728\u5168\u7403\u8303\u56f4\u5185\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\uff0c\u5c24\u5176\u662f\u5728\u4e92\u8054\u7f51\u5ba1\u67e5\u4e25\u683c\u7684\u56fd\u5bb6\u3002<\/p>\n<h2>Google Cloud\u5e73\u53f0\u7b80\u4ecb<\/h2>\n<p><em>Google Cloud<\/em>\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u4e91\u8ba1\u7b97\u5e73\u53f0\uff0c\u63d0\u4f9b\u591a\u79cd\u670d\u52a1\uff0c\u5305\u62ec\u8ba1\u7b97\u3001\u5b58\u50a8\u548c\u5927\u6570\u636e\u5206\u6790\u3002\u7528\u6237\u53ef\u4ee5\u5229\u7528\u5176\u5f3a\u5927\u7684\u57fa\u7840\u8bbe\u65bd\u6765\u642d\u5efa\u5404\u79cd\u5e94\u7528\uff0c<em>Google Cloud<\/em>\u7684\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u4f7f\u5176\u6210\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u7684\u70ed\u95e8\u9009\u62e9\u3002<\/p>\n<h2>\u4e3a\u4f55\u9700\u8981\u5728Google Cloud\u4e0a\u4f7f\u7528Shadowsocks\uff1f<\/h2>\n<p>\u5728<em>Google Cloud<\/em>\u4e0a\u4f7f\u7528<em>Shadowsocks<\/em>\u6709\u51e0\u4e2a\u91cd\u8981\u7684\u7406\u7531\uff1a<\/p>\n<ul>\n<li><strong>\u5b89\u5168\u6027<\/strong>\uff1a<em>Shadowsocks<\/em>\u901a\u8fc7\u52a0\u5bc6\u6570\u636e\u6d41\u91cf\uff0c\u63d0\u9ad8\u7528\u6237\u7684\u7f51\u7edc\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>\u901f\u5ea6<\/strong>\uff1a\u7531\u4e8e<em>Google Cloud<\/em>\u62e5\u6709\u5168\u7403\u6570\u636e\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u5ef6\u8fdf\uff0c\u63d0\u9ad8\u8bbf\u95ee\u901f\u5ea6\u3002<\/li>\n<li><strong>\u53ef\u63a7\u6027<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u884c\u8bbe\u7f6e\u548c\u7ba1\u7406<em>Shadowsocks<\/em>\u7684\u914d\u7f6e\uff0c\u63d0\u5347\u7075\u6d3b\u6027\u3002<\/li>\n<\/ul>\n<h2>Shadowsocks\u7684\u57fa\u672c\u914d\u7f6e<\/h2>\n<p>\u5728\u5f00\u59cb\u8bbe\u7f6e\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u62e5\u6709\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>\u4e00\u4e2aGoogle Cloud\u8d26\u6237<\/li>\n<li>\u4e00\u4e2a\u53ef\u4ee5\u4f7f\u7528\u7684\u865a\u62df\u673a\uff08VM\uff09<\/li>\n<li>\u57fa\u672c\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u77e5\u8bc6<\/li>\n<\/ul>\n<h3>Shadowsocks\u670d\u52a1\u5668\u914d\u7f6e<\/h3>\n<ol>\n<li><strong>\u9009\u62e9\u5408\u9002\u7684\u670d\u52a1\u5668\u7c7b\u578b<\/strong>\uff1a\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684<em>VM<\/em>\u7c7b\u578b\u3002<\/li>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56\u9879<\/strong>\uff1a\u786e\u4fdd\u4f60\u7684\u865a\u62df\u673a\u4e2d\u5b89\u88c5\u4e86Python\u53ca\u76f8\u5173\u4f9d\u8d56\u3002<\/li>\n<li><strong>\u4e0b\u8f7dShadowsocks<\/strong>\uff1a\u4f7f\u7528Git\u514b\u9686\u6216\u76f4\u63a5\u4e0b\u8f7d<em>Shadowsocks<\/em>\u7684\u4ee3\u7801\u5e93\u3002<\/li>\n<li><strong>\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u7f16\u8f91Shadowsocks\u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u5b9a\u7aef\u53e3\u3001\u52a0\u5bc6\u65b9\u5f0f\u7b49\u3002<\/li>\n<\/ol>\n<h2>\u5728Google Cloud\u4e0a\u8bbe\u7f6eShadowsocks<\/h2>\n<h3>\u6b65\u9aa4\u4e00\uff1a\u521b\u5efa\u865a\u62df\u673a\u5b9e\u4f8b<\/h3>\n<ul>\n<li>\u767b\u5f55Google Cloud\u63a7\u5236\u53f0\uff0c\u5bfc\u822a\u5230Compute Engine\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u521b\u5efa\u5b9e\u4f8b\u201d\uff0c\u9009\u62e9\u5408\u9002\u7684\u673a\u5668\u7c7b\u578b\u548c\u64cd\u4f5c\u7cfb\u7edf\u3002<\/li>\n<li>\u5728\u9632\u706b\u5899\u9009\u9879\u4e2d\uff0c\u52fe\u9009\u201c\u5141\u8bb8HTTP\u6d41\u91cf\u201d\u548c\u201c\u5141\u8bb8HTTPS\u6d41\u91cf\u201d\u3002<\/li>\n<\/ul>\n<h3>\u6b65\u9aa4\u4e8c\uff1a\u5b89\u88c5Shadowsocks<\/h3>\n<ul>\n<li>\n<p>SSH\u8fdb\u5165\u4f60\u7684\u865a\u62df\u673a\u5b9e\u4f8b\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u547d\u4ee4\u5b89\u88c5<em>Shadowsocks<\/em>\uff1a bash sudo apt-get update sudo apt-get install shadowsocks<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6eShadowsocks\uff0c\u8bbe\u7f6e\u670d\u52a1\u5668\u7aef\u53e3\u548c\u52a0\u5bc6\u65b9\u5f0f\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u5982\u4f55\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p>\u5728<em>Google Cloud<\/em>\u4e0a\uff0c\u6b63\u786e\u914d\u7f6e\u9632\u706b\u5899\u662f\u786e\u4fdd<em>Shadowsocks<\/em>\u6b63\u5e38\u8fd0\u884c\u7684\u5173\u952e\u6b65\u9aa4\u3002<\/p>\n<ol>\n<li><strong>\u8bbf\u95eeGoogle Cloud\u63a7\u5236\u53f0<\/strong>\u3002<\/li>\n<li><strong>\u5bfc\u822a\u5230VPC\u7f51\u7edc &gt; \u9632\u706b\u5899\u89c4\u5219<\/strong>\u3002<\/li>\n<li><strong>\u521b\u5efa\u9632\u706b\u5899\u89c4\u5219<\/strong>\uff1a\n<ul>\n<li>\u8bbe\u5b9a\u89c4\u5219\u540d\u79f0<\/li>\n<li>\u9009\u62e9\u9002\u7528\u7684\u76ee\u6807\uff08\u53ef\u4ee5\u9009\u62e9\u6240\u6709\u5b9e\u4f8b\u6216\u7279\u5b9a\u6807\u7b7e\u7684\u5b9e\u4f8b\uff09<\/li>\n<li>\u6307\u5b9a\u5165\u7ad9\u548c\u51fa\u7ad9\u6d41\u91cf\uff0c\u786e\u4fdd\u4f60\u7684Shadowsocks\u7aef\u53e3\uff08\u59821080\uff09\u5141\u8bb8\u901a\u8fc7\u3002<\/li>\n<li>\u5e94\u7528\u5e76\u4fdd\u5b58\u89c4\u5219\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n<h3>Q1: \u5982\u4f55\u68c0\u67e5Shadowsocks\u662f\u5426\u8fd0\u884c\u6b63\u5e38\uff1f<\/h3>\n<ul>\n<li>\n<p>\u901a\u8fc7\u547d\u4ee4\u884c\u68c0\u67e5Shadowsocks\u670d\u52a1\u7684\u72b6\u6001\uff1a bash ssserver -c \/path\/to\/config.json<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u670d\u52a1\u542f\u52a8\u6b63\u5e38\uff0c\u4f60\u5c06\u770b\u5230\u76f8\u5173\u7684\u65e5\u5fd7\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>Q2: \u5728\u4f7f\u7528Shadowsocks\u65f6\uff0c\u5982\u4f55\u4fdd\u8bc1\u5b89\u5168\u6027\uff1f<\/h3>\n<ul>\n<li>\u4f7f\u7528\u5f3a\u5bc6\u7801\u548c\u9ad8\u5f3a\u5ea6\u7684\u52a0\u5bc6\u65b9\u5f0f\u3002<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0Shadowsocks\u53ca\u5176\u4f9d\u8d56\u9879\u3002<\/li>\n<li>\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u9650\u5236\u4e0d\u5fc5\u8981\u7684\u6d41\u91cf\u3002<\/li>\n<\/ul>\n<h3>Q3: \u5982\u4f55\u66f4\u6539Shadowsocks\u7684\u7aef\u53e3\uff1f<\/h3>\n<ul>\n<li>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u7aef\u53e3\u8bbe\u7f6e\uff0c\u91cd\u65b0\u542f\u52a8Shadowsocks\u670d\u52a1\u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/li>\n<\/ul>\n<h3>Q4: \u662f\u5426\u53ef\u4ee5\u4f7f\u7528Shadowsocks\u7ed5\u8fc7\u5730\u7406\u9650\u5236\uff1f<\/h3>\n<ul>\n<li>\u662f\u7684\uff0c\u4f7f\u7528<em>Shadowsocks<\/em>\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u7ed5\u8fc7\u5730\u57df\u9650\u5236\uff0c\u8bbf\u95ee\u53d7\u9650\u5236\u7684\u7f51\u7ad9\u548c\u670d\u52a1\u3002<\/li>\n<\/ul>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728<em>Google Cloud<\/em>\u4e0a\u914d\u7f6e<em>Shadowsocks<\/em>\u5e76\u8bbe\u5b9a\u9632\u706b\u5899\u89c4\u5219\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u4f46\u91cd\u8981\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u5408\u7406\u7684\u914d\u7f6e\uff0c\u7528\u6237\u4e0d\u4ec5\u53ef\u4ee5\u786e\u4fdd\u7f51\u7edc\u7684\u5b89\u5168\u6027\uff0c\u8fd8\u80fd\u4eab\u53d7\u66f4\u5feb\u7684\u8bbf\u95ee\u901f\u5ea6\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u4f60\u6210\u529f\u8bbe\u7f6e\u5e76\u4f7f\u7528<em>Shadowsocks<\/em>\uff0c\u63d0\u5347\u4f60\u7684\u7f51\u7edc\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4ec0\u4e48\u662fShadowsocks\uff1f Shadowsocks\u662f\u4e00\u79cd\u5f00\u6e90\u4ee3\u7406\u5de5\u5177\uff0c\u901a\u5e38\u7528\u4e8e\u7ffb\u5899\u548c\u4fdd\u62a4\u7528\u6237\u7684\u9690\u79c1\u3002\u5b83\u4f7f\u7528\u4e86\u52a0\u5bc6\u534f\u8bae\uff0c\u53ef\u4ee5\u5b89\u5168\u5730\u4f20\u8f93\u6570\u636e\uff0c\u907f\u514d\u88ab\u76d1\u63a7\u3002\u7531\u4e8e\u5176\u9ad8\u6548\u6027\uff0cShadowsocks\u5728\u5168\u7403\u8303\u56f4\u5185\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\uff0c\u5c24\u5176\u662f\u5728\u4e92\u8054\u7f51\u5ba1\u67e5\u4e25\u683c\u7684\u56fd\u5bb6\u3002 Google Cloud\u5e73\u53f0\u7b80\u4ecb Google Cloud\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u4e91\u8ba1\u7b97\u5e73\u53f0\uff0c\u63d0\u4f9b\u591a\u79cd\u670d\u52a1\uff0c\u5305\u62ec\u8ba1\u7b97\u3001\u5b58\u50a8\u548c\u5927\u6570\u636e\u5206\u6790\u3002\u7528\u6237\u53ef\u4ee5\u5229\u7528\u5176\u5f3a\u5927\u7684\u57fa\u7840\u8bbe\u65bd\u6765\u642d\u5efa\u5404\u79cd\u5e94\u7528\uff0cGoogle Cloud\u7684\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u4f7f\u5176\u6210\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u7684\u70ed\u95e8\u9009\u62e9\u3002 \u4e3a\u4f55\u9700\u8981\u5728Google Cloud\u4e0a\u4f7f\u7528Shadowsocks\uff1f \u5728Google Cloud\u4e0a\u4f7f\u7528Shadowsocks\u6709\u51e0\u4e2a\u91cd\u8981\u7684\u7406\u7531\uff1a \u5b89\u5168\u6027\uff1aShadowsocks\u901a\u8fc7\u52a0\u5bc6\u6570\u636e\u6d41\u91cf\uff0c\u63d0\u9ad8\u7528\u6237\u7684\u7f51\u7edc\u5b89\u5168\u6027\u3002 \u901f\u5ea6\uff1a\u7531\u4e8eGoogle Cloud\u62e5\u6709\u5168\u7403\u6570\u636e\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u5ef6\u8fdf\uff0c\u63d0\u9ad8\u8bbf\u95ee\u901f\u5ea6\u3002 \u53ef\u63a7\u6027\uff1a\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u884c\u8bbe\u7f6e\u548c\u7ba1\u7406Shadowsocks\u7684\u914d\u7f6e\uff0c\u63d0\u5347\u7075\u6d3b\u6027\u3002 Shadowsocks\u7684\u57fa\u672c\u914d\u7f6e \u5728\u5f00\u59cb\u8bbe\u7f6e\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u62e5\u6709\u4ee5\u4e0b\u5185\u5bb9\uff1a \u4e00\u4e2aGoogle Cloud\u8d26\u6237 \u4e00\u4e2a\u53ef\u4ee5\u4f7f\u7528\u7684\u865a\u62df\u673a\uff08VM\uff09 \u57fa\u672c\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u77e5\u8bc6 Shadowsocks\u670d\u52a1\u5668\u914d\u7f6e \u9009\u62e9\u5408\u9002\u7684\u670d\u52a1\u5668\u7c7b\u578b\uff1a\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684VM\u7c7b\u578b\u3002 \u5b89\u88c5\u4f9d\u8d56\u9879\uff1a\u786e\u4fdd\u4f60\u7684\u865a\u62df\u673a\u4e2d\u5b89\u88c5\u4e86Python\u53ca\u76f8\u5173\u4f9d\u8d56\u3002 \u4e0b\u8f7dShadowsocks\uff1a\u4f7f\u7528Git\u514b\u9686\u6216\u76f4\u63a5\u4e0b\u8f7dShadowsocks\u7684\u4ee3\u7801\u5e93\u3002 \u914d\u7f6e\u6587\u4ef6\uff1a\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u7f16\u8f91Shadowsocks\u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u5b9a\u7aef\u53e3\u3001\u52a0\u5bc6\u65b9\u5f0f\u7b49\u3002 \u5728Google Cloud\u4e0a\u8bbe\u7f6eShadowsocks \u6b65\u9aa4\u4e00\uff1a\u521b\u5efa\u865a\u62df\u673a\u5b9e\u4f8b \u767b\u5f55Google Cloud\u63a7\u5236\u53f0\uff0c\u5bfc\u822a\u5230Compute Engine\u3002 \u70b9\u51fb\u201c\u521b\u5efa\u5b9e\u4f8b\u201d\uff0c\u9009\u62e9\u5408\u9002\u7684\u673a\u5668\u7c7b\u578b\u548c\u64cd\u4f5c\u7cfb\u7edf\u3002 \u5728\u9632\u706b\u5899\u9009\u9879\u4e2d\uff0c\u52fe\u9009\u201c\u5141\u8bb8HTTP\u6d41\u91cf\u201d\u548c\u201c\u5141\u8bb8HTTPS\u6d41\u91cf\u201d\u3002 \u6b65\u9aa4\u4e8c\uff1a\u5b89\u88c5Shadowsocks SSH\u8fdb\u5165\u4f60\u7684\u865a\u62df\u673a\u5b9e\u4f8b\u3002 \u4f7f\u7528\u547d\u4ee4\u5b89\u88c5Shadowsocks\uff1a bash sudo apt-get update sudo apt-get install shadowsocks \u914d\u7f6eShadowsocks\uff0c\u8bbe\u7f6e\u670d\u52a1\u5668\u7aef\u53e3\u548c\u52a0\u5bc6\u65b9\u5f0f\u3002 \u5982\u4f55\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219 \u5728Google Cloud\u4e0a\uff0c\u6b63\u786e\u914d\u7f6e\u9632\u706b\u5899\u662f\u786e\u4fddShadowsocks\u6b63\u5e38\u8fd0\u884c\u7684\u5173\u952e\u6b65\u9aa4\u3002 \u8bbf\u95eeGoogle Cloud\u63a7\u5236\u53f0\u3002 \u5bfc\u822a\u5230VPC\u7f51\u7edc &gt; \u9632\u706b\u5899\u89c4\u5219\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-55279","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=55279"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55279\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}