Skip to content

Serp07/dude_blacklist_ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

257 Commits
 
 
 
 
 
 

Repository files navigation

updater_list_for_mikrotik last commit (main) updater_list_for_mikrotik License required RouterOS version required RouterOS version

MikroTik dude blacklist ip Address List

IP Address List is based on detecting port scans through traps, as well as random connections to the dude server or the Mikrotik itself. To add in automatic mode, you just need to create a script in Mikrotik. The script will also add a rule to the firewall to automatically block requests from the IP address list.

Script for adding

/tool fetch url="https://raw.githubusercontent.com/Serp07/dude_blacklist_ip/main/dude_blacklist.rsc" mode=https dst-path=dude_blacklist.rsc

:delay 2

/import file=dude_blacklist.rsc

:if ([:len [/ip firewall filter find comment="AUTO_BLACKLIST_DROP"]] = 0) do={

    /ip firewall filter add \
        chain=forward \
        in-interface=ether1 \
        src-address-list=Dude_blacklist \
        action=drop \
        comment="AUTO_BLACKLIST_DROP" \
      

}

}

Scheduler

Next, you need to start a scheduler and define the interval at which the script will automatically run. Go to System > Scheduler > Add > "name your script"