]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:30:02 01.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 1 May 2026 02:30:03 +0000 (05:30 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 1 May 2026 02:30:03 +0000 (05:30 +0300)
html/AM-FwAddrLists.rsc
html/AM-GlobalFunc.rsc

index ed7715df03406032f9bd4028fe855ca083d1b9d5..22674c8f904772f55ebab1463fcd1d5dd89bca52 100644 (file)
       do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50;
   :local ScriptName [ :jobname ];
 
-  :global FwAddrLists;
-  :global FwAddrListTimeOut;
+  :global GlobalScriptsUrl;
+  :local FwAddrListsUrl ($GlobalScriptsUrl . "fw-addr-lists.d/");
+
+  :local FwAddrLists {
+    "allow"={
+      { url=($FwAddrListsUrl . "allow");
+        cert="Root YE"; timeout=1w };
+    };
+    "block"={
+      { url=($FwAddrListsUrl . "block");
+        cert="Root YE" };
+#      { url="https://raw.githubusercontent.com/stamparm/ipsum/refs/heads/master/levels/4.txt";
+#     # higher level (decrease the numerical value) for more addresses, and vice versa
+#      cert="ISRG Root X1" };
+#    { url="https://www.dshield.org/block.txt"; cidr="/24";
+#      cert="GTS Root R4" };
+#    { url="https://lists.blocklist.de/lists/strongips.txt";
+#      cert="GTS Root R4" };
+#    { url="https://www.spamhaus.org/drop/drop_v4.json";
+#      cert="GTS Root R4" };
+#    { url="https://www.spamhaus.org/drop/drop_v6.json";
+#      cert="GTS Root R4" };
+    };
+    "mikrotik"={
+      { url=($FwAddrListsUrl . "mikrotik");
+        cert="Root YE"; timeout=1w };
+    };
+    "FuckRKN"={
+      { url=($FwAddrListsUrl . "FuckRKN");
+        cert="Root YE"; timeout=1w };
+    };
+  };
+  :local FwAddrListTimeOut 1d;
 
   :global CertificateAvailable;
   :global EitherOr;
index 635451e6a4cd6059e4faa04975bf55bd4d855d58..8c0732fb4811bcdede4430eb1d91cd0de0fdd94e 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/348/e201dbb4";
+:global CommitId "main/349/7cf2b376";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 04:50:02 01.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:30:02 01.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;