{"id":843,"date":"2020-03-15T19:27:14","date_gmt":"2020-03-15T11:27:14","guid":{"rendered":"http:\/\/davidblus.top\/wordpress\/?p=843"},"modified":"2023-05-22T20:05:23","modified_gmt":"2023-05-22T12:05:23","slug":"dai_li_pei_zhi","status":"publish","type":"post","link":"http:\/\/davidblus.top\/wordpress\/index.php\/2020\/03\/15\/dai_li_pei_zhi\/","title":{"rendered":"\u4ee3\u7406\u914d\u7f6e"},"content":{"rendered":"<p>\u611f\u89c9\u597d\u4e45\u4e86\uff0c\u4e00\u76f4\u8fde\u4e0d\u4e0a\u5728AWS\u4e0a\u9762\u914d\u7f6e\u7684shadowsocks\uff0c\u524d\u4e00\u6bb5\u65f6\u95f4\u51fa\u73b0\u8fc7\u8fde\u5c0f\u7ad9\u90fd\u9891\u9891\u65e0\u6cd5\u8bbf\u95ee\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u7ad9\u957f\u4e4b\u5bb6\u4e0a\u9762\u7684\u7f51\u7ad9\u5168\u7403\u6d4b\u901f\uff0c<a href=\"http:\/\/tool.chinaz.com\/speedworld\/\">\u56fd\u9645\u6d4b\u901f<\/a>\uff0c\u624d\u77e5\u9053\uff0c\u56fd\u5185\u65e0\u6cd5\u8bbf\u95ee\u4e86\uff0c\u53ea\u80fd\u901a\u8fc7\u4e00\u76f4\u5207\u6362\u516c\u6709ip\u6765\u5904\u7406\uff0c\u53ef\u4ee5\u5229\u7528AWS\u4e0a\u9762\u7684\u5f39\u6027ip\u6765\u914d\u7f6e\u591a\u4e2a\u516c\u6709ip\uff0c\u4e5f\u8fd8\u7b97\u662f\u6bd4\u8f83\u65b9\u4fbf\u3002<\/p>\n<p>\u4f46\u662f\u6700\u8fd1\u53d1\u73b0\u5c0f\u7ad9\u80fd\u591f\u6b63\u5e38\u8bbf\u95ee\uff0c\u4f46\u662fshadowsocks\u5374\u4e00\u76f4\u8fde\u4e0d\u4e0a\uff0c\u8fd8\u662f\u901a\u8fc7\u7ad9\u957f\u4e4b\u5bb6\u4e0a\u9762\u7684\u7aef\u53e3\u626b\u63cf\u529f\u80fd\uff0c<a href=\"http:\/\/tool.chinaz.com\/port\/\">\u7aef\u53e3\u626b\u63cf<\/a>\uff0c\u626b\u63cf8388\u7aef\u53e3\uff0c\u53d1\u73b0\u662f\u5173\u95ed\u72b6\u6001\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u5e94\u8be5\u662f\u6253\u5f00\u7684\uff0c\u6240\u4ee5\u8fd8\u662f\u8bc1\u660e\u8fd9\u4e2a\u7aef\u53e3\u88ab\u5c01\u4e86\uff0c\u770b\u6765\u6700\u8fd1\u7684\u5c01\u7981\u6280\u672f\u4e00\u76f4\u5728\u589e\u957f\u554a\uff0c\u7136\u540e\u6211\u5c31\u628ashadowsocks\u7684\u7aef\u53e3\u6539\u4e86\uff0c\u6539\u62108488\uff0cAWS\u4e0a\u9762\u7684\u51fa\u5165\u7ad9\u8bbe\u7f6e\u4e5f\u52a0\u4e0a\u4e868488\uff0c\u7acb\u9a6c\u5c31\u53c8\u80fd\u7528\u4e86\uff0c\u7528\u7ad9\u957f\u4e4b\u5bb6\u4e0a\u9762\u7684\u7aef\u53e3\u626b\u63cf\u4e5f\u80fd\u626b\u51fa\u67658488\u7aef\u53e3\u662f\u5f00\u542f\u7684\u3002<\/p>\n<p>\u4f46\u662f\u8fc7\u4e00\u6bb5\u65f6\u95f4\uff0c\u597d\u50cf\u4e5f\u4e0d\u7528\u5f88\u4e45\uff0c\u51e0\u5206\u949f\u4e4b\u540e\u6216\u8005\u5341\u51e0\u5206\u949f\u4e4b\u540e\u53d1\u73b0\u8fd9\u4e2a\u7aef\u53e3\u53c8\u88ab\u5c01\u4e86\uff0c\u7aef\u53e3\u626b\u63cf\u662f\u5173\u95ed\u72b6\u6001\uff0c\u800c\u4e14\u53d1\u73b0shadowsocks\u670d\u52a1\u5668\u4e0a\u9762\u7684\u65e5\u5fd7\u4e2d\u6709\u4e00\u4e9b\u672a\u77e5ip\u7684\u8fde\u63a5\u8bf7\u6c42\uff0c\u4f46\u662f\u5bc6\u7801\u4e0d\u5bf9\u6216\u8005\u662f\u7b97\u6cd5\u4e0d\u5bf9\uff0c\u5bfc\u81f4\u8fde\u4e0d\u4e0a\u53bb\uff0c\u539f\u56e0\u4e0d\u660e\uff0c\u611f\u89c9\u662f\u5b58\u5728\u67d0\u79cd\u68c0\u6d4b\u6280\u672f\uff0c\u68c0\u6d4b\u5230\u4e4b\u540e\u5c31\u5f00\u59cb\u5c01\u7aef\u53e3\u3002\u3002\u3002<\/p>\n<p>\u6ca1\u529e\u6cd5\uff0c\u4e4b\u524d\u641e\u8fc7squid\u7684\u4ee3\u7406\uff0c\u6240\u4ee5\u51b3\u5b9a\u8fd8\u662f\u53bb\u7528\u539f\u59cb\u7684squid\u4ee3\u7406\u53bb\u4e86\uff0c\u6839\u636e\u7f51\u4e0a\u7684\u6559\u7a0b\uff0c<a href=\"https:\/\/blog.csdn.net\/daerzei\/article\/details\/81169349\">Ubuntu\u90e8\u7f72squid\u4ee3\u7406\u670d\u52a1\u5668<\/a>\uff0c\u914d\u7f6e\u5b8c\u4e4b\u540e\u53d1\u73b0\u672c\u5730\u8bbf\u95ee\u4ee3\u7406\u5f88\u4e0d\u6b63\u5e38\uff0c\u4f7f\u7528\u4ee3\u7406\u8fde\u767e\u5ea6\u5c1d\u8bd5\u591a\u6b21\u624d\u80fd\u6210\u529f\u4e00\u6b21\uff0c\u800c\u8c37\u6b4c\u5c31\u6839\u672c\u4e0a\u4e0d\u53bb\u3002\u611f\u89c9\u8fd8\u662f\u5c01\u7981\u95ee\u9898\uff0c\u901a\u8fc7\u67e5\u8be2\u53d1\u73b0\u4f7f\u7528squid\u5f88\u591a\u90fd\u662f\u642d\u914dstunnel\uff0c<a href=\"https:\/\/segmentfault.com\/a\/1190000020324701?utm_source=tag-newest\">aws ec2 \u642d\u5efa\u79d1\u5b66\u4e0a\u7f51\uff08squid + stunnel\uff09<\/a>\uff0c\u7136\u800c\u6211\u61d2\u7684\u641e\u8fd9\u4e2a\u4e1c\u897f\u4e86\uff0c\u76f4\u63a5\u7528\u4e4b\u524d\u7684\u4e00\u4e2a\u7aef\u53e3\u6620\u5c04\u529f\u80fd\uff0c\u628a\u670d\u52a1\u5668\u4e0a\u9762\u7684\u7aef\u53e3\u6620\u5c04\u5230\u672c\u5730\uff0c\u5177\u4f53\u6559\u7a0b\u6211\u6ca1\u627e\u5230\uff0c\u4f46\u662f\u6620\u5c04\u547d\u4ee4\u6211\u8fd8\u4fdd\u5b58\u7740\uff0c<code>autossh -M 5200 -N -f -L 8588:localhost:8588 Amazon<\/code>\uff0c\u610f\u601d\u5c31\u662f\u4f7f\u7528autossh\u5efa\u7acb\u96a7\u9053\uff0c\u4f7f\u752822\u7aef\u53e3\u4e0e\u670d\u52a1\u5668\u901a\u4fe1\uff0c\u672c\u5730\u4f7f\u75285200\u7aef\u53e3\u8fdb\u884c\u76d1\u542c\uff0c\u628a\u8fdc\u7a0bAmazon\u76848588\u7aef\u53e3\u4e0e\u672c\u57308588\u7aef\u53e3\u505a\u6620\u5c04\uff0c\u8fd9\u6837\u5c31\u76f8\u5f53\u4e8e\u672c\u5730\u76848588\u7aef\u53e3\u5c31\u662fAWS\u4e0a\u9762\u76848588\u7aef\u53e3\u4e86\uff0c\u90a3\u4e48\u5c31\u76f8\u5f53\u4e8esquid\u4ee3\u7406\u6620\u5c04\u5230\u4e86\u672c\u5730\uff0c\u672c\u5730\u4ee3\u7406\u5ba2\u6237\u7aef\u53ea\u9700\u8981\u8fdelocalhost\u76848588\u7aef\u53e3\u5c31\u80fd\u4e0a\u4ee3\u7406\u4e86\uff0c\u7ecf\u8fc7\u5b9e\u8df5\uff0c\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u5b58\u5728\u5c01\u7981\u95ee\u9898\uff0c\u53ea\u662f\u901f\u5ea6\u4f1a\u6162\u4e00\u4e9b\uff0c\u4e4b\u524d\u6211\u4e5f\u662f\u56e0\u4e3a\u901f\u5ea6\u95ee\u9898\u624d\u4ecesquid\u8fc1\u5230shadowsocks\u7684\uff0c\u4f46\u662f\u73b0\u5728shadowsocks\u603b\u662f\u7aef\u53e3\u88ab\u7981\uff0c\u4e5f\u662f\u6ca1\u529e\u6cd5\u4e86\uff0c\u53ea\u80fd\u56de\u5230\u539f\u59cb\u65b9\u5f0f\u4e86\u30022023-5-22\u65e5\u8865\u5145\uff1a\u5982\u679c\u6ca1\u6709autossh\uff0c\u4e5f\u53ef\u4ee5\u4e34\u65f6\u4f7f\u7528ssh\uff0c\u547d\u4ee4\u5907\u5fd8\uff0c\u540c\u4e0aautossh\u547d\u4ee4\u6548\u679c\uff1assh -L 5200:127.0.0.1:5200 -R 5200:127.0.0.1:5201 -N -L 8588:localhost:8588 Amazon &amp;<\/p>\n<p>\u7136\u540e\u60f3\u5230\uff0c\u65e2\u71368588\u7aef\u53e3\u80fd\u6620\u5c04\u7684\u672c\u5730\uff0c\u90a3\u4e488388\u7aef\u53e3\u4e5f\u80fd\u6620\u5c04\u5230\u672c\u5730\uff0c\u7136\u540e\u5c31\u628ashadowsocks\u7684\u7aef\u53e3\u4e5f\u6620\u5c04\u8fc7\u6765\u4e86\uff0c\u53d1\u73b0\u4e0d\u80fd\u50cf\u8fdesquid\u4e00\u6837\u7528\u5b83\uff0c\u8fd8\u662f\u8981\u7528shadowsocks\u5ba2\u6237\u7aef\u914d\u7f6e\u7b97\u6cd5\u548chost\uff0c\u8fd9\u4e2ahost\u5c31\u662flocalhost\uff0c\u4e5f\u662f\u80fd\u4e0a\u767e\u5ea6\u548c\u8c37\u6b4c\u7684\uff0c\u4f46\u662f\u901f\u5ea6\u4e0a\u5c31\u4e0d\u5982squid\u4e86\uff0c\u60f3\u60f3\u4e5f\u662f\uff0c\u6bd5\u7adf\u591a\u4e86\u4e00\u5c42\u8f6c\u63a5\uff0c\u81f3\u6b64\u4e5f\u5c31\u5dee\u4e0d\u591a\u4e86\uff0c\u4e5f\u5c31\u662f\u6062\u590d\u5230\u4e86\u4ee5\u524d\u7684\u4ee3\u7406\u914d\u7f6e\uff0c\u4e4b\u524d\u6ca1\u5199\u8bb0\u5f55\u5bfc\u81f4\u4eca\u5929\u641e\u4e86\u597d\u51e0\u4e2a\u5c0f\u65f6\uff0c\u59b9\u5b50\u767d\u767d\u5f97\u4e86\u516b\u5341\u591a\u5757\uff0c\u4e8f\u4e86\u3001\u4e8f\u4e86\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u611f\u89c9\u597d\u4e45\u4e86\uff0c\u4e00\u76f4\u8fde\u4e0d\u4e0a\u5728AWS\u4e0a\u9762\u914d\u7f6e\u7684shadowsocks\uff0c\u524d\u4e00\u6bb5\u65f6\u95f4\u51fa\u73b0\u8fc7\u8fde\u5c0f\u7ad9\u90fd\u9891\u9891\u65e0\u6cd5\u8bbf\u95ee\u7684\u60c5\u51b5\uff0c\u901a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/davidblus.top\/wordpress\/index.php\/2020\/03\/15\/dai_li_pei_zhi\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u4ee3\u7406\u914d\u7f6e\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-843","post","type-post","status-publish","format-standard","hentry","category-shadowsocks","entry"],"_links":{"self":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":3,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"predecessor-version":[{"id":1197,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/843\/revisions\/1197"}],"wp:attachment":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}