Need help with IPTABLES

Read 2826 times
Hey Everyone: I have been using Centova for almost 10 years, it is a great product and once you get it set up it works flawlessly! However, I have recently moved our server from Linode to a different server with a different configuration and I am having some difficulty getting port 80 to 8000 forwarding working. I don't want to use the Centova port 80 proxy as it doesn't work with our website HTML 5 - based players. Our stream needs to be available on port 80 as our station is streaming our high school radio station and port 80 is the only unblocked port available in the school.

On the Linode server, each physical IP is mapped to your public IP one to one (with NO private address in between) and I successfully used the following IPtables command: -A PREROUTING -p tcp -m tcp -d 50.116.61.7/32 --dport 80 -j DNAT --to-destination 50.116.61.7:8000 to stream out on port 80.

On our new server, Centova is bound to private IP: 10.40.10.94, streaming out on port 8000. That private ip is mapped to the gateway public address: 206.248.142.243 in the gateway software on both port 80 & 8000. Unfortunately, it doesn't work using the IPtables string above (with the addresses changed). Port 8000 streams fine and port 80 can see Centova's web service on the public IP, but streaming on port 80 yields nothing!  What am I doing wrong here? Any help, is of course, gratefully appreciated.

Rick
Figured it out:
# Port 80 Redirect to Centova port 8000
-A PREROUTING -p tcp -m tcp -d 10.40.10.94 --dport 80 -j DNAT --to-destination 10.40.10.94:8000