sudo apt install curl perl unzip xtables-addons-common libtext-csv-xs-perl libmoosex-types-netaddr-ip-perl
- Put this into
/usr/local/bin/geoip-update.sh
#!/bin/bash -e
WORKDIR=`mktemp -d`
if [[ ! "$WORKDIR" || ! -d "$WORKDIR" ]]; then
echo "Could not create temp dir"
exit 1
fi