{"id":199,"date":"2019-02-05T21:28:03","date_gmt":"2019-02-05T13:28:03","guid":{"rendered":"<h1>\u524d\u8a00<\/h1>\n\n\u4e59\u4ea5\u732a\u5e74\u7b2c\u4e00\u5929\uff0c\u53d1\u73b0SSR\u7684IP\u597d\u50cf\u88ab\u5c01\u4e86\uff0cVPS\u7684IP\u53ef\u4ee5ping\u901a\uff0c\u4e5f\u53ef\u4ee5\u7528SSH\u8fde\u63a5\u4e0a\u3002\u4f46\u662f\u4f7f\u7528SSR\u63d0\u793aERR_SOCKS_CONNECTION_FAILED\uff0c\u800c\u4e14\u4f7f\u7528IP\u67e5\u8be2\uff0c\u4e5f\u65e0\u6cd5\u83b7\u5f97\u6709\u6548\u7684\u7ffb\u5899IP\u3002\n\n\u6240\u4ee5\u5c06Vultr\u4e0a\u7684VPS\uff0ctake snapshot\uff0c\u5e76\u5728sydney\u9009\u4e86\u4e00\u4e2a$3.5\/mo\u7684\u8fdb\u884c\u4e86restore\u3002\n\n\u76ee\u524d\u4f7f\u7528\u7684\u5b89\u88c5\u811a\u672c\u662f <a href=\"https:\/\/twitter.com\/qiushuiyibing\" title=\"\u79cb\u6c34\u9038\u51b0\">\u79cb\u6c34\u9038\u51b0<"},"modified":"2019-02-06T11:10:27","modified_gmt":"2019-02-06T03:10:27","slug":"shadowsocks-%e7%9b%b8%e5%85%b3","status":"publish","type":"post","link":"https:\/\/blog.francis67.cc\/?p=199","title":{"rendered":"Shadowsocks \u76f8\u5173"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%89%8D%E8%A8%80\" >\u524d\u8a00<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95\" >\u5b89\u88c5\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%8D%B8%E8%BD%BD%E6%96%B9%E6%B3%95\" >\u5378\u8f7d\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\" >\u4f7f\u7528\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%BC%80%E5%90%AF%E5%A4%9A%E7%AB%AF%E5%8F%A3%E7%9A%84%E6%96%B9%E6%B3%95\" >\u5f00\u542f\u591a\u7aef\u53e3\u7684\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%85%B6%E4%BB%96\" >\u5176\u4ed6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.francis67.cc\/?p=199\/#%E5%8F%82%E8%80%83%EF%BC%9A\" >\u53c2\u8003\uff1a<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E5%89%8D%E8%A8%80\"><\/span>\u524d\u8a00<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u4e59\u4ea5\u732a\u5e74\u7b2c\u4e00\u5929\uff0c\u53d1\u73b0SSR\u7684IP\u597d\u50cf\u88ab\u5c01\u4e86\uff0cVPS\u7684IP\u53ef\u4ee5ping\u901a\uff0c\u4e5f\u53ef\u4ee5\u7528SSH\u8fde\u63a5\u4e0a\u3002\u4f46\u662f\u4f7f\u7528SSR\u63d0\u793aERR_SOCKS_CONNECTION_FAILED\uff0c\u800c\u4e14\u4f7f\u7528IP\u67e5\u8be2\uff0c\u4e5f\u65e0\u6cd5\u83b7\u5f97\u6709\u6548\u7684\u7ffb\u5899IP\u3002<\/p>\n<p>\u6240\u4ee5\u5c06Vultr\u4e0a\u7684VPS\uff0ctake snapshot\uff0c\u5e76\u5728sydney\u9009\u4e86\u4e00\u4e2a$3.5\/mo\u7684\u8fdb\u884c\u4e86restore\u3002<\/p>\n<p>\u76ee\u524d\u4f7f\u7528\u7684\u5b89\u88c5\u811a\u672c\u662f <a href=\"https:\/\/twitter.com\/qiushuiyibing\" title=\"\u79cb\u6c34\u9038\u51b0\">\u79cb\u6c34\u9038\u51b0<\/a> \u5927\u795e\u7684 <a href=\"https:\/\/teddysun.com\/486.html\" title=\"Shadowsocks \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u56db\u5408\u4e00\uff09\">Shadowsocks \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u56db\u5408\u4e00\uff09<\/a><\/p>\n<p>\u5305\u542b\u4e00\u952e\u5b89\u88c5 Shadowsocks-Python\uff0c ShadowsocksR\uff0c Shadowsocks-Go\uff0c Shadowsocks-libev \u7248\uff08\u56db\u9009\u4e00\uff09\u670d\u52a1\u7aef\u3002<br \/>\n\u652f\u6301\u4ee5\u591a\u6b21\u8fd0\u884c\u6765\u5b89\u88c5\u591a\u4e2a\u7248\u672c\uff0c\u4e14\u5404\u4e2a\u7248\u672c\u53ef\u4ee5\u5171\u5b58\uff08\u6ce8\u610f\u7aef\u53e3\u53f7\u9700\u8bbe\u6210\u4e0d\u540c\uff09\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95\"><\/span>\u5b89\u88c5\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u4f7f\u7528root\u7528\u6237\u767b\u5f55\uff0c\u8fd0\u884c\u4ee5\u4e0b\u4ee3\u7801<\/p>\n<pre><code class=\"language-shell line-numbers\">wget --no-check-certificate -O shadowsocks-all.sh https:\/\/raw.githubusercontent.com\/teddysun\/shadowsocks_install\/master\/shadowsocks-all.sh\nchmod +x shadowsocks-all.sh\n.\/shadowsocks-all.sh 2&gt;&amp;1 | tee shadowsocks-all.log\n<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u63d0\u793a<\/p>\n<pre><code class=\"language-shell line-numbers\">Congratulations, your_shadowsocks_version install completed!\nYour Server IP        :your_server_ip\nYour Server Port      :your_server_port\nYour Password         :your_password\nYour Encryption Method:your_encryption_method\n\nYour QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients)\n ss:\/\/your_encryption_method:your_password@your_server_ip:your_server_port\nYour QR Code has been saved as a PNG file path:\n your_path.png\n\nWelcome to visit:https:\/\/teddysun.com\/486.html\nEnjoy it!\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E5%8D%B8%E8%BD%BD%E6%96%B9%E6%B3%95\"><\/span>\u5378\u8f7d\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u82e5\u5df2\u5b89\u88c5\u591a\u4e2a\u7248\u672c\uff0c\u5219\u5378\u8f7d\u65f6\u4e5f\u9700\u591a\u6b21\u8fd0\u884c\uff08\u6bcf\u6b21\u5378\u8f7d\u4e00\u79cd\uff09\uff1b<\/p>\n<pre><code class=\"language-shell line-numbers\">.\/shadowsocks-all.sh uninstall\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\"><\/span>\u4f7f\u7528\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u5206\u522b\u5bf9\u5e94\u5404\u7248\u672c\uff1a\u542f\u52a8\uff0c\u505c\u6b62\uff0c\u91cd\u542f\uff0c\u67e5\u770b\u72b6\u6001\u3002<\/p>\n<pre><code class=\"language-shell line-numbers\">\/etc\/init.d\/shadowsocks-python start | stop | restart | status\n\n\/etc\/init.d\/shadowsocks-r start | stop | restart | status\n\n\/etc\/init.d\/shadowsocks-go start | stop | restart | status\n\n\/etc\/init.d\/shadowsocks-libev start | stop | restart | status\n<\/code><\/pre>\n<p>\u5404\u7248\u672c\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e<\/p>\n<pre><code class=\"language-shell line-numbers\">\/etc\/shadowsocks-python\/config.json\n\n\/etc\/shadowsocks-r\/config.json\n\n\/etc\/shadowsocks-go\/config.json\n\n\/etc\/shadowsocks-libev\/config.json\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E5%BC%80%E5%90%AF%E5%A4%9A%E7%AB%AF%E5%8F%A3%E7%9A%84%E6%96%B9%E6%B3%95\"><\/span>\u5f00\u542f\u591a\u7aef\u53e3\u7684\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>python\u7248\u3001R\u7248\u548cGo\u7248\uff0c\u5206\u522b\u4fee\u6539\u5bf9\u5e94\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u91cd\u542f\u5373\u53ef\u3002<br \/>\n\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-shell line-numbers\">#python\u7248\n{\n    \"server\":\"0.0.0.0\",\n    \"local_address\":\"127.0.0.1\",\n    \"local_port\":1080,\n    \"port_password\":{\n         \"9000\":\"password0\",\n         \"9001\":\"password1\",\n         \"9002\":\"password2\",\n         \"9003\":\"password3\",\n         \"9004\":\"password4\"\n    },\n    \"timeout\":300,\n    \"method\":\"your_encryption_method\",\n    \"fast_open\": false\n}\n\nR\u7248\n{\n    \"server\":\"0.0.0.0\",\n    \"server_ipv6\": \"[::]\",\n    \"local_address\":\"127.0.0.1\",\n    \"local_port\":1080,\n    \"port_password\":{\n        \"9000\":\"password0\",\n        \"9001\":\"password1\",\n        \"9002\":\"password2\",\n        \"9003\":\"password3\",\n        \"9004\":\"password4\"\n    },\n    \"timeout\":300,\n    \"method\":\"your_encryption_method\",\n    \"protocol\": \"your_protocol\",\n    \"protocol_param\": \"\",\n    \"obfs\": \"your_obfs\",\n    \"obfs_param\": \"\",\n    \"redirect\": \"\",\n    \"dns_ipv6\": false,\n    \"fast_open\": false,\n    \"workers\": 1\n}\n\nGo\u7248\n{\n    \"port_password\":{\n         \"9000\":\"password0\",\n         \"9001\":\"password1\",\n         \"9002\":\"password2\",\n         \"9003\":\"password3\",\n         \"9004\":\"password4\"\n    },\n    \"method\":\"your_encryption_method\",\n    \"timeout\":300\n}\n<\/code><\/pre>\n<p>libev\u7248\u5f00\u542f\u591a\u7aef\u53e3\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<br \/>\n1. \u4e0b\u8f7d\u811a\u672c\u5e76\u8d4b\u4e88\u6743\u9650<\/p>\n<pre><code class=\"language-shell line-numbers\">wget -O \/etc\/init.d\/shadowsocks-manager https:\/\/raw.githubusercontent.com\/teddysun\/shadowsocks_install\/master\/shadowsocks-manager\nchmod 755 \/etc\/init.d\/shadowsocks-manager\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u65b0\u5efa\u914d\u7f6e\u5b58\u653e\u76ee\u5f55<\/li>\n<\/ol>\n<pre><code class=\"language-shell line-numbers\">mkdir \/etc\/shadowsocks-manager\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u521b\u5efa\u591a\u7aef\u53e3\u914d\u7f6e\u6587\u4ef6 <code>\/etc\/shadowsocks-manager\/config.json<\/code> \u793a\u4f8b<\/li>\n<\/ol>\n<pre><code class=\"language-shell line-numbers\">{\n    \"server\":\"0.0.0.0\",\n    \"port_password\":{\n         \"9000\":\"password0\",\n         \"9001\":\"password1\",\n         \"9002\":\"password2\",\n         \"9003\":\"password3\",\n         \"9004\":\"password4\"\n    },\n    \"timeout\":300,\n    \"user\":\"nobody\",\n    \"method\":\"your_encryption_method\",\n    \"nameserver\":\"8.8.8.8\",\n    \"mode\":\"tcp_and_udp\"\n}\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E5%85%B6%E4%BB%96\"><\/span>\u5176\u4ed6<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u4ee5\u524d\u7528\u8fc7\u4e00\u4e2a\u5e26\u6709\u591a\u7528\u6237\u7ba1\u7406\u7684SSR\u811a\u672c\u611f\u89c9\u5f88\u597d\uff0c\u6362\u4e86VPS\u540e\uff0c\u63d0\u793a\u5b89\u88c5\u4e0d\u6210\u529f\u3002\u811a\u672c\u6765\u81ea\u90fd\u6bd4\u6839\u636e\u5730\uff08doubi.io\uff09\uff0c\u53ef\u4ee5\u6700\u8fd1\u4e3b\u7ad9\u4e0a\u4e0d\u53bb\u4e86\uff0c\u7ad9\u957f\u4e5f\u4e0d\u89c1\u4e86\u3002<\/p>\n<p>\u627e\u5230\u4e86\u51e0\u4e2a\u7c89\u4e1d\u505a\u7684\u5907\u4efd\uff1a<br \/>\n1. <a href=\"https:\/\/doubiyunbackup.com\/\" title=\"\u9017\u6bd4\u4e91\">\u9017\u6bd4\u4e91<\/a><br \/>\n2. <a href=\"https:\/\/doubibackup.com\/\" title=\"\u9017\u6bd4\u6839\u636e\u5730backup\">\u9017\u6bd4\u6839\u636e\u5730backup<\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%EF%BC%9A\"><\/span>\u53c2\u8003\uff1a<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ol>\n<li><a href=\"https:\/\/teddysun.com\/486.html\" title=\"Shadowsocks \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u56db\u5408\u4e00\uff09\">Shadowsocks \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u56db\u5408\u4e00\uff09<\/a><\/li>\n<li><a href=\"https:\/\/teddysun.com\/532.html\" title=\"\u5982\u4f55\u542f\u7528 Shadowsocks \u7684\u591a\u7aef\u53e3\">\u5982\u4f55\u542f\u7528 Shadowsocks \u7684\u591a\u7aef\u53e3<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Alvin9999\/new-pac\/wiki\/%E8%87%AA%E5%BB%BAss%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%99%E7%A8%8B\" title=\"\u81ea\u5efass\u670d\u52a1\u5668\u6559\u7a0b Alvin9999\">\u81ea\u5efass\u670d\u52a1\u5668\u6559\u7a0b Alvin9999<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u4e59\u4ea5\u732a\u5e74\u7b2c\u4e00\u5929\uff0c\u53d1\u73b0SSR\u7684IP\u597d\u50cf\u88ab\u5c01\u4e86\uff0cVPS\u7684IP\u53ef\u4ee5ping\u901a\uff0c\u4e5f\u53ef\u4ee5\u7528SSH\u8fde\u63a5\u4e0a\u3002\u4f46\u662f\u4f7f\u7528S [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[72,135,133,134],"class_list":["post-199","post","type-post","status-publish","format-standard","hentry","category-vpslog","tag-shadowsocks","tag-135","tag-133","tag-134"],"_links":{"self":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=199"}],"version-history":[{"count":1,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/199\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}