{"id":561,"date":"2014-01-06T23:47:03","date_gmt":"2014-01-06T15:47:03","guid":{"rendered":"http:\/\/www.361.xxx\/?p=561"},"modified":"2014-01-06T23:47:03","modified_gmt":"2014-01-06T15:47:03","slug":"%e5%9f%ba%e4%ba%8esquid%e7%9a%84ipv4ipv6%e7%9a%84%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=561","title":{"rendered":"\u57fa\u4e8esquid\u7684ipv4\/ipv6\u7684\u4ee3\u7406\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5148\u7b80\u5355\u7684\u8bf4\u4e0bsquid\u7684\u6982\u8ff0:Squid\u8fd0\u884c\u5728\u6240\u6709\u6d41\u884c\u7684Unix\u7cfb\u7edf\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5728Microsoft Windows\u4e0a\u8fd0\u884c\u3002squid\u5bf9\u786c\u4ef6\u8981\u6c42\u4e0d\u7b97\u9ad8\u3002\u5185\u5b58\u662f\u6700\u91cd\u8981\u7684\u8d44\u6e90\u3002\u5185\u5b58\u77ed\u7f3a\u4f1a\u4e25\u91cd\u5f71\u54cd\u6027\u80fd\u3002\u78c1\u76d8\u7a7a\u95f4\u4e5f\u662f\u53e6\u4e00\u4e2a\u91cd\u8981\u56e0\u7d20\u3002\u66f4\u591a\u7684\u78c1\u76d8\u7a7a\u95f4\u610f\u5473\u7740\u66f4\u591a\u7684\u7f13\u5b58\u76ee\u6807\u548c\u66f4\u9ad8\u7684\u547d\u4e2d\u7387\u3002\u5feb\u901f\u7684\u78c1\u76d8\u548c\u9a71\u52a8\u5668\u4e5f\u662f\u6709\u5229\u7684\u3002\u5982\u679c\u4f60\u820d\u5f97\u82b1\u94b1\uff0cSCSI\u78c1\u76d8\u6bd4ATA\u7684\u6267\u884c\u6027\u80fd\u597d\u3002\u5f53\u7136\u5feb\u901f\u7684CPU\u4e5f\u662f\u597d\u7684\uff0c\u4f46\u5b83\u5e76\u4e0d\u662f\u63d0\u9ad8\u6027\u80fd\u7684\u5173\u952e\u56e0\u7d20squid\u662f\u5f00\u6e90\u7684,\u662f\u81ea\u7531\u8f6f\u4ef6\u548c\u5408\u4f5c\u9879\u76ee\u3002\u5927\u5bb6\u5982\u679c\u5bf9squid\u611f\u5174\u8da3\uff0c\u6211\u7ed9\u5927\u5bb6\u63a8\u8350\u4e00\u7bc7\u6587\u7ae0\uff1asquid\u6743\u5a01\u6307\u5357<br \/>\n\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u5148\u6765\u8bf4\u8bf4\u5b89\u88c5\u3002\u6211\u7684\u5b9e\u9a8c\u73af\u5883\u4e3adebian\u7cfb\u7edf\u3002squid\u7248\u672c\u4e3a3.1,\u8fd8\u9700\u8981automake\u7248\u672c\u57281.5\u4ee5\u4e0a\u3002automake\u53casquid\u6240\u4f9d\u8d56\u7684\u5173\u7cfb\u5305\u7684\u5b89\u88c5\uff0c\u6211\u8fd9\u91cc\u90fd\u4e0d\u5e16\u51fa\u6765\u4e86\u3002\u5927\u5bb6\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u9047\u5230\u9519\u8bef\uff0c\u8bf7\u9996\u5148\u4f7f\u7528google\u6216baidu\uff0c\u8fd9\u662f\u6211\u4eec\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u975e\u5e38\u597d\u7684\u8001\u5e08\uff01<br \/>\n#tar -zxvf squid-3.1.0.3.tar.gz<br \/>\n#cd squid-3.1.0.3<br \/>\n#.\/bootstrap.sh<br \/>\n#adduser --no-create-home squid (\u5efa\u7acb\u4e00\u4e2a\u65e0\u5bb6\u76ee\u5f55\u7684\u5e10\u53f7squid\uff09<br \/>\n#chown -R squid:squid squid-3.1.0.3<br \/>\n#mkdir \/opt\/squid(\u5efa\u7acb\u4e00\u4e2a\u5b89\u88c5\u76ee\u5f55\uff09<br \/>\n#chown -R squid:squid \/opt\/squid<br \/>\n#su squid<br \/>\n#.\/configure --prefix=\/opt\/squid<br \/>\n#make<br \/>\n#make install<br \/>\n#.\/opt\/squid\/sbin\/squid -z (\u5236\u4f5c\u5feb\u53d6\u76ee\u5f55\uff09<br \/>\n\u4e0b\u9762\u662f\u8bbe\u5b9asquid\uff0c\u8fd9\u91cc\u6211\u4e5f\u53ea\u8d34\u51fa\u6700\u91cd\u8981\u7684\uff0c\u5c31\u662f\u652f\u6301ipv6\u7684\u4ee3\u7406\u8bbf\u95ee\u3002<br \/>\n&nbsp;<br \/>\nudp_outgoing_address ::<br \/>\nudp_incoming_address ::<br \/>\ntcp_outgoing_address ::<br \/>\nwccp_router ::<br \/>\n&nbsp;<br \/>\nacl localhost src ::ffff:127.0.0.1 ::1<br \/>\nacl al src ::\/0<br \/>\n&nbsp;<br \/>\nhttp_access allow al<br \/>\n&nbsp;<br \/>\n\u540e\u9762\u7684\u914d\u7f6e\u7f51\u4e0a\u5927\u628a\u7684\u662f\u54c8\u3002\u5927\u5bb6\u53ef\u4ee5\u505a\u53c2\u7167\uff01\u8fd9\u6837\u4e00\u4e2aipv4\/ipv6\u7684\u4ee3\u7406\u670d\u52a1\u5668\u5c31OK\u4e86\uff01<br \/>\n\u628a\u5b83\u542f\u52a8\u8d77\u6765\u5427 #.\/opt\/squid\/sbin\/squid \u00a0\u6b64\u6587\u4ec5\u4f9b\u53c2\u8003\uff0c\u6709\u4ec0\u4e48\u597d\u7684\u610f\u89c1\u53ca\u5efa\u8bae\u6b22\u8fce\u5927\u5bb6\u53ca\u65f6\u63d0\u51fa\u6765\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u7b80\u5355\u7684\u8bf4\u4e0bsquid\u7684\u6982\u8ff0:Squid\u8fd0\u884c\u5728\u6240\u6709\u6d41\u884c\u7684Unix\u7cfb\u7edf\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5728Microsoft Windows\u4e0a\u8fd0\u884c\u3002squi &#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":[20],"tags":[125,211],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-ipv6jishu","tag-ipv6","tag-squid-ipv6"],"_links":{"self":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/561","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=561"}],"version-history":[{"count":0,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/561\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}