iptables drop port code example Example: remove port iptables # flag -D for delete sudo iptables -D INPUT -i eth0 -p tcp --dport 22 -j ACCEPT