{"id":6349,"date":"2012-08-28T12:34:51","date_gmt":"2012-08-28T05:34:51","guid":{"rendered":"http:\/\/www.yamagiwa2000.com\/blog\/?p=6349"},"modified":"2012-08-28T12:34:51","modified_gmt":"2012-08-28T05:34:51","slug":"%e3%81%95%e3%81%8f%e3%82%89vps%e3%81%a7proxy%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e7%ab%8b%e3%81%a6%e3%81%a6%e3%81%bf%e3%82%8b-2012%e5%b9%b408%e6%9c%8824%e6%97%a5","status":"publish","type":"post","link":"https:\/\/www.yamagiwa2000.com\/blog\/?p=6349","title":{"rendered":"\u3055\u304f\u3089VPS\u3067Proxy\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u307f\u308b 2012\u5e7408\u670824\u65e5"},"content":{"rendered":"<p><a href=\"http:\/\/www.yamagiwa2000.com\/blog\/wp-content\/uploads\/2012\/08\/aaa.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.yamagiwa2000.com\/blog\/wp-content\/uploads\/2012\/08\/aaa-500x130.png\" alt=\"\" title=\"aaa\" width=\"500\" height=\"130\" class=\"alignnone size-medium wp-image-6350\" srcset=\"https:\/\/www.yamagiwa2000.com\/blog\/wp-content\/uploads\/2012\/08\/aaa-500x130.png 500w, https:\/\/www.yamagiwa2000.com\/blog\/wp-content\/uploads\/2012\/08\/aaa.png 511w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>\u4eca\u5e74\u3001<a href=\"http:\/\/vps.sakura.ad.jp\/\" target=\"_blank\">\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8<\/a>\u304cVPS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30aa\u30fc\u30d7\u30f3\u3055\u305b\u305f\u3002<\/p>\n<p>VPS\u3068\u3044\u3046\u306e\u306f\u5927\u304d\u306a\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u7528\u610f\u3057\u3066Xen\u3084VMware\u306a\u3069\u306e\u4eee\u60f3\u5316\u30b7\u30b9\u30c6\u30e0\u3067\u4eee\u60f3\u7684\u306b\u5207\u308a\u51fa\u3057\u305f\u30b5\u30fc\u30d0\u3092\u307e\u308b\u3054\u3068\u8cb8\u3057\u51fa\u3059\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u3002\u30a6\u30a7\u30d6\u304b\u3089\u7533\u3057\u8fbc\u307f\u304c\u51fa\u6765\u3066\u3001\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u6255\u3044\u3001\u7533\u3057\u8fbc\u3093\u3060\u5f8c\u3059\u3050\u306b\u4f7f\u7528\u304c\u53ef\u80fd\u3002\u3055\u3089\u306b\u30e1\u30e2\u30ea1G\u3001HDD1G\u306e\u69cb\u6210\u3067\u521d\u671f\u8cbb\u7528\u7121\u3057\u306e\u4f7f\u7528\u6599\u304c\u6708\u3005980\u5186\u3068\u3044\u3046\u4f4e\u4fa1\u683c\u304c\u9b45\u529b\u3067\u4ee5\u524d\u304b\u3089\u4f7f\u3063\u3066\u307f\u305f\u304f\u3066\u3044\u308d\u3044\u308d\u30a2\u30a4\u30c7\u30a2\u3092\u8003\u3048\u3066\u3044\u305f\u3002<\/p>\n<p>\u305d\u306e\u4e2d\u3067\u3001\u3061\u3087\u3063\u3068\u5fc5\u8981\u304c\u3042\u308a\u3001\u30d7\u30ed\u30ad\u30b7\u3092\u7acb\u3066\u308b\u7528\u4e8b\u304c\u51fa\u6765\u305f\u306e\u3067\u5b9f\u969b\u306b\u5951\u7d04\u3001squid\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>\u5951\u7d04\u306f\u5fc5\u8981\u306a\u9805\u76ee\u3092\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u30b5\u30a4\u30c8\u3067\u5165\u529b\u3057\u3066\u884c\u3063\u3066\u3001\u6700\u5f8c\u306b\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u5165\u529b\u3002\u30bf\u30a4\u306b\u5c45\u3066\u308b\u3068\u3088\u304f\u4f53\u9a13\u3059\u308b\u4e8b\u3060\u304c\u6d77\u5916(\u30bf\u30a4\u304b\u3089\u898b\u3066)\u306e\u30b5\u30a4\u30c8\u3067\u30bf\u30a4\u3067\u767a\u884c\u3055\u308c\u305f\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u304c\u901a\u3089\u306a\u3044\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u3002\u30d0\u30f3\u30b3\u30af\u9280\u884c\u306e\u3082\u306e\u3068\u304b\u3001\u30a4\u30aa\u30f3\u306e\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u3068\u304b\u3001\u30ab\u30b7\u30b3\u30f3\u9280\u884c\u306e\u3082\u306e\u3068\u304b\u8a66\u3057\u305f\u3051\u3069\u30c0\u30e1\u3067\u7d50\u5c40\u697d\u5929\u9280\u884c\u306e\u30c7\u30d3\u30c3\u30c8\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u3002\u4f7f\u3063\u305f\u3053\u3068\u3042\u308b\u4eba\u306b\u805e\u304f\u3068KTC\u306eJCB\u30ab\u30fc\u30c9\u306f\u4f7f\u3048\u305f\u3089\u3057\u3044\u3002<\/p>\n<p>\u5951\u7d04\u3059\u308b\u3068\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u56fa\u5b9a\u306eIP\u3092\u4ed8\u4e0e\u3057\u305fVPS\u30b5\u30fc\u30d0\u3092\u3042\u3066\u304c\u308f\u308c\u308b\u3002\u30a6\u30a7\u30d6\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u306f\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u3001\u505c\u6b62\u3001\u518d\u8d77\u52d5\u306a\u3069\u306e\u64cd\u4f5c\u304c\u53ef\u80fd\u3002\u307e\u305f\u3001\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u3082\u7528\u610f\u3055\u308c\u3066\u308b\u306e\u3067\u3001\u3082\u3057\u306a\u3093\u3089\u304bssh\u304c\u3064\u306a\u304c\u3089\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306f\u3053\u3053\u304b\u3089\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3002\u307e\u305f\u30b5\u30fc\u30d0\u306eCPU\/Network\/Disk I\/O\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u6d88\u8cbb\u72b6\u6cc1\u3082\u7c21\u5358\u306a\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002VPS\u306a\u306e\u3067\u30b5\u30fc\u30d0\u306e\u30ea\u30bb\u30c3\u30c8\u3001OS\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306f\u3081\u3061\u3083\u65e9\u3044\u30022,3\u5206\u3067\u521d\u671f\u72b6\u614b\u306b\u3002<\/p>\n<p>\u6a19\u6e96\u3067ssh\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u7533\u3057\u8fbc\u307f\u5b8c\u4e86\u6642\u306b\u5c4a\u304f\u30e1\u30fc\u30eb\u306b\u66f8\u3044\u3066\u3042\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u63a5\u7d9a\u304c\u53ef\u80fd\u3002\u7ba1\u7406\u753b\u9762\u306e\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306f\u91cd\u3044\u306e\u3067\u57fa\u672c\u306f\u3053\u3061\u3089\u3092\u4f7f\u3046\u4e8b\u306b\u306a\u308b\u3060\u308d\u3046\u3002\u3055\u3066\u3001\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u3002\u3055\u304f\u3089\u306eVPS\u30b5\u30fc\u30d0\u306b\u306fsquid\u306f\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067<\/p>\n<p><b>yum install squid<\/b><\/p>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u4eca\u56de\u306fADSL\u74b0\u5883\u304b\u3089\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067IP\u30a2\u30c9\u30ec\u30b9\u5236\u9650\u3092\u305b\u305a\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306eBasic\u8a8d\u8a3c\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u9650\u3057\u305f\u3044\u3002\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u3067\u3001\u305d\u306e\u30c4\u30fc\u30eb\u304c\u6a19\u6e96\u3067squid\u306b\u306f\u4ed8\u5c5e\u3057\u306a\u3044\u3002Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p><b>yum install httpd<\/b><\/p>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e2d\u3067htpasswd\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<p><b>htpasswd -c -m \/etc\/squid\/passwd user01<\/b><\/p>\n<p>\u306e\u66f8\u5f0f\u306b\u3066\/etc\/squid\/passwd\u306e\u30d5\u30a1\u30a4\u30eb\u3092htpasswd\u306b\u4f5c\u6210\u3055\u305b\u3066\u305d\u3053\u306buser01\u3092\u767b\u9332\u3002htpasswd\u306f\u6a19\u6e96\u3067\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u30928\u6587\u5b57\u307e\u3067\u3057\u304b\u53d7\u3051\u4ed8\u3051\u3089\u308c\u306a\u3044\u306e\u3067\u5fc5\u305a-m\u3092\u3064\u3051\u308b\u3053\u3068\u3002\u3082\u3057\u3064\u3051\u305a\u306b8\u6587\u5b57\u4ee5\u4e0a\u5165\u529b\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b8\u6587\u5b57\u4ee5\u964d\u306f\u30ab\u30c3\u30c8\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u767b\u9332\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092&#8221;1234567890&#8243;\u3067\u767b\u9332\u3059\u308b\u3068\u3001-m\u306a\u3057\u306e\u5834\u5408&#8221;12345678&#8243;\u3068\u3057\u304b\u767b\u9332\u3055\u308c\u306a\u3044\u3002<\/p>\n<p>\u4e8c\u4eba\u76ee\u4ee5\u964d\u306e\u30e6\u30fc\u30b6\u3092\u767b\u9332\u3059\u308b\u969b\u306b\u306f<\/p>\n<p><b>htpasswd -m \/etc\/squid\/passwd user02<\/b><\/p>\n<p>-c\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u306e\u3067\u3053\u308c\u3092\u3064\u3051\u305f\u307e\u307e\u306b\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3057\u307e\u3046\u3002\u305d\u308c\u307e\u3067\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u60c5\u5831\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067-c\u3092\u53d6\u3063\u3066\u8ffd\u8a18\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<p>\u3055\u3089\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3082\u305d\u308c\u3092\u5229\u7528\u3067\u304d\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304cyum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fsquid\u306b\u306f\u4ed8\u5c5e\u3057\u306a\u3044\u306e\u3067\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5229\u7528\u3059\u308b\u3002<\/p>\n<p> <b><a href=\"http:\/\/www.squid-cache.org\">squid : Optimising Web Delivery<\/a><\/b><\/p>\n<p><b>wget <a href=\"http:\/\/www.squid-cache.org\/Versions\/v3\/3.2\/squid-3.2.1.tar.gz\" rel=\"nofollow\">http:\/\/www.squid-cache.org\/Versions\/v3\/3.2\/squid-3.2.1.tar.gz<\/a><\/b><\/p>\n<p>\u3067VPS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089TarBall\u3092\u53d6\u5f97\u3002\/root\u306a\u3069\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067<\/p>\n<p><b>tar xvzf squid-3.2.1.tar.gz<br \/>\ncd squid-3.2.1.tar.gz<br \/>\n.\/configure<br \/>\nmake<br \/>\ncd auth_modules<br \/>\ncd NCSA<br \/>\nmake install<\/b><\/p>\n<p>\u3068\u3059\u308b\u3053\u3068\u3067squid\u306e\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u307f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u63c3\u3063\u305f\u306e\u3067\/etc\/squid\/squid.conf\u3092\u7de8\u96c6\u3057\u3066\u4e0a\u8a18\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3002<\/p>\n<p><b><br \/>\nauth_param basic program \/usr\/local\/squid\/libexec\/basic_ncsa_auth \/etc\/squid\/passwd<br \/>\nacl password proxy_auth REQUIRED<br \/>\nhttp_access allow password<br \/>\n<\/b><\/p>\n<p>\u3053\u308c\u3067Proxy\u63a5\u7d9a\u6642\u306b\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a8d\u8a3c\u3092\u805e\u3044\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u307e\u305f\u3001\u4ee5\u4e0b\u306f\u5b8c\u5168\u533f\u540dProxy\u8a2d\u5b9a\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8PC\u5074\u306eIP\u30a2\u30c9\u30ec\u30b9\u60c5\u5831\u3092Web\u30b5\u30fc\u30d0\u5074\u306b\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a\u3002<\/p>\n<p><b><br \/>\nvisible_hostname unkown<br \/>\nforwarded_for off<br \/>\nrequest_header_access X-FORWARDED-FOR deny all<br \/>\nrequest_header_access Via deny all<br \/>\nrequest_header_access Cache-Control deny all<br \/>\n<\/b><\/p>\n<p>\u3053\u3061\u3089\u3082\u8ffd\u8a18\u3002\u3053\u308c\u3067\u4e00\u5fdc\u5b8c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5e74\u3001\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304cVPS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30aa\u30fc\u30d7\u30f3\u3055\u305b\u305f\u3002 VPS\u3068\u3044\u3046\u306e\u306f\u5927\u304d\u306a\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u7528\u610f\u3057\u3066Xen\u3084VMware\u306a\u3069\u306e\u4eee\u60f3\u5316\u30b7\u30b9\u30c6\u30e0\u3067\u4eee\u60f3\u7684\u306b\u5207\u308a\u51fa\u3057\u305f\u30b5\u30fc\u30d0\u3092\u307e\u308b\u3054\u3068\u8cb8\u3057\u51fa\u3059\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u3002\u30a6\u30a7\u30d6\u304b\u3089\u7533\u3057\u8fbc\u307f\u304c\u51fa\u6765\u3066\u3001\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u6255\u3044\u3001\u7533\u3057\u8fbc\u3093\u3060\u5f8c\u3059\u3050\u306b\u4f7f\u7528\u304c\u53ef\u80fd\u3002\u3055\u3089\u306b\u30e1\u30e2\u30ea1G\u3001HDD1G\u306e\u69cb\u6210\u3067\u521d\u671f\u8cbb\u7528\u7121\u3057\u306e\u4f7f\u7528\u6599\u304c\u6708\u3005980\u5186\u3068\u3044\u3046\u4f4e\u4fa1\u683c\u304c\u9b45\u529b\u3067\u4ee5\u524d\u304b\u3089\u4f7f\u3063\u3066\u307f\u305f\u304f\u3066\u3044\u308d\u3044\u308d\u30a2\u30a4\u30c7\u30a2\u3092\u8003\u3048\u3066\u3044\u305f\u3002 \u305d\u306e\u4e2d\u3067\u3001\u3061\u3087\u3063\u3068\u5fc5\u8981\u304c\u3042\u308a\u3001\u30d7\u30ed\u30ad\u30b7\u3092\u7acb\u3066\u308b\u7528\u4e8b\u304c\u51fa\u6765\u305f\u306e\u3067\u5b9f\u969b\u306b\u5951\u7d04\u3001squid\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002 \u5951\u7d04\u306f\u5fc5\u8981\u306a\u9805\u76ee\u3092\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u30b5\u30a4\u30c8\u3067\u5165\u529b\u3057\u3066\u884c\u3063\u3066\u3001\u6700\u5f8c\u306b\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u5165\u529b\u3002\u30bf\u30a4\u306b\u5c45\u3066\u308b\u3068\u3088\u304f\u4f53\u9a13\u3059\u308b\u4e8b\u3060\u304c\u6d77\u5916(\u30bf\u30a4\u304b\u3089\u898b\u3066)\u306e\u30b5\u30a4\u30c8\u3067\u30bf\u30a4\u3067\u767a\u884c\u3055\u308c\u305f\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u304c\u901a\u3089\u306a\u3044\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u3002\u30d0\u30f3\u30b3\u30af\u9280\u884c\u306e\u3082\u306e\u3068\u304b\u3001\u30a4\u30aa\u30f3\u306e\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u3068\u304b\u3001\u30ab\u30b7\u30b3\u30f3\u9280\u884c\u306e\u3082\u306e\u3068\u304b\u8a66\u3057\u305f\u3051\u3069\u30c0\u30e1\u3067\u7d50\u5c40\u697d\u5929\u9280\u884c\u306e\u30c7\u30d3\u30c3\u30c8\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u3002\u4f7f\u3063\u305f\u3053\u3068\u3042\u308b\u4eba\u306b\u805e\u304f\u3068KTC\u306eJCB\u30ab\u30fc\u30c9\u306f\u4f7f\u3048\u305f\u3089\u3057\u3044\u3002 \u5951\u7d04\u3059\u308b\u3068\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u56fa\u5b9a\u306eIP\u3092\u4ed8\u4e0e\u3057\u305fVPS\u30b5\u30fc\u30d0\u3092\u3042\u3066\u304c\u308f\u308c\u308b\u3002\u30a6\u30a7\u30d6\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u306f\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u3001\u505c\u6b62\u3001\u518d\u8d77\u52d5\u306a\u3069\u306e\u64cd\u4f5c\u304c\u53ef\u80fd\u3002\u307e\u305f\u3001\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u3082\u7528\u610f\u3055\u308c\u3066\u308b\u306e\u3067\u3001\u3082\u3057\u306a\u3093\u3089\u304bssh\u304c\u3064\u306a\u304c\u3089\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306f\u3053\u3053\u304b\u3089\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3002\u307e\u305f\u30b5\u30fc\u30d0\u306eCPU\/Network\/Disk I\/O\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u6d88\u8cbb\u72b6\u6cc1\u3082\u7c21\u5358\u306a\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002VPS\u306a\u306e\u3067\u30b5\u30fc\u30d0\u306e\u30ea\u30bb\u30c3\u30c8\u3001OS\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306f\u3081\u3061\u3083\u65e9\u3044\u30022,3\u5206\u3067\u521d\u671f\u72b6\u614b\u306b\u3002 \u6a19\u6e96\u3067ssh\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u7533\u3057\u8fbc\u307f\u5b8c\u4e86\u6642\u306b\u5c4a\u304f\u30e1\u30fc\u30eb\u306b\u66f8\u3044\u3066\u3042\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u63a5\u7d9a\u304c\u53ef\u80fd\u3002\u7ba1\u7406\u753b\u9762\u306e\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306f\u91cd\u3044\u306e\u3067\u57fa\u672c\u306f\u3053\u3061\u3089\u3092\u4f7f\u3046\u4e8b\u306b\u306a\u308b\u3060\u308d\u3046\u3002\u3055\u3066\u3001\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u3002\u3055\u304f\u3089\u306eVPS\u30b5\u30fc\u30d0\u306b\u306fsquid\u306f\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067 yum install squid \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u4eca\u56de\u306fADSL\u74b0\u5883\u304b\u3089\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067IP\u30a2\u30c9\u30ec\u30b9\u5236\u9650\u3092\u305b\u305a\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306eBasic\u8a8d\u8a3c\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u9650\u3057\u305f\u3044\u3002\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u3067\u3001\u305d\u306e\u30c4\u30fc\u30eb\u304c\u6a19\u6e96\u3067squid\u306b\u306f\u4ed8\u5c5e\u3057\u306a\u3044\u3002Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 yum install httpd \u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e2d\u3067htpasswd\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3002 htpasswd -c -m \/etc\/squid\/passwd user01 \u306e\u66f8\u5f0f\u306b\u3066\/etc\/squid\/passwd\u306e\u30d5\u30a1\u30a4\u30eb\u3092htpasswd\u306b\u4f5c\u6210\u3055\u305b\u3066\u305d\u3053\u306buser01\u3092\u767b\u9332\u3002htpasswd\u306f\u6a19\u6e96\u3067\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u30928\u6587\u5b57\u307e\u3067\u3057\u304b\u53d7\u3051\u4ed8\u3051\u3089\u308c\u306a\u3044\u306e\u3067\u5fc5\u305a-m\u3092\u3064\u3051\u308b\u3053\u3068\u3002\u3082\u3057\u3064\u3051\u305a\u306b8\u6587\u5b57\u4ee5\u4e0a\u5165\u529b\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b8\u6587\u5b57\u4ee5\u964d\u306f\u30ab\u30c3\u30c8\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u767b\u9332\u3057\u3066\u3057\u307e\u3046\u3002 \u30d1\u30b9\u30ef\u30fc\u30c9\u3092&#8221;1234567890&#8243;\u3067\u767b\u9332\u3059\u308b\u3068\u3001-m\u306a\u3057\u306e\u5834\u5408&#8221;12345678&#8243;\u3068\u3057\u304b\u767b\u9332\u3055\u308c\u306a\u3044\u3002 \u4e8c\u4eba\u76ee\u4ee5\u964d\u306e\u30e6\u30fc\u30b6\u3092\u767b\u9332\u3059\u308b\u969b\u306b\u306f htpasswd -m \/etc\/squid\/passwd user02 -c\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u306e\u3067\u3053\u308c\u3092\u3064\u3051\u305f\u307e\u307e\u306b\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3057\u307e\u3046\u3002\u305d\u308c\u307e\u3067\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u60c5\u5831\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067-c\u3092\u53d6\u3063\u3066\u8ffd\u8a18\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3002 \u3055\u3089\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3082\u305d\u308c\u3092\u5229\u7528\u3067\u304d\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304cyum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fsquid\u306b\u306f\u4ed8\u5c5e\u3057\u306a\u3044\u306e\u3067\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5229\u7528\u3059\u308b\u3002 squid : Optimising Web Delivery wget http:\/\/www.squid-cache.org\/Versions\/v3\/3.2\/squid-3.2.1.tar.gz \u3067VPS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089TarBall\u3092\u53d6\u5f97\u3002\/root\u306a\u3069\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067 tar xvzf squid-3.2.1.tar.gz cd squid-3.2.1.tar.gz .\/configure make cd auth_modules cd NCSA make install \u3068\u3059\u308b\u3053\u3068\u3067squid\u306e\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u307f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u3053\u308c\u3067\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u63c3\u3063\u305f\u306e\u3067\/etc\/squid\/squid.conf\u3092\u7de8\u96c6\u3057\u3066\u4e0a\u8a18\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3002 auth_param basic program \/usr\/local\/squid\/libexec\/basic_ncsa_auth \/etc\/squid\/passwd acl password proxy_auth REQUIRED http_access allow password \u3053\u308c\u3067Proxy\u63a5\u7d9a\u6642\u306b\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a8d\u8a3c\u3092\u805e\u3044\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u307e\u305f\u3001\u4ee5\u4e0b\u306f\u5b8c\u5168\u533f\u540dProxy\u8a2d\u5b9a\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8PC\u5074\u306eIP\u30a2\u30c9\u30ec\u30b9\u60c5\u5831\u3092Web\u30b5\u30fc\u30d0\u5074\u306b\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a\u3002 visible_hostname unkown forwarded_for off request_header_access X-FORWARDED-FOR deny all request_header_access Via deny all request_header_access Cache-Control deny all \u3053\u3061\u3089\u3082\u8ffd\u8a18\u3002\u3053\u308c\u3067\u4e00\u5fdc\u5b8c\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[25,149],"tags":[1160,1159,1158,1156,274,1161,1157,4456],"_links":{"self":[{"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6349"}],"collection":[{"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6349"}],"version-history":[{"count":5,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6349\/revisions"}],"predecessor-version":[{"id":6357,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6349\/revisions\/6357"}],"wp:attachment":[{"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yamagiwa2000.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}