
Finnish CERT (CERT-FI) recommends to pay special attention to certain address blocks. They mention the DROP-list by the Spamhaus project as the most up-to-date list of malicious addresses.
It is always boring and time consuming to type long lists of addresses, so I made a quick-and-dirty script, which converts the DROP-list into StoneGate elements, and creates a group of them. You can feed the DROP-list to this script, zip the result and import it into SMC.
Being an oldtimer, I wrote this with an ancient tool called awk, which you can find in most unix-based systems, including linux. The most common variant is the GNU awk, gawk. Someone would probably write this in 2 lines of Perl…
I provide this script as is, with no expressed or implied guarantees of any kind. Use this at your own risk. If you manage to break something with this, you have been warned and you assume full responsibility. I have tested this on one system (Fedora Core 9) with one input, today’s DROP list from Spamhaus.org.
So, take a look at the code and decide yourself if you trust this. Especially see the comment in the beginning. Change the element naming convention to suit your needs and enjoy.



(3 votes, average: 4.67 out of 5)
Recent Comments