{"id":514,"date":"2008-10-21T10:51:41","date_gmt":"2008-10-21T18:51:41","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=514"},"modified":"2010-08-08T13:36:52","modified_gmt":"2010-08-08T20:36:52","slug":"getting-squid-internet-proxy-working","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2008\/10\/getting-squid-internet-proxy-working\/","title":{"rendered":"Getting Squid (Internet Proxy) Working"},"content":{"rendered":"<h3>Problem<\/h3>\n<p>After configuring Safari and Firefox to use my local network&#8217;s squid proxy, I got the following error whenever I tried to browse to a page:<\/p>\n<blockquote>\n<pre style=\"font-weight:bold\">ERROR\r\n\r\nThe requested URL could not be retrieved<\/pre>\n<pre>\r\nWhile trying to retrieve the URL:  http:\/\/www.google.com\/\r\n\r\nThe following error was encountered:\r\n<\/pre>\n<pre style=\"font-weight:bold\"> * Access Denied. <\/pre>\n<pre>   Access control configuration prevents your request from \r\n   being allowed at this time. Please contact your service \r\n   provider if you feel this is incorrect.<\/pre>\n<\/blockquote>\n<h3>Solution<\/h3>\n<p>The squid.conf file on my server wasn&#8217;t configured correctly.  Actually, I had simply neglected to ever bother configuring it!  By default, Squid rejects all requests.<\/p>\n<p>I edited the Squid configuration file:<\/p>\n<blockquote>\n<pre class=\"bash\">sudo vi \/etc\/squid\/squid.conf<\/pre>\n<\/blockquote>\n<p>Changing from this:<\/p>\n<blockquote>\n<pre class=\"bash\"># Example rule allowing access from your local networks. Adapt\r\n# to list your (internal) IP networks from where browsing should\r\n# be allowed\r\n#acl our_networks src 192.168.1.0\/24 192.168.2.0\/24\r\n#http_access allow our_networks<\/pre>\n<\/blockquote>\n<p>To this:<\/p>\n<blockquote>\n<pre class=\"bash\"># Example rule allowing access from your local networks. Adapt\r\n# to list your (internal) IP networks from where browsing should\r\n# be allowed\r\nacl our_networks src 192.168.1.0\/24\r\nhttp_access allow our_networks\r\n<\/pre>\n<\/blockquote>\n<p>Then restarted Squid:<\/p>\n<blockquote>\n<pre class=\"bash\">sudo \/etc\/init.d\/squid restart<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Problem After configuring Safari and Firefox to use my local network&#8217;s squid proxy, I got the following error whenever I tried to browse to a page: ERROR The requested URL could not be retrieved While trying to retrieve the URL: &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2008\/10\/getting-squid-internet-proxy-working\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[203,204,202,201],"class_list":["post-514","post","type-post","status-publish","format-standard","hentry","category-technology","tag-access-denied","tag-acl","tag-http-proxy","tag-squid"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":16,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/514\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}