Redirect or Forward Ports using Iptables
Port Redirection:
iptables -t nat -A PREROUTING -i -p tcp --dport -j
REDIRECT --to-port
or
iptables -t nat -I PREROUTING --src ip/mask --dst -p tcp --dport 80
-j Redirect --to-port
Port Forwarding:
iptables -A PREROUTING -t nat -i -p tcp --dport 80 -j