Re: Ethernet port redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El miÃ, 05 de 01 de 2005 a las 16:52, Jason Opperisano escribiÃ:
> On Wed, Jan 05, 2005 at 08:52:06PM +0530, Navneet wrote:
> > Hi,
> > 
> > Now, pease check this out :-
> > I was trying to run squid in transparent mode(Transparent Proxying) ?
> > 
> > System details:
> > RedHat Linux 9
> > eth0 133.147.171.169/8 [Internal NIC]
> > eth1 172.21.133/14        [External NIC]
> 
> maybe i'm being silly--but it sure looks to me like eth0 is external and
> eth1 is internal.
> 
> > All http request get REDIRECTED to squid  at eth0(Internal).It should work
> > as Gateway by means of eth1(External).
> > 
> > i've done this:
> > 1.Enabled IP forwarding
> > #echo "1" >/proc/sys/net/ipv4/ip_forward
> > 2.iptables (Netfilter) PORT REDIRECTION:
> > #iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
> > REDIRECT --to-port 3128
> 
> are you *positive* that you don't mean eth1 there?
> 
> -j
> 
> --
> "Ah, good ol' trustworthy beer. My love for you will never die."
>         --The Simpsons

I would like to add that maybe he have not configured the
squid proxy properly, it need to be configured to do the
transparent proxy thing. If you don't do it the iptables
rules are useless.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@xxxxxxxxx
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÃA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux