LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2010, 11:08 AM   #1
jvaldivia
Member
 
Registered: Sep 2007
Distribution: Debian Lenny
Posts: 61
Blog Entries: 2

Rep: Reputation: 19
Squid Reports Using MySar and Dansguardian


Hello,

I have squid running perfectly and I added MySQL Squid Access Report 2.1.4 and the reports works just fine.

The problem its when I add a dansguardian content filter, from that moment the only IP address that appears on the report its the box itself (I have all running on the same box).

IPtables forward requests to port 8080
Dansguardian listening on port 8080 forwards to squid on port 3128
Squid on port 3128 to internet (Here I review the logs with MySar).

I know it is because the actual http request for Squid came from Dansguardian's IP address (its the job of the proxy).

So far I have no clue on how to have the real IP address on the reports. Any ideas ?, Thanks for your time.
 
Old 04-04-2010, 10:53 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
You'll need to have Dansguardian add an X-Forwarded-For: header, which will contain the IP address of the original HTTP request. You can do so by adding the following line to dansguardian.conf:

Code:
forwardedfor = on
--jeremy
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
Squid log with MYSAR nkutty Linux - Software 0 06-09-2008 06:40 AM
Dansguardian + Squid SBN Linux - Server 2 07-12-2007 07:16 AM
dansguardian + squid shafey Linux - Security 2 12-31-2005 11:42 AM
Dansguardian/Squid HELP! Prizam Linux - Software 3 09-23-2005 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 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