IP Tables - jrwhetse/jrwhetse.github.io GitHub Wiki
RHEL6
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port <redirect_to_port>
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port <redirect_to_port>
iptables-save
service iptables save
service iptables restart