{"id":159,"date":"2020-01-12T18:43:58","date_gmt":"2020-01-12T10:43:58","guid":{"rendered":"http:\/\/lst.wting.me\/?p=159"},"modified":"2020-03-12T21:25:52","modified_gmt":"2020-03-12T13:25:52","slug":"ss","status":"publish","type":"post","link":"https:\/\/lst.wting.top\/?p=159","title":{"rendered":"\u6811\u8393\u6d3e\u4e0b\u5b89\u88c5ssserver"},"content":{"rendered":"\n<h2><strong>\u51c6\u5907<\/strong><\/h2>\n\n\n\n<p>\u5f53\u7136\uff0c\u5b89\u88c5\u4e4b\u524d\uff0c\u9700\u8981\u6253\u5f00\u6811\u8393\u6d3e\u7684 ssh\uff0c\u800c\u4e14\u6700\u597d\u505a\u597d\u76f8\u5173\u9632\u62a4\uff0c\u4e0d\u7136\u7aef\u53e3\u5f88\u53ef\u80fd\u88ab\u626b\u7206\u3002<\/p>\n\n\n\n<h3>\u66f4\u65b0\u6e90<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update &amp;&amp; sudo apt upgrade &amp;&amp; sudo apt autoremove<\/pre>\n\n\n\n<h3>fail2ban<\/h3>\n\n\n\n<p>\u5b89\u88c5&nbsp;<strong>fail2ban&nbsp;<\/strong>\u670d\u52a1\uff0c\u8be5\u670d\u52a1\u88c5\u597d\u540e\u91cd\u542f\u751f\u6548\u3001\u81ea\u542f\u52a8\uff0c\u4f5c\u7528\uff1assh\u767b\u5f55\u9519\u8bef5\u6b21ban10\u5206\u949f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install fail2ban<\/pre>\n\n\n\n<p>\u53e6\u5916\u53ef\u4ee5\u5728&nbsp;<strong>\/etc\/fail2ban\/jail.conf&nbsp;<\/strong>\u4fee\u6539fail2ban\u53c2\u6570\u3002<\/p>\n\n\n\n<h3><strong>\u5b89\u88c5<\/strong><br><\/h3>\n\n\n\n<p>\u6811\u8393\u6d3e\u7684 Raspbian \u662f\u57fa\u4e8e Debian \u7684\u7cfb\u7edf\uff0c\u652f\u6301 apt \u8f6f\u4ef6\u5305\u7ba1\u7406\uff08\u65b0\u7acb\u5f97\uff09\u5b89\u88c5\uff0c\u90a3\u4e48\u5c31\u4e0d\u9700\u8981\u7f16\u8bd1\u4e86\uff0c\u6811\u8393\u6d3e\u8fd9\u4e2a\u6027\u80fd\uff0c\u7f16\u8bd1\u4e1c\u897f\u7b80\u76f4\u8981\u70b8\u4e86\u3002apt \u6e90\u91cc\u9ed8\u8ba4\u662f\u6709 shadowsocks \u7684\uff0c\u53ef\u7531\u4e8e\u4f5c\u8005\u4e0d\u518d\u7ef4\u62a4 apt \u548c pip \u4e2d\u7684 Shadowsocks\uff0c\u5b9a\u683c\u5728\u4e86\u5f88\u8001\u76842.8.2\uff0c\u6240\u4ee5\u6211\u4eec\u7528 python \u7684 pip \u5b89\u88c5<\/p>\n\n\n\n<p>\u9996\u5148\u5b89\u88c5 python3 \u548c pip<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install python3 &amp;&amp; sudo apt install python3-pip<\/pre>\n\n\n\n<p>\u7136\u540e\u4f7f\u7528 python3 \u7684 pip \u5b89\u88c5\u6700\u65b0\u7684 shadowsosks<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo python3 -m pip install https:\/\/github.com\/shadowsocks\/shadowsocks\/archive\/master.zip<\/pre>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u67e5\u770b\u4e00\u4e0b shadowsocks \u7684\u7248\u672c<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ssserver --version<\/pre>\n\n\n\n<p>\u8f6f\u4ef6\u5305\u9644\u5e26\u4e24\u4e2a\u547d\u4ee4\uff0c<strong>ssserver<\/strong>\u548c<strong>sslocal<\/strong>\u3002\u4e00\u4e2a\u7528\u4e8e\u670d\u52a1\u7aef\u914d\u7f6e\uff0c\u4e00\u4e2a\u7528\u4e8e\u5ba2\u6237\u7aef\u914d\u7f6e\u3002\u8be6\u7ec6\u60c5\u51b5\u53ef\u4ee5\u8fd0\u884c<strong>man shadowsocks<\/strong>\u6765\u67e5\u770b\u3002<br><\/p>\n\n\n\n<p>\u53e6\u5916\u65b0\u7248 SS \u652f\u6301\u4e86 chacha20 \u7b49\u52a0\u5bc6\u7b97\u6cd5\uff0c\u9700\u8981\u5b89\u88c5&nbsp;libsodium<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install libsodium-dev<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u51c6\u5907 \u5f53\u7136\uff0c\u5b89\u88c5\u4e4b\u524d\uff0c\u9700\u8981\u6253\u5f00\u6811\u8393\u6d3e\u7684 ssh\uff0c\u800c\u4e14\u6700\u597d\u505a\u597d\u76f8\u5173\u9632\u62a4\uff0c\u4e0d\u7136\u7aef\u53e3\u5f88\u53ef\u80fd\u88ab\u626b\u7206\u3002 \u66f4\u65b0\u6e90 sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":3,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}