Making progress, I have now written a little script to download blocklist
From my experience this is strongly recommend to have a blocklist. From a constant wave after wave of attacks, to peace! (I guess some non block attacker will show up, but for now 100 % attackers stoped by pf with help of blocklist.de)
I have hopefully managed to add it to cron.
Should I split the script into two parts? one which download, and one who applies changes?
is there some security implications of running such a script in cron, and any ideas for improving security?
Code:
#! /bin/ksh
wget https://lists.blocklist.de/lists/all.txt
cat all.txt >> /etc/badhosts
pfctl -f /etc/pf.conf
exit