:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/649/998f9ca0";
+:global CommitId "main/650/31d05905";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:10:03 15.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:30:02 15.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 140;
"telegra.ph"\r
"grani.ru"\r
"xhamster.com"\r
- "kasparov.ru"\r
"lostfilm.tv"\r
"rutracker.org"\r
"lurkmore.to"\r
"telegram.org"\r
"api.telegram.org"\r
"telegram.me"\r
- "fbcd.net"\r
"facebook.com"\r
"instagram.com"\r
- "twimg.com"\r
"x.com"\r
"twitter.com"\r
"youtube.com"\r
"googleapis.com"\r
"youtu.be"\r
- "ytimg.com"\r
"googlevideo.com"\r
"gstatic.com"\r
"googleusercontent.com"\r
:do {\r
/ip firewall address-list add list=$ListRKN address=$newAddress comment=$aItem;\r
} on-error={\r
- :log error "error when adding ip to list: $ListRKN address: $newAddress domain: $aItem";\r
+ :log error "error when adding ip to list A record: $aRecord, address: $newAddress domain: $aItem";\r
}\r
}\r
:if ([/ip dns cache all get $dnsRecord type]="CNAME") do={\r
:local cname;\r
:local nextCname;\r
+ :local cnameAddress;\r
:set cname [/ip dns cache all find where (name=$aItem && type="CNAME")];\r
:set nextCname [/ip dns cache all find where (name=[/ip dns cache all get $cname data] && type="CNAME")];\r
:while ($nextCname != "") do={\r
}\r
:foreach aRecord in=[/ip dns cache all find where (name=[/ip dns cache all get $cname data] && type="A")] do={\r
:do {\r
- /ip firewall address-list add list=$ListRKN address=[/ip dns cache all get $aRecord data] comment=$aItem;\r
+ :set cnameAddress [/ip dns cache all get $aRecord data];\r
+ /ip firewall address-list add list=$ListRKN address=$cnameAddress comment=$aItem;\r
# /ip firewall raw add action=add-dst-to-address-list address-list=$ListRKN address-list-timeout=none-dynamic chain=prerouting comment=$aItem content=$aItem;\r
} on-error={\r
- :log error "error when adding ip to list:$ListRKN address: $newAddress domain: $aItem record: $aRecord";\r
+ :log error "error when adding ip to list CNAME record: $cname, A record: $aRecord, address: $newAddress, from domain: $aItem.";\r
}\r
}\r
}\r