Skip to content

Quick Start

Daniel HybridNetworks edited this page Mar 6, 2022 · 1 revision

🛠️ Basic Usage

Support: Mikrotik RouterOS v6 & v7

1.- Script which will download the drop list and update

/system script add name="downloadBlackListBox" owner="HybridNetworks" source={
	/tool fetch url="https://raw.githubusercontent.com/HybridNetworks/BlackListBox/main/Mikrotik/HN-BLACKLIST-SPAMHAUS.rsc" mode=https;
	:delay 5;
	/ip firewall address-list remove [find where comment="SPAMHAUS-DROP"];
	:delay 5;
	/import file-name=HN-BLACKLIST-SPAMHAUS.rsc;
	:delay 5;
	/file remove HN-BLACKLIST-SPAMHAUS.rsc;
}

2.- Schedule the download and application of the blacklist

/system scheduler add comment="BlackListBox" interval=3d \
	name="BlackListBoxUpdate" on-event=downloadBlackListBox \
	start-date=jan/01/1970 start-time=10:23:35

3.- Blacklist blocking by RAW firewall rules

/ip firewall raw
add action=drop chain=prerouting comment="HN-FW - DROP SPAMHAUS BLACKLIST" \
	src-address-list=HN-BLACKLIST-SPAMHAUS

Clone this wiki locally