MikroTik RouterOS Integration Guide
Importing OpenDBL into MikroTik RouterOS IP Firewall Address Lists
MikroTik RouterOS supports automated HTTP/S list fetching into /ip firewall address-list using native RouterOS script tasks and System Scheduler.
1
Create RouterOS Fetch & Parse Script
In WinBox or WebFig, navigate to System > Scripts and add a new script named FetchOpenDBL.
/tool fetch url="https://opendbl.net/lists/ipsum.list" mode=https dst-path=opendbl.txt
:foreach line in=[:toarray [/file get opendbl.txt content]] do={
:if ([:len $line] > 0) do={
/ip firewall address-list add list=OpenDBL address=$line timeout=1d comment="OpenDBL Threat Feed"
}
}
2
Schedule Periodic List Refresh
Navigate to System > Scheduler and add a scheduled task to execute FetchOpenDBL every 15 to 30 minutes.
3
Apply Drop Filter Rule
In IP > Firewall > Filter Rules, create a rule with action=drop and set src-address-list=OpenDBL or dst-address-list=OpenDBL on your WAN interface.