blob: 53255531a606e80e2bf74f9d5b47697b2d709532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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 $?
|