{"id":849,"date":"2018-10-09T21:00:42","date_gmt":"2018-10-09T12:00:42","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=849"},"modified":"2021-11-03T11:22:57","modified_gmt":"2021-11-03T02:22:57","slug":"vps%e3%81%aeubuntu-16-04%e3%81%a7%e3%82%a6%e3%82%a7%e3%83%96%e3%83%97%e3%83%ad%e3%82%ad%e3%82%b7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=849","title":{"rendered":"Ubuntu\u306bSquid\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9"},"content":{"rendered":"<p>Ubuntu\u30d1\u30bd\u30b3\u30f3\u30fb\u30b5\u30fc\u30d0\u30fc\u306bSquid\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3068\u306f\u3002<\/a><\/li><li><a href=\"#Ubuntu_1604\"><span class=\"toc_number toc_depth_1\">2<\/span> Ubuntu 16.04\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9<\/a><\/li><li><a href=\"#basic\"><span class=\"toc_number toc_depth_1\">3<\/span> basic\u8a8d\u8a3c\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3068\u306f\u3002<\/span><\/h2>\n<p><a href=\"http:\/\/www.infraexpert.com\/study\/security23.html\">\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u3068\u306f<\/a><br \/>\n<a href=\"http:\/\/www.geolocation.co.jp\/learn\/inv\/11.html\">\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u306e\u5229\u7528\/\u60aa\u7528 | IP\u30e9\u30fc\u30cb\u30f3\u30b0<\/a><\/p>\n<h2><span id=\"Ubuntu_1604\">Ubuntu 16.04\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9<\/span><\/h2>\n<p><a href=\"https:\/\/qiita.com\/pcnikki\/items\/404329f9ad9cb6e235d4\">5\u5206\u3067\u4f5c\u308bPROXY\u30b5\u30fc\u30d0\u30fc &#8211; Qiita<\/a><\/p>\n<pre><code>apt-get -y install squid\n<\/code><\/pre>\n<p>\/etc\/squid\/squid.conf<\/p>\n<pre><code># # \u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\n#http_access deny all\n#http_port 3128\n\n# # \u8ffd\u52a0\n\nvisible_hostname myproxygogo.info\n\nhttp_port 60088\n\n# # IP\u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3059\u308b\u5834\u5408\u3002\u81ea\u5b85\u304b\u3089\u3057\u304b\u63a5\u7d9a\u3057\u306a\u3044\u5834\u5408\u306a\u3069\n# acl myacl src xxx.xxx.xxx.xxx\/255.255.255.255\n# http_access allow myacl\n# http_access deny all\n\nforwarded_for off\n\nheader_access X-Forwarded-For deny all\nheader_access Via deny all\nheader_access Cache-Control deny all\n<\/code><\/pre>\n<p>\u8d77\u52d5<\/p>\n<pre><code>squid -z\nservice squid start\n<\/code><\/pre>\n<p>Chrome\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b:<\/p>\n<p><a href=\"chrome:\/\/settings\/?search=\u30d7\u30ed\u30ad\u30b7\">chrome:\/\/settings\/?search=\u30d7\u30ed\u30ad\u30b7<\/a><\/p>\n<p>LAN\u306e\u8a2d\u5b9a &gt; \u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306eVPS\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b<\/p>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_6880dfb0-db9e-4dd2-b98e-1658f807ad5d.png\" alt=\"ShareX_ScreenShot_6880dfb0-db9e-4dd2-b98e-1658f807ad5d.png (959\u00d7615)\"><\/p>\n<h2><span id=\"basic\">basic\u8a8d\u8a3c\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b<\/span><\/h2>\n<p><a href=\"https:\/\/www.server-world.info\/en\/note?os=Ubuntu_16.04&amp;p=squid&amp;f=3\">Ubuntu 16.04 LTS : Squid : Set Basic Authentication : Server World<\/a><\/p>\n<p>\/etc\/squid\/squid.conf \u306b\u8ffd\u8a18<\/p>\n<pre><code>acl CONNECT method CONNECT\n# line 989: add follows for Basic auth\nauth_param basic program \/usr\/lib\/squid\/basic_ncsa_auth \/etc\/squid\/.htpasswd\nauth_param basic children 5\nauth_param basic realm Squid Basic Authentication\nauth_param basic credentialsttl 5 hours\nacl password proxy_auth REQUIRED\nhttp_access allow password\n\n<\/code><\/pre>\n<p>.htpasswd \u8a2d\u5b9a<\/p>\n<pre><code>apt-get -y install apache2-utils\nhtpasswd -c \/etc\/squid\/.htpasswd ubuntu\nservice squid restart\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u30d1\u30bd\u30b3\u30f3\u30fb\u30b5\u30fc\u30d0\u30fc\u306bSquid\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 Content [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-dH","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/849"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=849"}],"version-history":[{"count":3,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":3278,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions\/3278"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}