[CentOS] local port redirect not working on Centos4

Sat Feb 4 06:35:43 UTC 2006
Francois Caen <frcaen at gmail.com>


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

Am I doing something wrong? Or did something change in 2.6? Tried
googling this, no luck.

Francois Caen, RHCE, CCNA
SpiderMaker, LLC