Block All Incoming Traffic But Allow SSH Posted on January 10, 2013 by alfred /sbin/iptables -A INPUT -p tcp --dport 22 -j ACCEPT /sbin/iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT