I'm having a VM where port 80 is consumed by apache tomcat (host.nvoids.com).
and I'm having apache2 php running at port 8020 which is a wordpress blog (host.nvoids.com:8020)
I want when somebody hits my server at blog.nvoids.com it should get forwared to 8020.
Please let me know if anything can be done with any rule based port forwarding program?
something like the below -
iptables -t nat -A PREROUTING -d blog.nvoids.com -p tcp -m multiport --dports 80,443 -j DNAT --to-destination blog.nvoids.com:8020
I did not try this as i do not know how to turn off the above command.
Is there any rule names or numbers that can be assigned to iptables rules? And can I switch it on/off?
Regards