Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block uablacklist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
uablacklist / sync_uablacklist
Last active Feb 4, 2020
Добавляет IP подсети, заблокированные украинским правительством, из в список адресов вашего Mikrotik
View sync_uablacklist
:local apiPrefix ""
:local tempFile "uablacklist.txt"
:local listName "uablacklist"
/log info "removing existing '$listName'..."
:put "removing existing '$listName'..."
/ip firewall address-list remove [/ip firewall address-list find list=$listName]
# mikrotik can't load >4KB file inside a variable, so backend contains file pieces which we download and parse one by one
:local i 0
You can’t perform that action at this time.