Code: Select all
{
:foreach addr in=[/ip firewall address-list find list=Blacklist] do={
:local ipAddr [/ip firewall address-list get $addr address];
:put $ipAddr
}
}
216.218.206.0/24
146.88.240.0/24
37.49.229.222
143,198,215,243
184.105.247.0/24
184.105.139.0/24
184.105.143.0/24
64.62.197.0/24
170.106.115.0/24
65.49.20.0/24
I'm trying to get that dump of IPs to put it in a file, I've tried some options without success. For example:
Code: Select all
{
:foreach addr in=[/ip firewall address-list find list=Blacklist] do={
:local ipAddr [/ip firewall address-list get $addr address];
/file print file=MyList
delay 1s
/file set MyList.txt contents=$ipAddr
}
}
BR.