Reject the request coming from ssh Step 1: Stop the firewall [root#] service iptables stop Step 2 : Write the firewall rule [root#] iptables -A INPUT -p tcp --dport ssh -j REJECT Step 3 : Start the firewall [root#] service iptables start Step 4 : Check the firewall rule [root#] iptables -L -n Step 5 : Check firewall status [root#] service iptables status Step 6 : flush the firewall [root#] iptables --flush Step 7 : Check the firewall rule [root#] iptables -L -n Step 8: Stop the firewall [root#] service iptables stop