
if [ "$MODE" == "start" ]; then
	ipt -N filter_in_fail2ban
	ipt -N filter_in_fail2ban_jails

	for ADM_IP in $ADMIN_IPS; do
		ipt4 -A filter_in_fail2ban -s ${ADM_IP} -j RETURN
	done

	if [ -n "${WHITELIST_IPS+X}" ]; then
		for WL_IP in $WHITELIST_IPS; do
			ipt4 -A filter_in_fail2ban -s ${WL_IP} -j RETURN
		done
	fi

	ipt -A filter_in_fail2ban -j filter_in_fail2ban_jails
	ipt -A filter_in_fail2ban -j RETURN
	ipt -A filter_in_fail2ban_jails -j RETURN
fi

ipt -A in_inet -j filter_in_fail2ban
