iptables -t nat -A POSTROUTING -d 3.3.3.3 --dport 8000 -j SNAT --to-source 1.1.1.1
that should be enough.
regards,
andrea
Hélio Dubeux wrote:
I have a machine with squid + nat with an valid ip (1.1.1.1) and a false ip (2.2.2.2) and running apache on port 80, i want to publish another apache server on port 8000 in a machine with ip (3.3.3.3). how can i do this redirect? I´ve already used:
iptables -A PREROUTING -t nat -p tcp -d 1.1.1.1 --dport 8000 -j DNAT -to 3.3.3.3:8000
My clients type on their browser http://1.1.1.1:8000 and i wanto to show the content of 3.3.3.3:8000
Anyone can plz help me?
----------------------
Hélio Dubeux Neto
_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com