Now FasterThese address lists are now automatically being served from many locations around the world.
Now EasierThe scripts on this page are editable in case you need to adjust something like the pre-defined schedule. The copy button below each list will copy the on page script into your clipboard for easier implementation without the need of opening a text editor.
MikroTik Automatically Updated Address List
When you offer public access to a service it can be rather difficult to separate the bad connections from the good.
MikroTik to the rescue with address lists… simply put the bad addresses in a list and block anything in the list. Sounds like fun right… or maybe not so much? Of course you can (and should) manually create rules to detect abuse and dynamically create the lists… However there is more that you can do, you can subscribe to lists that are maintained by others like Spamhaus, dshield, and malc0de.
Example of a parsed list
# Generated by Joshaven Potter on Mon Nov 16 06:25:01 EST 2015 /ip firewall address-list add list=blacklist address=18.104.22.168/17 comment=SpamHaus add list=blacklist address=22.214.171.124/20 comment=SpamHaus add list=blacklist address=126.96.36.199/14 comment=SpamHaus ...
The implementation is simple... paste the following code into the terminal of any MikroTik and your router will grab the newest copy of my script file and run it regular basis.The following will not block anything, it only adds IP’s to your address list. You will still have to create a firewall rule which will match src-address-list=blacklist and drop the traffic in your input and/or forward chains.
In order to use any of the following lists you will want to add a rule to your input or forward chains like the following:
add chain=input action=drop comment="Drop new connections from blacklisted IP's to this router" \
connection-state=new src-address-list=blacklist in-interface=ether1-Internet
“Spamhaus Don’t Route Or Peer List (DROP)""
The DROP list will not include any IP address space under the control of any legitimate network – even if being used by “the spammers from hell”. DROP will only include netblocks allocated directly by an established Regional Internet Registry (RIR) or National Internet Registry (NIR) such as ARIN, RIPE, AFRINIC, APNIC, LACNIC or KRNIC or direct RIR allocations.”
“This list summarizes the top 20 attacking class C (/24) subnets over the last three days. The number of ‘attacks’ indicates the number of targets reporting scans from this subnet.”
"The files below will be updated daily with domains that have been indentified distributing malware during the past 30 days"