Community discussions

MikroTik App

Search found 2 matches

by shed909
Sat Apr 25, 2020 6:04 am
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 69
Views: 14704

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

Hello! how can i import it? for example aggregated ip from china? https://www.ipdeny.com/ipblocks/ https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone I try, but it doesn't work Try: $update url=https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone description="IPdeny cn...
by shed909
Sat Apr 25, 2020 6:02 am
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 69
Views: 14704

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

ip firewall address-list :local update do={ :do { :local data ([:tool fetch url=$url output=user as-value]->"data") remove [find list=blacklist comment=$description] :while ([:len $data]!=0) do={ :if ([:pick $data 0 [:find $data "\n"]]~"^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}") do={ :do ...