I've started development of the replacement service. Please read the Development topic here:
viewtopic.php?f=9&t=136666
Here is a form to fill out if you want to be notified when the new service goes live.
https://goo.gl/forms/UQMYqKJ54E0iV35l2
New blacklist system! (7-July-2017)
RouterOS version 6.36 or higher is now required.
Okay guys, I'm posting my first RC for the new system. To simplify things, I'm only posting an Installer / Updater script.
This will install the new blacklist update script, the config script, and the schedulers. You will end up with the following:
- Scripts
- blacklistUpdate - the primary script for checking for the list and installing it
- blacklistUpdate.conf - Configuration for the script. the auto-script-update will not touch this.
- blacklistScriptUpdater - this is the auto-upgrade script. I recommend calling it once a day to make sure you are current.
- Scheduler
- blacklistUpdate - this will run hourly, checking to see if a new list is available. Updating ONLY if the list is new
- blacklistUpdateOnBoot - This is for loading the current list when the router boots
Updates are now done in place. Old entries have their expiration lowered to 30 minutes so that they expire soon. This replaces the remove process and lets them expire naturally. Current retirees are updated to 25 hours. New entries are added and set to 25 hours.
Checking for updates is done via DNS. a quick lookup to my DNS server (checking 127.0.0.3) returns the current serial number of the list. If the serial matches what is currently installed, no update is done. If the serial is higher, the new list is downloaded and installed.
I look forward to your feedback
# Intrus Technologies Blacklist Installer
# © 2017 David Joyce, Intrus Technologies
#
# Version 2.0.5
#
# This is used to install and update the blacklist importer script
# as well as the scheduler tasks used to update the address-lists
# and the scheduler task used to update the scripts
#
# These are offered free of charge to the MikroTik community. No warranty is expressed or implied.
# I am not responsible for any loss of data, time, money, access, or anything else. Use at your own risk.
#
# P.S. Changing the script names will break things. Badly.
:do {
:local currentScriptVersion [ :resolve server=mikrotikfilters.com server-port=6502 domain-name=127.0.0.2 ]
:put "Installing blacklistUpdate script version: $currentScriptVersion";
:local sourceServer "https://mikrotikfilters.com/";
:local sourceServerPort "6501";
:local scriptName "blInstaller.rsc";
:put "Downloading update script...";
:do {
/tool fetch url="$sourceServer$scriptName" mode=https port=$sourceServerPort dst-path="/$scriptName";
} on-error={
:put "Error. Download failed";
}
:put "Importing update script...";
:do {
/import "$scriptName";
} on-error={
:put "import failed. unknown error.";
}
:put "Removing update script...";
:do {
/file remove "$scriptName";
} on-error={}
:put "Update Complete.";
}
- Version History
- 2.0.5 Released
- Script and server changes to allow blacklisted IP's to still access the list
- 2.0.4 Released
- auto-update for script is default disabled, can be enabled in the config
- added global "blScriptUpdate" to the config to enable/disable script updating
- 2.0.3 Released
- Script Updater cleanup
- Installer now have full permissions (ros bug)
- 2.0.2.1 and 2.0.2.2 Released
- minor typos fixed
- new Auto-Update script is now installed
- - Auto-updater can be run manually, or on a daily schedule
- new cleaner installer, can now be copy/pasted to the console
- 2.0.2 Released
- Fixed a logging typo
- changed the auto-updater to stop removing the config if run twice
- Better cleanup of globals used as functions
- started framework for checking available disk space before downloading
- 2.0.1 Released
- improved URL Encoding function
- much simpler CHR system ID detection
- changed Script Version to global variable (prep for auto-script update)