if [ "${ALLOW_HOSTS}" ] then for allow_host in ${ALLOW_HOSTS[@]} do iptables -A INPUT -p tcp -s $allow_host -j ACCEPT done fi