Hello,
I want to redirect one local port to another. I am using the following:
iptables -t nat -A PREROUTING -p tcp --dport 7003 -j REDIRECT --to-ports 80
and testing it by telneting to localhost on port 7003. It works on Centos3, not on Centos4.
No luck with this either: iptables -t nat -A PREROUTING -p tcp --dport 7002 -j DNAT --to 127.0.0.1:80
Am I doing something wrong? Or did something change in 2.6? Tried googling this, no luck.
Thanks, -- Francois Caen, RHCE, CCNA SpiderMaker, LLC