{"id":6845,"date":"2014-05-01T13:21:16","date_gmt":"2014-05-01T13:21:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/01\/simple-proxy-authentication-using-squid-collection-of-common-programming-errors\/"},"modified":"2014-05-01T13:21:16","modified_gmt":"2014-05-01T13:21:16","slug":"simple-proxy-authentication-using-squid-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/01\/simple-proxy-authentication-using-squid-collection-of-common-programming-errors\/","title":{"rendered":"Simple proxy authentication using squid-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to configure squid to require authentication.<\/p>\n<p>I&#8217;ve got squid to work without authentication, than I<\/p>\n<pre><code> htpasswd -c \/etc\/squid3\/passwd foo\n<\/code><\/pre>\n<p>after this, I&#8217;ve replaced<\/p>\n<pre><code>http_access allow all\n<\/code><\/pre>\n<p>with<\/p>\n<pre><code>acl foo proxy_auth REQUIRED    \nhttp_access allow foo\nhttp_access deny all\n<\/code><\/pre>\n<p>and added<\/p>\n<pre><code>auth_param basic program \/usr\/lib\/squid3\/ncsa_auth \/etc\/squid3\/passwd\nauth_param basic credentialsttl 30 minutes\nauth_param basic casesensitive on\n<\/code><\/pre>\n<p>to <code>\/etc\/squid3\/squid.conf<\/code>.<\/p>\n<p>Now, when I do <code>service squid3 restart<\/code>, I get<\/p>\n<pre><code>stop: Unknown instance:\nsquid3 start\/running, process 12256\n<\/code><\/pre>\n<p>when I run <code>ps aux<\/code> I can&#8217;t find squid amonst processes running and the server cannot be connected to.<\/p>\n<p>Why isn&#8217;t this working?<\/p>\n<p><strong>UPDATE<\/strong><\/p>\n<p><code>squid3 -d 10<\/code> shows:<\/p>\n<pre><code>Can't use proxy auth because no authentication schemes are fully configured.\nFATAL: ERROR: Invalid ACL: acl foo proxy_auth REQUIRED\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to configure squid to require authentication. I&#8217;ve got squid to work without authentication, than I htpasswd -c \/etc\/squid3\/passwd foo after this, I&#8217;ve replaced http_access allow all with acl foo proxy_auth REQUIRED http_access allow foo http_access deny all and added auth_param basic program \/usr\/lib\/squid3\/ncsa_auth \/etc\/squid3\/passwd auth_param basic credentialsttl 30 minutes auth_param basic casesensitive on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6845","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6845"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6845\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}