To redirect a port: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport -j REDIRECT --to-port To view redirected ports: iptables -t nat -L