LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tedious job to detect http_access rule in squid (http://www.linuxquestions.org/questions/linux-server-73/tedious-job-to-detect-http_access-rule-in-squid-551173/)

suhas! 05-04-2007 12:31 AM

Tedious job to detect http_access rule in squid
 
Hi all,

I am feeling that it is very boring to detect a particular http_access rule in squid.conf file...

We have number of http_access rules in our squid.conf file... We have denied access to particular site e.g xyz.com to everyone except few people who are allowed to access xyz.com.

Now my machine, according to our configuration, should not be able to access this xyz.com, but because of misconfiguration or disordering of http_access rules, I am getting access to xyx.com. Now it is very tedious job for me to evaluate each http_access rule and find out which rule is causing me to have access, so I would rectify the mistake...

Is there any easy way to find out which rule is evaluated when I try to access xyz.com? Is there any hint in access.log file?

Please help as this would help me to save the time in future as well..


Thanks in advance!

kariukidw 05-06-2007 12:54 AM

Hi,

Squid reads the defined acls from top to bottom and I highly suspect that you have allowed the site in a previous acls and that is why access to it is being granted. It would really help if you posted your squid.conf file so that we can see the configured acls.


All times are GMT -5. The time now is 10:07 PM.