MikroTik Blocklists
Internal WIFX service that compiles and aggregates multiple blocklist sources
into .rsc files ready to be imported into RouterOS.
Available blocklists
Select the sources you want to include, then generate your custom URL.
Sources
https://www.dshield.org/block.txthttps://lists.blocklist.de/lists/ssh.txthttp://speedtest.wifx.net:8888/ipv4.txthttps://feodotracker.abuse.ch/downloads/ipblocklist.txthttps://lists.blocklist.de/lists/sip.txthttps://lists.blocklist.de/lists/bruteforcelogin.txthttp://141.227.139.29:8080/ipv4.txthttp://rdplist.wifx.net/ipv4.txthttp://185.214.155.100:8080/ipv4.txt
Generated URL
Quick usage (MikroTik Ros7)
By default this fetches the global list all.rsc. If you generate a custom URL above,
the script below will automatically update the fetch URL and the
src-address-list so you can copy/paste it.
/system script
add dont-require-permissions=yes name=blocklist policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
"# name of RAM disk\r\
\n:local ramdisk \"tmpfs1\";\r\
\n\r\
\n# Check if RAM disk exists\r\
\n:if ([:len [/disk find slot=\$ramdisk]] = 0) do={\r\
\n :log warning \"RAM disk <\$ramdisk> missing - created...\";\r\
\n /disk add type=tmpfs tmpfs-max-size=10M slot=\$ramdisk;\r\
\n :delay 1s;\r\
\n} else={\r\
\n :log info \"RAM disk <\$ramdisk> already created\";\r\
\n}\r\
\n\r\
\n# Download .rsc into RAM disk\r\
\n/tool fetch url=\"__BLOCKLIST_DEFAULT_URL__\" dst-path=\"\$ramdisk/blocklist.rsc\";\r\
\n:delay 10\r\
\n# Import file\r\
\n/import file-name=\"\$ramdisk/blocklist.rsc\";"
/system scheduler
add interval=1h30m name=blocklist on-event=blocklist policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
/ip firewall raw
add action=drop chain=prerouting src-address-list=blacklist