[Ilugc] Transparent proxy

  • From: babu_jayapaul@xxxxxxxxx (babu jayapaul)
  • Date: Thu Jun 24 09:14:32 2004

hai friends

I have configured squid with 10gb cache and its is
going well. but i want to confiure a 'Transparent
proxy' so that i don't want to configure all my
clients to look for a proxy settings . I followed some
guidelines from net and i configured transparent proxy
according to that 

"Guidlines from Internet Site"

To set up the rules, you will need to know two
things, the interface that the to-be-proxied
requests are coming in on (I'll use eth0 as an
example) and the port squid is running on (I'll use
the default of 3128 as an example). 

Now, the magic words for transparent proxying: 

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
80 -j REDIRECT --to-port 3128 

 But it is not working and my doubt is

(the interface that the to-be-proxied requests are
coming in on (I'll use eth0 as an example) and the
port squid is running on (I'll use the default of 3128
as an example). 

My internet 204.129.222.89 - eth1

My local lan 197.168.0.1 - eth0

which ethernet card should I use in the place of <-i
eht0> in the above iptables command. i used eth0

please help me 


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

Other related posts: