{"id":155,"date":"2020-11-27T17:08:15","date_gmt":"2020-11-27T09:08:15","guid":{"rendered":"https:\/\/refusea.com\/?p=155"},"modified":"2020-12-03T10:32:03","modified_gmt":"2020-12-03T02:32:03","slug":"linux-%e5%ae%89%e8%a3%85-shadowsocks-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/refusea.com\/?p=155","title":{"rendered":"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u5b89\u88c5 python<\/h2>\n<p>centos 8 \u5df2\u7ecf\u81ea\u5e26 pytho3\uff0c\u5982\u679c\u4f60\u7684 linux \u7248\u672c\u8f83\u4f4e\uff0c\u5148\u5347\u7ea7 python<\/p>\n<h2>\u5b89\u88c5 Shadowsocks<\/h2>\n<pre><code class=\"language-bash\">pip install shadowsocks<\/code><\/pre>\n<h2>\u542f\u52a8\u505c\u6b62<\/h2>\n<pre><code class=\"language-bash\"># \u542f\u52a8\u670d\u52a1\n# -p \u7aef\u53e3\uff0c\u9ed8\u8ba4 8388\n# -k \u5bc6\u7801\uff0c\u9ed8\u8ba4 password\nssserver -p 8388 -k password -m aes-256-cfb --user nobody -d start\n\n# \u505c\u6b62\u670d\u52a1\nssserver -d stop<\/code><\/pre>\n<h2>\u67e5\u770b\u65e5\u5fd7<\/h2>\n<pre><code class=\"language-bash\">tail -f \/var\/log\/shadowsocks.log<\/code><\/pre>\n<h2>\u9519\u8bef\u5904\u7406<\/h2>\n<p>\u56e0\u4e3a\u7cfb\u7edf\u73af\u5883\u5dee\u5f02\uff0c\u5728\u8fd0\u884c ssserver \u65f6\u53ef\u80fd\u4f1a\u7206\u51fa\u4ee5\u4e0b\u9519\u8bef<\/p>\n<pre><code class=\"language-bash\">loading libcrypto from libcrypto.so.1.1\nTraceback (most recent call last):\n  File &quot;\/usr\/local\/bin\/ssserver&quot;, line 11, in &lt;module&gt;\n    load_entry_point(&#039;shadowsocks==2.8.2&#039;, &#039;console_scripts&#039;, &#039;ssserver&#039;)()\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/server.py&quot;, line 34, in main\n    config = shell.get_config(False)\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/shell.py&quot;, line 262, in get_config\n    check_config(config, is_local)\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/shell.py&quot;, line 124, in check_config\n    encrypt.try_cipher(config[&#039;password&#039;], config[&#039;method&#039;])\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/encrypt.py&quot;, line 44, in try_cipher\n    Encryptor(key, method)\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/encrypt.py&quot;, line 83, in __init__\n    random_string(self._method_info[1]))\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/encrypt.py&quot;, line 109, in get_cipher\n    return m[2](method, key, iv, op)\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/crypto\/openssl.py&quot;, line 76, in __init__\n    load_openssl()\n  File &quot;\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/crypto\/openssl.py&quot;, line 52, in load_openssl\n    libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)\n  File &quot;\/usr\/lib64\/python3.6\/ctypes\/__init__.py&quot;, line 356, in __getattr__\n    func = self.__getitem__(name)\n  File &quot;\/usr\/lib64\/python3.6\/ctypes\/__init__.py&quot;, line 361, in __getitem__\n    func = self._FuncPtr((name_or_ordinal, self))\nAttributeError: \/lib64\/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup<\/code><\/pre>\n<p>\u8fd9\u662f\u56e0\u4e3a openssl \u7248\u672c\u5347\u7ea7\u9020\u6210\u7684\u4e0d\u517c\u5bb9<\/p>\n<p>\u51fd\u6570 <code>EVP_CIPHER_CTX_cleanup<\/code> \u5728 1.1.0 \u7248\u672c\u4e2d\u66ff\u6362\u6210\u4e3a <code>EVP_CIPHER_CTX_reset<\/code><\/p>\n<p>\u6839\u636e\u9519\u8bef\u63d0\u793a\uff0c\u5c06 <code>\/usr\/local\/lib\/python3.6\/site-packages\/shadowsocks\/crypto\/openssl.py<\/code> \u91cc\u7684 <code>EVP_CIPHER_CTX_cleanup<\/code> \u66ff\u6362\u4e3a <code>EVP_CIPHER_CTX_reset<\/code> \u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 python centos 8 \u5df2\u7ecf\u81ea\u5e26 pytho3\uff0c\u5982\u679c\u4f60\u7684 linux \u7248\u672c\u8f83\u4f4e\uff0c\u5148\u5347\u7ea7 pyth [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-linux","tag-shadowsocks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668 - \u62d2\u6d77\u7a7a\u95f4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/refusea.com\/?p=155\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"refusea.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/refusea.com\/?p=155#article\",\"isPartOf\":{\"@id\":\"https:\/\/refusea.com\/?p=155\"},\"author\":{\"name\":\"refusea.com\",\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df\"},\"headline\":\"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668\",\"datePublished\":\"2020-11-27T09:08:15+00:00\",\"dateModified\":\"2020-12-03T02:32:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/refusea.com\/?p=155\"},\"wordCount\":10,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df\"},\"keywords\":[\"shadowsocks\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/refusea.com\/?p=155#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/refusea.com\/?p=155\",\"url\":\"https:\/\/refusea.com\/?p=155\",\"name\":\"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668 - \u62d2\u6d77\u7a7a\u95f4\",\"isPartOf\":{\"@id\":\"https:\/\/refusea.com\/#website\"},\"datePublished\":\"2020-11-27T09:08:15+00:00\",\"dateModified\":\"2020-12-03T02:32:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/refusea.com\/?p=155#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/refusea.com\/?p=155\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/refusea.com\/?p=155#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/refusea.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/refusea.com\/#website\",\"url\":\"https:\/\/refusea.com\/\",\"name\":\"\u62d2\u6d77\u7a7a\u95f4\",\"description\":\"\u62d2\u6d77\u7684\u4e2a\u4eba\u535a\u5ba2\",\"publisher\":{\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/refusea.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df\",\"name\":\"refusea.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7f7489b4afdbd952db64e7a6704d1258?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7f7489b4afdbd952db64e7a6704d1258?s=96&d=mm&r=g\",\"caption\":\"refusea.com\"},\"logo\":{\"@id\":\"https:\/\/refusea.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/refusea.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668 - \u62d2\u6d77\u7a7a\u95f4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/refusea.com\/?p=155","twitter_misc":{"\u4f5c\u8005":"refusea.com","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/refusea.com\/?p=155#article","isPartOf":{"@id":"https:\/\/refusea.com\/?p=155"},"author":{"name":"refusea.com","@id":"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df"},"headline":"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668","datePublished":"2020-11-27T09:08:15+00:00","dateModified":"2020-12-03T02:32:03+00:00","mainEntityOfPage":{"@id":"https:\/\/refusea.com\/?p=155"},"wordCount":10,"commentCount":0,"publisher":{"@id":"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df"},"keywords":["shadowsocks"],"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/refusea.com\/?p=155#respond"]}]},{"@type":"WebPage","@id":"https:\/\/refusea.com\/?p=155","url":"https:\/\/refusea.com\/?p=155","name":"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668 - \u62d2\u6d77\u7a7a\u95f4","isPartOf":{"@id":"https:\/\/refusea.com\/#website"},"datePublished":"2020-11-27T09:08:15+00:00","dateModified":"2020-12-03T02:32:03+00:00","breadcrumb":{"@id":"https:\/\/refusea.com\/?p=155#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/refusea.com\/?p=155"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/refusea.com\/?p=155#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/refusea.com\/"},{"@type":"ListItem","position":2,"name":"Linux \u5b89\u88c5 shadowsocks \u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/refusea.com\/#website","url":"https:\/\/refusea.com\/","name":"\u62d2\u6d77\u7a7a\u95f4","description":"\u62d2\u6d77\u7684\u4e2a\u4eba\u535a\u5ba2","publisher":{"@id":"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/refusea.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/refusea.com\/#\/schema\/person\/b5393cc8b15717000d19424552aae0df","name":"refusea.com","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/refusea.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7f7489b4afdbd952db64e7a6704d1258?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7f7489b4afdbd952db64e7a6704d1258?s=96&d=mm&r=g","caption":"refusea.com"},"logo":{"@id":"https:\/\/refusea.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/refusea.com"]}]}},"_links":{"self":[{"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/posts\/155"}],"collection":[{"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refusea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155"}],"version-history":[{"count":2,"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/refusea.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions\/259"}],"wp:attachment":[{"href":"https:\/\/refusea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refusea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refusea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}