if [ ! -n "$1" ] ;then echo "Empty port input" exit 0 fi iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport $1 -j ACCEPT