ubuntuproxysquid

How do I allow access to all requests through squid proxy server?


I want to enable access to all requests on Squid3 server ie. request from anywhere to anywhere through the proxy server should be allowed.

I've already tried adding this to the end of config file /etc/squid3/squid.conf:

acl all src 0.0.0.0/0
http_access allow all

I'm still getting the TCP_DENIED_REPLY error:

1490004026.216      0 10.142.224.249 TCP_DENIED_REPLY/403 3546 GET http://www.fb.com/ - HIER_NONE/- text/html

How do I do get this working?


Solution

  • You need to edit the squid config file to enable access. The default location for the squid file on ubuntu is : /etc/squid3/squid.conf

    The following lines enable access to all requests:

    # allow all requests    
    acl all src 0.0.0.0/0
    http_access allow all
    
    # Make sure your custom config is before the "deny all" line
    http_access deny all
    

    Note: Make sure you insert this before the final deny block in the squid config file:

    If you'd like to debug your requests , use the following line in your config file:

    debug_options ALL,1 33,2 28,9
    

    This enables extensive logging for every request. The logs can be found in /var/log/squid3/cache.log