View Single Post
  #5   (View Single Post)  
Old 26th January 2017
psypro psypro is offline
Package Pilot
 
Join Date: Mar 2016
Location: Continent:Europe
Posts: 156
Default

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

Last edited by psypro; 26th January 2017 at 01:26 PM.
Reply With Quote