{"id":404,"date":"2013-08-15T22:03:44","date_gmt":"2013-08-15T14:03:44","guid":{"rendered":"http:\/\/www.cyups.com\/?p=404"},"modified":"2013-08-15T22:03:44","modified_gmt":"2013-08-15T14:03:44","slug":"centos5%e7%b3%bb%e7%bb%9f-%e6%90%ad%e5%bb%ba-socks5-%e4%bb%a3%e7%90%86%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"http:\/\/www.cyups.com\/?p=404","title":{"rendered":"Centos5\u7cfb\u7edf \u642d\u5efa socks5 \u4ee3\u7406\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u9996\u5148\u7f16\u8bd1centos5\u7684\u73af\u5883<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>yum -y install gcc automake make<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>2.\u5b89\u88c5socks5\u5fc5\u8981\u7684\u5305<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>yum -y install pam-devel openldap-devel cyrus-sasl-devel<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>3.\u4e0b\u8f7d\uff0c\u7f16\u8bd1\u5b89\u88c5ss5\uff08socks5\uff09<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>wget http:\/\/static.auvps.com\/uploads\/2013\/04\/ss5-3.6.1-1.tar.gz<\/pre>\n<p><!--CRLF--><\/p>\n<pre><\/pre>\n<p><!--CRLF--><\/p>\n<pre>tar zxvf ss5-3.6.1-1.tar.gz<\/pre>\n<p><!--CRLF--><\/p>\n<pre>cd ss5-3.6.1<\/pre>\n<p><!--CRLF--><\/p>\n<pre>.\/configure<\/pre>\n<p><!--CRLF--><\/p>\n<pre>make<\/pre>\n<p><!--CRLF--><\/p>\n<pre><\/pre>\n<p><!--CRLF--><\/p>\n<pre>make install<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>#\u542f\u52a8ss5\u670d\u52a1<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>\/etc\/init.d\/ss5 start<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>\u6dfb\u52a0ss5\u5230\u670d\u52a1\u4e2d\uff0c\u5e76\u968f\u673a\u542f\u52a8<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>chkconfig --add ss5<\/pre>\n<p><!--CRLF--><\/p>\n<pre>chkconfig ss5 on<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>ss5 \u9ed8\u8ba4\u4f7f\u75281080\u7aef\u53e3\uff0c\u5e76\u5141\u8bb8\u4efb\u4f55\u4eba\u4f7f\u7528\u3002<br \/>\n\u6211\u4eec\u53ef\u4ee5\u4fee\u6539 \/etc\/opt\/ss5\/ss5.conf \u4e2d\u7684<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre><\/pre>\n<p><!--CRLF--><\/p>\n<pre># SHost         SPort   Authentication<\/pre>\n<p><!--CRLF--><\/p>\n<pre><\/pre>\n<p><!--CRLF--><\/p>\n<pre># auth 0.0.0.0\/0   -         -<\/pre>\n<p><!--CRLF--><\/p>\n<pre>\u4fee\u6539\u4e3a\uff1a<\/pre>\n<p><!--CRLF--><\/p>\n<pre># SHost            SPort    Authentication<\/pre>\n<p><!--CRLF--><\/p>\n<pre><\/pre>\n<p><!--CRLF--><\/p>\n<pre># auth 0.0.0.0\/0     -           u<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>\u5982\u679c\u8981\u4fee\u6539\u7aef\u53e3\u53f7\u7684\u8bddvi \/etc\/rc.d\/init.d\/ss5\u627e\u5230<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>\/usr\/sbin\/ss5 \u2013t<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>\u5728\u540e\u9762 \u6dfb\u52a0\u4e0a<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>-u root -b 0.0.0.0:8833 \uff08 8833\u4e3a\u8981\u66f4\u6539\u7684\u7aef\u53e3\u53f7\uff09<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>\u8fd8\u6709\u5728<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>\/usr\/local\/sbin\/ss5 \u2013t<\/pre>\n<p><!--CRLF-->\n<\/div>\n<\/div>\n<p>\u540e\u9762\u6dfb\u52a0\u540c\u4e00\u7684\u5185\u5bb9\uff1a-u root -b 0.0.0.0:8833<br \/>\n\u5728 \/etc\/opt\/ss5\/ss5.passwd \u4e2d\u6dfb\u52a0 \u7528\u6237\u540d\u548c\u5bc6\u7801 \u5982\uff1a<br \/>\nauvps\u00a0 auvps<br \/>\n\u4f7f\u7528\u7528\u6237\u9a8c\u8bc1\uff0c\u91cd\u542fss5\u670d\u52a1<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\">\n<pre>\/etc\/init.d\/ss5 restart<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u7f16\u8bd1centos5\u7684\u73af\u5883 yum -y install gcc automake make 2.\u5b89\u88c5socks5\u5fc5\u8981\u7684\u5305 yu &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[14],"tags":[63],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-pcsoft","tag-centos5-socks5-"],"_links":{"self":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=404"}],"version-history":[{"count":0,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}