LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-23-2006, 12:15 AM   #1
pavangogineni
LQ Newbie
 
Registered: Aug 2006
Posts: 17

Rep: Reputation: 0
Arrow client ip in squid access.log


Hi all,

I configured squid proxy (transperent) and transfered all requests to my gateway to my squid box (different box) using iptables.
the rules are

iptables -t nat -A PREROUTING -i eth1 -s ! <ip address of proxy> -p tcp --dport 80 -j DNAT --to <ip address of proxy : port>

iptables -t nat -A POSTROUTING -o eth1 -s <network address> -d <ip address of proxy> -j SNAT --to <ip address of gateway>

iptables -A FORWARD -s <network address> -d <ip address if proxy> -i eth1 -o eth1 -m state --state NEW,ESTABLISHED,RELATED -p tcp --dport <proxy port> -j ACCEPT

iptables -A FORWARD -d <network address> -s <ip address of proxy> -i eth1 -o eth1 -m state --state ESTABLISHED,RELATED -p tcp --sport <proxy port> -j ACCEPT

It's working fine. But in the access.log it is showing that all the requests are coming from my gateway(firewall).
I want to trace the client ip addresses from which those requests are coming from.

How can I achieve that???

Can anyone help me....
 
Old 10-23-2006, 06:01 PM   #2
mrkirkland
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE + Debian
Posts: 22

Rep: Reputation: 15
I'm not sure whether if this will help, but I use squid as a reverse proxy, I get client IP's and other details absent from the normal log using the
log_mime_hdrs on
options and pass the log through a script to convert it:

http://www.chriskirkland.net/thought...celerator.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Client ip in squid access log pavangogineni Linux - Networking 4 10-24-2006 04:52 AM
trouble with squid access.log mephitic Linux - Software 0 11-02-2004 11:03 AM
Variables for Squid Access Log mephitic Linux - Software 2 07-29-2004 05:16 PM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 10:51 PM
Squid access.log files davebarnes Linux - Networking 1 10-27-2002 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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