local port redirect not working on Centos4

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



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

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux