{"id":753,"date":"2017-10-05T19:01:09","date_gmt":"2017-10-05T11:01:09","guid":{"rendered":"http:\/\/www.withonly.com\/?p=753"},"modified":"2017-10-05T19:01:09","modified_gmt":"2017-10-05T11:01:09","slug":"ubuntu%e5%ae%89%e8%a3%85shadowsocks","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=753","title":{"rendered":"Ubuntu\u5b89\u88c5Shadowsocks"},"content":{"rendered":"<p>\u4ee5\u524d\u51c6\u5907\u5b89\u88c5VPN\u7684\uff0c\u540e\u6765\u53d1\u73b0\u600e\u4e48\u90fd\u8fde\u63a5\u4e0d\u4e0a\u53bb\uff0c\u9042\u653e\u5f03\u3002\u73b0\u5728\u6709\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\u4e86\u3002\u9996\u5148\u5728\u5b89\u88c5\u524d\u5148\u66f4\u65b0\u4e0b\u7cfb\u7edf\uff0c\u7136\u540e<\/p>\n<p><span class=\"hljs-built_in\">1, sudo<\/span> apt-get install python-pip<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u67e5\u770bpip \u7684\u7248\u672c\u53f7\uff1apip -V<\/p>\n<p>2, sudo pip install shadowsocks<\/p>\n<p>3, \u7f16\u8f91vi \/etc\/shadowsocks.json<\/p>\n<blockquote><p>{<br \/>\n&#8220;server&#8221;:&#8221;IP&#8221;,#\u4f60\u7684\u670d\u52a1\u5668IP<br \/>\n&#8220;server_port&#8221;:8389, #\u4f60\u8981\u5f00\u653e\u7684\u63a5\u53e3<br \/>\n&#8220;password&#8221;:&#8221;******&#8221;, #\u5bc6\u7801<br \/>\n&#8220;timeout&#8221;:300,<br \/>\n&#8220;method&#8221;:&#8221;aes-256-cfb&#8221;,<br \/>\n&#8220;fast_open&#8221;:true,<br \/>\n&#8220;workers&#8221;: 1<br \/>\n}<\/p><\/blockquote>\n<p>4, \u542f\u52a8\u670d\u52a1 sudo ssserver -c \/etc\/shadowsocks.json -d start<\/p>\n<p>5, \u52a0\u5165\u5230\u5f00\u673a\u542f\u52a8\uff0c\u7f16\u8f91\/etc\/rc.local\uff0cexit 0\u4e4b\u524d\u52a0\u5165\u4e0a\u9762\u542f\u52a8\u670d\u52a1\u90a3\u53e5\u8bdd\u3002<\/p>\n<p>6\uff0c\u914d\u7f6e\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u4e0a\u7f51\u5566\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u51c6\u5907\u5b89\u88c5VPN\u7684\uff0c\u540e\u6765\u53d1\u73b0\u600e\u4e48\u90fd\u8fde\u63a5\u4e0d\u4e0a\u53bb\uff0c\u9042\u653e\u5f03\u3002\u73b0\u5728\u6709\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\u4e86\u3002\u9996\u5148\u5728\u5b89\u88c5\u524d\u5148\u66f4\u65b0\u4e0b\u7cfb\u7edf\uff0c\u7136\u540e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[191],"class_list":["post-753","post","type-post","status-publish","format-standard","hentry","category-a-short-word","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=753"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/753\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}