LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2003, 01:28 AM   #1
linuxlah
Member
 
Registered: Jun 2002
Location: Batu Puteh, Malaysia
Distribution: (Mandrake 8.2) (Redhat 7.2,8.0,9.0) (Slackware 9.0,9.1)
Posts: 154

Rep: Reputation: 30
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.

Last edited by linuxlah; 10-02-2003 at 01:29 AM.
 
Old 10-02-2003, 09:28 AM   #2
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
Have you checked the file permissions? chmod ? Also check the location of the log directory in squid.conf file and make sure its there.
 
Old 10-04-2003, 10:22 PM   #3
linuxlah
Member
 
Registered: Jun 2002
Location: Batu Puteh, Malaysia
Distribution: (Mandrake 8.2) (Redhat 7.2,8.0,9.0) (Slackware 9.0,9.1)
Posts: 154

Original Poster
Rep: Reputation: 30
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

Last edited by linuxlah; 10-04-2003 at 10:26 PM.
 
Old 10-06-2003, 11:55 AM   #4
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
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
 
Old 10-06-2003, 10:49 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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.

Last edited by DavidPhillips; 10-06-2003 at 10:54 PM.
 
Old 10-06-2003, 10:51 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
# 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble with squid access.log mephitic Linux - Software 0 11-02-2004 11:03 AM
How frequently is access.log of squid is updated? pippet Linux - General 0 08-05-2004 04:24 AM
Variables for Squid Access Log mephitic Linux - Software 2 07-29-2004 05:16 PM
Squid access.log files davebarnes Linux - Networking 1 10-27-2002 04:05 PM
squid access.log analyzer (not calamaris!) saavik Linux - Networking 2 09-09-2002 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration