Re: Redirect port 80->8080 on the same machine
That target don't work with local originated to local destionation connection (that bypass the
PREROUTING chain). That job could be made with "redir" tool easily :-)
Regards,
Janusz Ulanowski <janul@netten.pl> escreveu em Wed, 7 Aug 2002 20:13:36 +0200 (CEST):
> On Wed, 7 Aug 2002, Vineet Kumar wrote:
>
> > * Janusz Ulanowski (janul@netten.pl) [020807 08:25]:
> > > Hello,
> > > What string (iptables) to add to redirect port from 80 to 8080
> > > on the same machine (to transparent proxy)
> > > I've used
> > > iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT
> > > --to 192.168.0.1:8080
> > >
> > > but it's working for incoming packets, from my localhost isn't work
> >
> > iptables -t nat -A PREROUTING -p tcp --dport 80 -i lo -j DNAT \
> > --to 192.168.0.1:8080
> >
> > =)
> >
> > good times,
> > Vineet
> >
> thanks for your answer.
>
> i also tried this target but it wasn't working
> i don't know what is problem :(
> any suggests ?
> -
> J@nul
>
>
>
> --
> To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
---------------------------
Gleydson Mazioli da Silva
gleydson@debian.org
gleydson@cipsga.org.br
* Amar outro ser humano é talvez a tarefa mais difícl que a nós foi
confiada, a tarefa definitiva, a prova e o este finais; a obra para a
qual todas as outras não passam de mera preparação.
(Rainer Maria Rilke)
Reply to: