Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 570
FacePalm Avatar asked Mar 20 '17 10:03

FacePalm


People also ask

What ports need to be open for Squid proxy?

The proxy is available for localhost . The default port is 3128 . The preinstalled configuration file /etc/squid/squid.

What is ACL in Squid proxy?

Access Control Lists are the base elements in the Squid configuration file, which help in identifying web transactions, by various attributes of that transaction. We have already learned about the syntax for constructing ACLs in Chapter 2.


1 Answers

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

like image 138
FacePalm Avatar answered Sep 28 '22 09:09

FacePalm