PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, May 13, 2022

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

 May 13, 2022     proxy, squid, ubuntu     No comments   

Issue

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



Answered By - FacePalm
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing