{"id":380,"date":"2019-10-18T19:19:49","date_gmt":"2019-10-18T09:19:49","guid":{"rendered":"https:\/\/ghiassy.net\/?p=380"},"modified":"2019-10-18T19:38:47","modified_gmt":"2019-10-18T09:38:47","slug":"squid-simple-configuration","status":"publish","type":"post","link":"https:\/\/ghiassy.net\/?p=380","title":{"rendered":"Squid Configuration With Authentication"},"content":{"rendered":"\n<p><span style=\"color: #00ff00;\">This is a simply configuration settings for &#8220;Squid&#8221; server to be used as a proxy server to forward the connection thought the server.<\/span><\/p>\n<p><span style=\"color: #00ff00;\">Digested Authentication also added to force users who are not white-listed to\u00a0 authenticate before using the server. White-listed IP addresses won&#8217;t be authenticated for simplicity.\u00a0<\/span><\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:sh decode:true\" title=\"\/etc\/squid\/squid.conf\"># File \/etc\/squid\/squid.conf\n#+++++++++++++++++++++++++++\n\n# Create Cache Directory\ncache_dir ufs \/opt\/squid\/var\/cache\/ 500 16 256\n\n# Access Control List for users\nacl my_machine src 192.168.1.250\nacl ubuntu src 192.168.1.52\nhttp_access allow my_machine\nhttp_access allow ubuntu\n\n#Authentication with digest mode -  PASSWORD SENT IN MORE SECURE WAY AND DIGESTED \nauth_param digest program  \/usr\/lib\/squid\/digest_file_auth -c \/etc\/squid\/passwords\nauth_param digest realm proxy\nauth_param digest children 5\n\nacl authenticated proxy_auth REQUIRED\nhttp_access allow authenticated\n\n\n#Privacy Things\nvia off\nforwarded_for off\nfollow_x_forwarded_for deny all\n<\/pre>\n<p>\u00a0<\/p>\n<p><span style=\"color: #00ff00;\">Hope this helps \ud83d\ude42\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a simply configuration settings for &#8220;Squid&#8221; server to be used as a proxy server to forward the connection thought the server. Digested Authentication also added to force users who are not white-listed to\u00a0 authenticate before using the server. White-listed IP addresses won&#8217;t be authenticated for simplicity.\u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-linux","category-servers"],"_links":{"self":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":13,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":395,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions\/395"}],"wp:attachment":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}