firewall Redirect or forward ports in iptables Redirect or Forward Ports using Iptables Port Redirection: iptables -t nat -A PREROUTING -i <interface> -p tcp --dport <port number=""> -j REDIRECT --to-port <port_number></port_number></port></interface> or iptables -t nat -I PREROUTING --src