LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 10-08-2006, 09:22 AM   #1
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
squid transparent proxy + logging


Hello,

Is it possible to log squid when
running in transparent mode ?

I mean generate entries in access.log.

If yes please guide.

Thanks in advance

Varun
 
Old 10-08-2006, 09:44 AM   #2
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
Yes but it will only log the IP, not a username.
 
Old 10-08-2006, 10:43 AM   #3
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
Can you explain how ?

I don't want to make any chages in
browser settings.

Thanks

Varun
 
Old 10-08-2006, 10:47 AM   #4
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
Configure Squid in transparent mode and then look at /var/log/squid/access.log? What more must I explain?
 
Old 10-18-2006, 05:29 PM   #5
witorg
LQ Newbie
 
Registered: Oct 2006
Location: Dhaka
Posts: 3

Rep: Reputation: 0
Log transparent proxy

#you could see tail -fv /var/log/squid/access.log
 
Old 10-18-2006, 09:10 PM   #6
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
does not show any entries.

Varun
 
Old 10-24-2006, 05:58 AM   #7
witorg
LQ Newbie
 
Registered: Oct 2006
Location: Dhaka
Posts: 3

Rep: Reputation: 0
Your should Published you firewall script.

Your should Published you firewall script.

may It not working properly
 
Old 11-03-2006, 08:21 PM   #8
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
Here are my rules:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -o $DEV_INTERNET -j MASQUERADE

$IPTABLES -P INPUT ACCEPT
$IPTABLES -A INPUT -i eth0 -p tcp --dport 22 -j DROP

# Route email through at all times
$IPTABLES -A FORWARD -i eth1 -o eth0 -p tcp --dport 25 -j ACCEPT
$IPTABLES -A FORWARD -i eth0 -o eth1 -p tcp --sport 25 -j ACCEPT
$IPTABLES -A FORWARD -i eth0 -o eth1 -p tcp --sport 110 -j ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -p tcp --dport 110 -j ACCEPT
$IPTABLES -A FORWARD -p tcp -d 0.0.0.0/0 --destination-port 53 -j ACCEPT
$IPTABLES -A FORWARD -p udp -d 0.0.0.0/0 --destination-port 53 -j ACCEPT
$IPTABLES -A FORWARD -p tcp -d 192.168.0.0/16 --source-port 53 -j ACCEPT
$IPTABLES -A FORWARD -p udp -d 192.168.0.0/16 --source-port 53 -j ACCEPT
$IPTABLES -A FORWARD -p tcp -d 192.168.21.0/16 --source-port 53 -j ACCEPT
$IPTABLES -A FORWARD -p udp -d 192.168.21.0/16 --source-port 53 -j ACCEPT
$IPTABLES -P FORWARD DROP

$IPTABLES -P OUTPUT ACCEPT

--------------------- end rules ------------------------------

Thanks in advance

Varun
 
  


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
WCCP and Transparent Proxy with Squid tech-ninja Linux - Networking 4 03-29-2005 10:25 AM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 05:00 PM
Squid Transparent Proxy 1jamie Linux - Security 7 09-26-2003 06:09 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 02:51 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 03:24 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration