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. |
Have you checked the file permissions? chmod ? Also check the location of the log directory in squid.conf file and make sure its there.
|
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 |
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 |
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. |
# 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. |