#!/bin/bash PATH=/usr/bin:/usr/sbin:/bin:/sbin FIREHOL=`mktemp` wget -q -O $FIREHOL https://iplists.firehol.org/files/firehol_level1.netset if [ $? != 0 ]; then echo "ERROR: Could not download file" exit 1 fi /usr/local/sbin/firehol2nft -f $FIREHOL > /etc/nftables-firehol.conf if [ $? != 0 ]; then echo "ERROR" exit 1 fi rm $FIREHOL nft -f /etc/nftables-firehol.conf exit $?