LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   My squid won't fill /var/log/squid/access.log (https://www.linuxquestions.org/questions/linux-general-1/my-squid-wont-fill-var-log-squid-access-log-99299/)

linuxlah 10-02-2003 01:28 AM

My squid won't fill /var/log/squid/access.log
 
what's wrong with my squid? It wont flood the access.log. What should I co?

I'm using the good old redhat 7.2 and I downloaded the squid rpm form the rpmfind.net.

Arenba 10-02-2003 09:28 AM

Have you checked the file permissions? chmod ? Also check the location of the log directory in squid.conf file and make sure its there.

linuxlah 10-04-2003 10:22 PM

Already checked them.... the thing is if I do transparent proxy it dosent log... but if I set the proxy to 3128 at mozilla it logs...


this is my iptables command for my transparent proxy...

iptalbles -t nat -A PREROUTING -i ppp0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

I also tried this..

-A PREROUTING -i ppp0 -d 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

both of them dose't make my users log to access.log

Arenba 10-06-2003 11:55 AM

Sorry, but mine's not set up for transparent proxying. So I don't know much about it.
Maybe, you'll get a clearer info at www.tldp.org or www.squid-cache.org

DavidPhillips 10-06-2003 10:49 PM

The fact that you say it does no log under the certain settings leads me to believe that it's not being used at all under those conditions, not a logging problem.

Try to open a dead url or something to generate a squid error page and use that to check and see if squid is being used.

DavidPhillips 10-06-2003 10:51 PM

# Squid transparent proxy
$IPTABLES -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
$IPTABLES -A PREROUTING -t nat -i eth2 -p tcp --dport 80 -j REDIRECT --to-port 3128
$IPTABLES -A PREROUTING -t nat -i ppp0 -p tcp --dport 80 -j REDIRECT --to-port 3128


All times are GMT -5. The time now is 12:56 PM.