{"id":6064,"date":"2020-01-31T02:29:47","date_gmt":"2020-01-30T18:29:47","guid":{"rendered":"http:\/\/www.brofive.org\/?p=6064"},"modified":"2020-01-31T09:05:43","modified_gmt":"2020-01-31T01:05:43","slug":"linux%e4%b8%8b%e5%ae%89%e8%a3%85sock5%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"http:\/\/www.brofive.net\/?p=6064","title":{"rendered":"Linux\u4e0b\u5b89\u88c5Socks5\u670d\u52a1\u5668SS5"},"content":{"rendered":"<p><span style=\"font-size: large;\">\u8fd9\u7b97\u662f\u4e00\u4e2aLinux\u7ba1\u7406\u5458\u7684\u57fa\u672c\u6280\u80fd\u4e86\uff0c\u5c1d\u8bd5\u4e86\u4e00\u4e0b\uff0c\u6b65\u9aa4\u8fd8\u662f\u633a\u591a\u7684\u3002\u6298\u817e\u4e86\u4e00\u4f1a\u513f\u624d\u641e\u5b9a\u4e86\uff0c\u4e0d\u8fc7\u7531\u4e8e\u865a\u62df\u673a\u548c\u7f51\u7edc\u901f\u5ea6\u90fd\u6781\u5f31\uff0c\u5b9e\u9645\u4e0a\u57fa\u672c\u4e0a\u6ca1\u6709\u4ec0\u4e48\u6027\u80fd\u53ef\u8a00\u3002\u4e3b\u8981\u8fd8\u662f\u8dd1\u901a\u4e86\u6574\u4e2a\u6d41\u7a0b\uff0c\u4ee5\u524d\u4f1a\u7684\u54ea\u4e9b\u73a9\u610f\u8fd8\u6ca1\u6709\u5fd8\u5e72\u51c0\u3002\u6574\u7406\u4e86\u5728CentOS6.x\u7684\u5b89\u88c5\u90e8\u7f72\u547d\u4ee4\uff0c<span style=\"color: #ff0000;\">\u4e3b\u8981\u6765\u81ea makelove \u7684\u4e00\u7bc7\u6587\u7ae0\uff08<\/span><\/span><a href=\"https:\/\/www.cnblogs.com\/marklove\/p\/9669025.html\"><span style=\"color: #ff0000; font-size: large;\">https:\/\/www.cnblogs.com\/marklove\/p\/9669025.html<\/span><\/a><span style=\"font-size: large;\"><span style=\"color: #ff0000;\"> \uff09<\/span>\uff0c\u4f46\u662f\u7531\u4e8e\u8bbe\u5907\u4e4b\u95f4\u5b58\u5728\u5dee\u5f02\uff0c\u56e0\u6b64\u8fd8\u9700\u8981\u4fee\u6539\u548c\u5b8c\u5584\u624d\u80fd\u5728\u6211\u7684\u8bbe\u5907\u4e0a\u914d\u7f6e\u6210\u529f\u3002<\/span><\/p>\n<p><span style=\"font-size: large;\">0\u3001\u9996\u5148\u5c45\u7136\u662f\u914d\u7f6eyum\u955c\u50cf\uff0c\u6211\u7684\u8bbe\u5907\u4e0a\u9ed8\u8ba4\u914d\u7f6e\u4e86\u4e00\u4e2a\u9519\u8bef\u7684ius.repo\uff0c\u5bfc\u81f4\u65e0\u8bba\u5982\u4f55\u66ff\u6362\u6216\u8005\u65b0\u589eCentOS-Base.repo\u90fd\u4e0d\u4f1a\u5bf9\uff0c\u9996\u5148\u8981\u5220\u9664\u65e0\u7528\u7684yum \u955c\u50cf\uff0c\u7136\u540e\u6267\u884c\uff1a<\/span><\/p>\n<p><span style=\"font-size: large;\">yum clean all<\/span><\/p>\n<p><span style=\"font-size: large;\">yum makecache<\/span><\/p>\n<p><span style=\"font-size: large;\">1\u3001\u4e0b\u8f7d\u7f16\u8bd1\u5b89\u88c5SS5\uff08socks server\uff0c<\/span><a href=\"https:\/\/sourceforge.net\/projects\/ss5\/\"><span style=\"font-size: large;\">https:\/\/sourceforge.net\/projects\/ss5\/<\/span><\/a><span style=\"font-size: large;\">\uff09\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u4f9d\u8d56GCC\u548c\u7ec4\u4ef6<\/span><\/p>\n<p><span style=\"font-size: large;\">yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel<\/span><\/p>\n<p><span style=\"font-size: large;\">2\u3001\u53bb\u5b98\u7f51http:\/\/ss5.sourceforge.net\/ \u4e0b\u8f7dSS5\u6700\u65b0\u7248\u672c\u7684\u6e90\u4ee3\u7801<\/span><\/p>\n<p><span style=\"font-size: large;\"> wget <\/span><a href=\"https:\/\/sourceforge.net\/projects\/ss5\/files\/ss5\/3.8.9-8\/ss5-3.8.9-8.tar.gz\/download\"><span style=\"font-size: large;\">https:\/\/sourceforge.net\/projects\/ss5\/files\/ss5\/3.8.9-8\/ss5-3.8.9-8.tar.gz\/download<\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">\u4e0b\u8f7d\u540e\u6587\u4ef6\u540d\u79f0\u662fdownload\uff0c\u9700\u8981\u624b\u52a8\u6539\u6210ss5-3.8.9-8.tar.gz<\/span><\/p>\n<p><span style=\"font-size: large;\">3\u3001\u89e3\u538b\u540e\u5f00\u59cb\u7f16\u8bd1\u5b89\u88c5\uff1a<\/span><\/p>\n<p><span style=\"font-size: large;\">tar zxvf .\/ss5-3.8.9-8.tar.gz<\/span><\/p>\n<p><span style=\"font-size: large;\">cd ss5-3.8.9<\/span><\/p>\n<p><span style=\"font-size: large;\">.\/configure<\/span><\/p>\n<p><span style=\"font-size: large;\">make<\/span><\/p>\n<p><span style=\"font-size: large;\">make install<\/span><\/p>\n<p><span style=\"font-size: large;\">4\u3001\u8ba9SS5\u968f\u7cfb\u7edf\u4e00\u8d77\u542f\u52a8<\/span><\/p>\n<p><span style=\"font-size: large;\">chmod +x \/etc\/init.d\/ss5<\/span><\/p>\n<p><span style=\"font-size: large;\">chkconfig &#8211;add ss5<\/span><\/p>\n<p><span style=\"font-size: large;\">chkconfig &#8211;level 345 ss5 on<\/span><\/p>\n<p><span style=\"font-size: large;\">5\u3001\u5728\/etc\/opt\/ss5\/ss5.conf\u4e2d\u627e\u5230auth\u548cpermit\u4e24\u884c\uff0c\u6309\u7167\u4e0b\u9762\u7684\u683c\u5f0f\u8fdb\u884c\u4fee\u6539<\/span><\/p>\n<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/clip_image001.png\"><span style=\"font-size: large;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"clip_image001\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/clip_image001_thumb.png\" alt=\"clip_image001\" width=\"849\" height=\"236\" border=\"0\" \/><\/span><\/a><\/p>\n<p><span style=\"font-size: large;\"> 6\u3001ss5 \u9ed8\u8ba4\u4f7f\u75281080\u7aef\u53e3\uff0c\u5e76\u5141\u8bb8\u4efb\u4f55\u4eba\u4f7f\u7528\uff0c\u5982\u679c\u8981\u4fee\u6539\u9ed8\u8ba4\u7aef\u53e3\uff0c\u8bf7\u4fee\u6539 vi \/etc\/sysconfig\/ss5<\/span><\/p>\n<p><span style=\"font-size: large;\">\u5728\/etc\/sysconfig\/ss5\u8fd9\u4e2a\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4e0b\u9762\u8fd9\u4e00\u884c\u547d\u4ee4\uff0c-b\u540e\u9762\u7684\u53c2\u6570\u4ee3\u8868\u76d1\u542c\u7684ip\u5730\u5740\u548c\u7aef\u53e3\u53f7<br \/>\n# Add startup option here<br \/>\nSS5_OPTS=&#8221; -u root -b 0.0.0.0:8989&#8243;<\/span><\/p>\n<p><span style=\"font-size: large;\">7\u3001\u542f\u52a8ss5<br \/>\nservice ss5 start<\/span><\/p>\n<p><span style=\"font-size: large;\">8\u3001\u914d\u7f6eiptables\u5b89\u5168\u7ec4\u5f00\u653eSS5\u76d1\u542c\u7684\u7aef\u53e3<\/span><\/p>\n<p><span style=\"font-size: large;\">CentOS6.x\u53c2\u89c1\u6587\u7ae0\uff1a<\/span><a href=\"https:\/\/blog.csdn.net\/jjboom425\/article\/details\/84533730\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/jjboom425\/article\/details\/84533730<\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">CentOS7.x\u53c2\u89c1\u6587\u7ae0\uff1a<\/span><a href=\"https:\/\/blog.csdn.net\/u011477914\/article\/details\/88862041\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/u011477914\/article\/details\/88862041<\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">9\u3001\u914d\u7f6e\u4e00\u4e0b\u6d4f\u89c8\u5668\u7684\u4ee3\u7406\u8bbe\u7f6e\uff0c\u7136\u540e\u7528\u6d4f\u89c8\u5668\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u771f\u7684\u53ef\u4ee5\u554a<\/span><\/p>\n<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image-37.png\"><span style=\"font-size: large;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image_thumb-38.png\" alt=\"image\" width=\"825\" height=\"569\" border=\"0\" \/><\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">\u00a0<\/span><a href=\"https:\/\/codex.wordpress.org\/XML-RPC_WordPress_API\"><span style=\"font-size: large;\">https:\/\/codex.wordpress.org\/XML-RPC_WordPress_API<\/span><\/a><span style=\"font-size: large;\"> \uff0c\u53ef\u4ee5\u7684<\/span><\/p>\n<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image-38.png\"><span style=\"font-size: large;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image_thumb-39.png\" alt=\"image\" width=\"824\" height=\"506\" border=\"0\" \/><\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">https:\/\/developers.google.com\/<\/span><span style=\"font-size: large;\">\uff0c\u53ef\u4ee5\u7684<\/span><\/p>\n<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image-39.png\"><span style=\"font-size: large;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image_thumb-40.png\" alt=\"image\" width=\"827\" height=\"316\" border=\"0\" \/><\/span><\/a><\/p>\n<p><a title=\"https:\/\/www.slideshare.net\/\" href=\"https:\/\/www.slideshare.net\/\"><span style=\"font-size: large;\">https:\/\/www.slideshare.net\/<\/span><\/a><span style=\"font-size: large;\">\uff0c\u53ef\u4ee5\u7684<\/span><\/p>\n<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image-40.png\"><span style=\"font-size: large;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2020\/01\/image_thumb-41.png\" alt=\"image\" width=\"835\" height=\"433\" border=\"0\" \/><\/span><\/a><\/p>\n<p><span style=\"font-size: large;\">\u4f46\u662f\u5bf9\u4e8e\u4e00\u4e9b\u4f7f\u7528HSTS\u534f\u8bae\u7684\u7f51\u7ad9\uff0c\u8c8c\u4f3c\u8fd8\u6709\u4e9b\u95ee\u9898\uff0c\u8fd9\u4e2a\u8981\u540e\u9762\u7814\u7a76\u4e00\u4e0b\uff0c\u4f30\u8ba1\u662fss5\u81ea\u8eab\u7684\u95ee\u9898\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-size: large;\"> \u540e\u8bb0\uff1a\u5982\u679c\u9700\u8981\u914d\u7f6e\u8bbf\u95ee\u6743\u9650\uff0c\u8bf7\u6309\u5982\u4e0b\u4fee\u6539\uff1a<\/span><\/p>\n<p><span style=\"font-size: large;\">a\u3001\u5f00\u542f\u7528\u6237\u540d\u5bc6\u7801\u9a8c\u8bc1\u673a\u5236 <\/span><\/p>\n<p><span style=\"font-size: large;\">vi \/etc\/opt\/ss5\/ss5.conf<\/span><\/p>\n<p><span style=\"font-size: large;\">\u5728ss5.conf\u4e2d\u627e\u5230auth\u548cpermit\u4e24\u884c\uff0c\u6309\u7167\u4e0b\u9762\u7684\u683c\u5f0f\u8fdb\u884c\u4fee\u6539<\/span><\/p>\n<p><span style=\"font-size: large;\">auth\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 u<br \/>\npermit\u00a0 u\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/span><\/p>\n<p><span style=\"font-size: large;\">\u00a0 b \u3001\u8bbe\u7f6e\u7528\u6237\u540d\u548c\u5bc6\u7801\u00a0 vi \/etc\/opt\/ss5\/ss5.passwd<br \/>\n\u4e00\u884c\u4e00\u4e2a\u8d26\u53f7\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e4b\u95f4\u7528\u7a7a\u683c\u95f4\u9694\uff0c\u4f8b\u5982\uff1a<\/span><\/p>\n<p><span style=\"font-size: large;\">\u00a0\u00a0 user1 123<br \/>\nuser2 234<\/span><\/p>\n<p><span style=\"font-size: large;\">c\u3001\u91cd\u542f\u670d\u52a1\u751f\u6548<\/span><\/p>\n<p><span style=\"font-size: large;\">\u00a0\u00a0 service ss5 restart<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">\u76f8\u5173\u4fe1\u606f\uff1a<\/span><\/strong><\/p>\n<ol>\n<li><span style=\"font-size: large;\">Linux Socks Server 5\uff1a<\/span><a href=\"https:\/\/sourceforge.net\/projects\/ss5\/\"><span style=\"font-size: large;\">https:\/\/sourceforge.net\/projects\/ss5\/<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">Socks Server 5 \u4e0b\u8f7d\uff1a<\/span><a href=\"https:\/\/sourceforge.net\/projects\/ss5\/files\/ss5\/3.8.9-8\/\"><span style=\"font-size: large;\">https:\/\/sourceforge.net\/projects\/ss5\/files\/ss5\/3.8.9-8\/<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">Linux\u642d\u5efaSocks5\u4ee3\u7406\u670d\u52a1\u5668 <\/span><a href=\"https:\/\/www.cnblogs.com\/marklove\/p\/9669025.html\"><span style=\"font-size: large;\">https:\/\/www.cnblogs.com\/marklove\/p\/9669025.html<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">yum\u56fd\u5185\u955c\u50cf\u914d\u7f6e <\/span><a href=\"https:\/\/www.cnblogs.com\/ziyunlong\/p\/9703130.html\"><span style=\"font-size: large;\">https:\/\/www.cnblogs.com\/ziyunlong\/p\/9703130.html<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">yum\u6e90\u7684\u914d\u7f6e \u955c\u50cf\u6e90\u7684\u914d\u7f6e <\/span><a href=\"https:\/\/blog.csdn.net\/langdei\/article\/details\/100546370\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/langdei\/article\/details\/100546370<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">Centos6.5 \u9632\u706b\u5899\u5f00\u653e\u7aef\u53e3 <\/span><a href=\"https:\/\/blog.csdn.net\/jjboom425\/article\/details\/84533730\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/jjboom425\/article\/details\/84533730<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">Linux\u4e0bCentos7\u5bf9\u5916\u5f00\u653e\u7aef\u53e3 <\/span><a href=\"https:\/\/blog.csdn.net\/realjh\/article\/details\/82048492\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/realjh\/article\/details\/82048492<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">Linux CentOS7 \u5f00\u542f80\uff0c443\u7aef\u53e3\u5916\u7f51\u8bbf\u95ee\u6743\u9650 <\/span><a href=\"https:\/\/blog.csdn.net\/u011477914\/article\/details\/88862041\"><span style=\"font-size: large;\">https:\/\/blog.csdn.net\/u011477914\/article\/details\/88862041<\/span><\/a><\/li>\n<li><span style=\"font-size: large;\">35 Practical Examples of Linux Find Command <\/span><a href=\"https:\/\/www.tecmint.com\/35-practical-examples-of-linux-find-command\/\"><span style=\"font-size: large;\">https:\/\/www.tecmint.com\/35-practical-examples-of-linux-find-command\/<\/span><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7b97\u662f\u4e00\u4e2aLinux\u7ba1\u7406\u5458\u7684\u57fa\u672c\u6280\u80fd\u4e86\uff0c\u5c1d\u8bd5\u4e86\u4e00\u4e0b\uff0c\u6b65\u9aa4\u8fd8\u662f\u633a\u591a\u7684\u3002\u6298\u817e\u4e86\u4e00\u4f1a\u513f\u624d\u641e\u5b9a\u4e86\uff0c\u4e0d\u8fc7\u7531\u4e8e\u865a\u62df\u673a\u548c\u7f51\u7edc&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[744,284,308],"tags":[458,745,24],"views":11613,"_links":{"self":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/6064"}],"collection":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6064"}],"version-history":[{"count":4,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/6064\/revisions"}],"predecessor-version":[{"id":6069,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/6064\/revisions\/6069"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/media\/6061"}],"wp:attachment":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6064"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}