Static Fw address-list for Facebook

First you must create in ip firewall filter your add-dst-to-address-list rule

\

make dynamic fw address list static

Written by BrasDeutscher,PA,Brazil

Testet under RouterOS v6.36.3

{

Set your dynamic list name here -search value

:global dl "facebook"

Set your new static list name here

:global sl "FACEBOOK"

Set your list comment here

:global cm FB

!!-- DO NOT CHANGE ANY MORE BELOW --!!

:global dst
:global action
:foreach l in=[/ip firewall address-list find where dynamic list="$dl" ] do={
:set dst [/ip firewall address-list get $l address ];
:if ([/ip firewall address-list find where ! dynamic address=$dst
comment="$cm" ] = "" ) do={
:set action [/ip firewall address-list add list="$sl" address=$dst
comment="$cm" ];
:log warning ("Add new address-list Name:$sl Dst-IP:$dst");
}}}