{"id":1792,"date":"2019-04-06T16:47:16","date_gmt":"2019-04-06T08:47:16","guid":{"rendered":"http:\/\/www.ouvps.com\/?p=1792"},"modified":"2019-04-06T16:47:16","modified_gmt":"2019-04-06T08:47:16","slug":"%e8%bd%ac-ubuntu-%e9%80%9a%e8%bf%87-socks5%e4%bb%a3%e7%90%86%e6%9b%b4%e5%bf%ab%e9%80%9f%e7%9a%84%e5%ae%89%e8%a3%85%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/eepu.top\/?p=1792","title":{"rendered":"[\u8f6c] Ubuntu \u901a\u8fc7 socks5\u4ee3\u7406\u66f4\u5feb\u901f\u7684\u5b89\u88c5\u66f4\u65b0"},"content":{"rendered":"<p><strong>2016\u5e7411\u670829\u65e522:25:35<\/strong><\/p>\n<ul>\n<li>\u56e0\u4e3a\u6709\u65f6\u5019\u9700\u8981\u4ece\u4e00\u4e9bppa\u6e90\u91cc\u9762\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4f46\u662f\u901f\u5ea6\u975e\u5e38\u6162\uff0c\u6240\u4ee5\u5e0c\u671b\u8bbe\u7f6e\u4ee3\u7406\u6765\u8fdb\u884c\u8fde\u63a5\u3002<\/li>\n<li>\u4ecesources.conf\u7684man\u91cc\u9762\u53d1\u73b0\uff0capt\u53ea\u652f\u6301http proxy\uff0c\u4f46\u662f\u6211\u4f7f\u7528ssh\u4ee3\u7406\u4ea7\u751f\u7684socks5\u66f4\u65b9\u4fbf\u3002<\/li>\n<li>\u90a3\u4e48\u53ea\u80fd\u4f7f\u7528tsocks\u6765\u8fdb\u884csocks\u4ee3\u7406\u4e86\u3002<\/li>\n<\/ul>\n<p><strong>\u5b89\u88c5\uff1a<\/strong><br \/>\napt-get install tsocks<\/p>\n<p><strong>\u914d\u7f6e\uff1a<\/strong><\/p>\n<ul>\n<li>vi \/etc\/tsocks.conf<\/li>\n<li>\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u914d\u7f6e\u5c31\u597d\u4e86\uff1a<\/li>\n<li>local = 192.168.1.0\/255.255.255.0 \u00a0#local\u8868\u793a\u672c\u5730\u7684\u7f51\u7edc\uff0c\u4e5f\u5c31\u662f\u4e0d\u4f7f\u7528socks\u4ee3\u7406\u7684\u7f51\u7edc<\/li>\n<li>local = 127.0.0.0\/255.0.0.0<\/li>\n<li>server = 127.0.0.1 \u00a0 #socks\u670d\u52a1\u5668\u7684IP<\/li>\n<li>server_type = 5 \u00a0#socks\u670d\u52a1\u7248\u672c<\/li>\n<li>server_port = 7070 \u00a0\uff03socks\u670d\u52a1\u4f7f\u7528\u7684\u7aef\u53e3<\/li>\n<li>\u8981\u6ce8\u610f\u7684\u662f&#8221;server&#8221;\u4e2d\u7684IP\u5fc5\u987b\u5305\u542b\u5728&#8221;local&#8221;\u91cc\u9762\uff0c\u5426\u5219\u4e0d\u80fd\u4f7f\u7528\uff0c\u6bd4\u5982\u4f7f\u7528apt\u66f4\u65b0\u7684\u65f6\u5019\u4f1a\u62a5\u4e0b\u9762\u8fd9\u4e2a\u9519\u8bef\uff1a<\/li>\n<li>0% [Working]20:13:21 libtsocks(11619): SOCKS server xxx.xx.xxx.xxx (xxx.xxx.xxx.xxx) is not on a local subnet!<\/li>\n<li>\u4f7f\u7528tsocks\u4ee3\u7406apt-get\uff1a<\/li>\n<li>tsocks apt-get update<\/li>\n<li>tsocks aptitude upgrade<\/li>\n<li>&#8230;<\/li>\n<li>\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5728\u547d\u4ee4\u524d\u9762\u52a0\u4e0a&#8221;tsocks&#8221;\u5c31\u53ef\u4ee5\u4e86\uff0ctsocks\u4f1a\u4f7f\u7528&#8221;exec&#8221;\u6765\u8fd0\u884c\u547d\u4ee4\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>2016\u5e7411\u670829\u65e522:25:35 \u56e0\u4e3a\u6709\u65f6\u5019\u9700\u8981\u4ece\u4e00\u4e9bppa\u6e90\u91cc\u9762\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4f46\u662f\u901f\u5ea6\u975e\u5e38\u6162\uff0c\u6240\u4ee5\u5e0c\u671b\u8bbe\u7f6e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/posts\/1792"}],"collection":[{"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eepu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1792"}],"version-history":[{"count":1,"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":1793,"href":"https:\/\/eepu.top\/index.php?rest_route=\/wp\/v2\/posts\/1792\/revisions\/1793"}],"wp:attachment":[{"href":"https:\/\/eepu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eepu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eepu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}