LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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, 10: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, 11: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, 11: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, 06: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, 10: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, 06: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, 09: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 11:25 AM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 06:00 PM
Squid Transparent Proxy 1jamie Linux - Security 7 09-26-2003 07:09 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 03:51 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:58 PM.

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