aboutsummaryrefslogtreecommitdiffstats
path: root/fw-addr-lists.rsc
AgeCommit message (Collapse)AuthorFilesLines
2024-12-09fw-addr-lists: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-11-27fw-addr-lists: require RouterOS 7.16routeros-7.16-4Gravatar Christian Hesse1-1/+1
Actually the requirement bumped with the change in commit: * 084c246ef0cab329fe981732089277fa8398800b fw-addr-lists: simplify looping lines
2024-11-06fw-addr-lists: simplify looping linesrouteros-7.16-1Gravatar Christian Hesse1-4/+3
With `:deserialize` the **record** separator is always a new line. The property `delimiter=` is a **field** reparator, so you can parse a lines into an array. We do not want (or need) that, so use new line as field separator. This will result in an array with just one element, and we use that. Also convert the data to line feed explicitly, just to be sure.
2024-09-11fw-addr-lists: handle JSON format from spamhaus.orgGravatar Christian Hesse1-1/+6
Closes: https://github.com/eworm-de/routeros-scripts/issues/79
2024-07-16bump RouterOS requirement for all scripts and modules...Gravatar Christian Hesse1-1/+1
... now that global-functions requires RouterOS 7.14 anyway.
2024-04-07fw-addr-lists: break long linesGravatar Christian Hesse1-4/+8
2024-04-07fw-addr-lists: show count of active addressesGravatar Christian Hesse1-0/+1
2024-04-07fw-addr-lists: human readable numbers for countsGravatar Christian Hesse1-2/+4
2024-04-07fw-addr-lists: rework log messages, always include list nameGravatar Christian Hesse1-13/+26
2024-04-07fw-addr-lists: add debug message on successful downloadGravatar Christian Hesse1-0/+3
2024-04-07fw-addr-lists: try with less regexp matchesGravatar Christian Hesse1-8/+15
2024-04-07fw-addr-lists: use $FetchHugerouteros-7.13-5Gravatar Christian Hesse1-12/+6
2024-03-29global-functions: rename $FetchUserAgent -> $FetchUserAgentStrGravatar Christian Hesse1-2/+2
... to make sure the function does not clash with the variable we had before, as this causes issue with news and changes notification.
2024-03-26fw-addr-lists: one more interation on download failure...Gravatar Christian Hesse1-2/+2
... with even more delay. This script is called with long interval from scheduler, so should not be an issue.
2024-03-16global-functions: generate user agent string in function...Gravatar Christian Hesse1-2/+2
... and add the caller and my shortened url.
2024-03-12fw-addr-lists: switch to $LogPrintGravatar Christian Hesse1-13/+13
2024-03-12global-functions: $LogPrintOnce: drop support for exitGravatar Christian Hesse1-1/+1
This is not widely adopted or used, so let's just drop it - no compatibility.
2024-03-12fw-addr-lists: drop main function, use :do with on-errorGravatar Christian Hesse1-6/+4
2024-03-12global-functions: $ScriptLock: do not exit from global functionGravatar Christian Hesse1-1/+3
2024-03-04fw-addr-lists: move code into functionGravatar Christian Hesse1-112/+117
2024-02-29fw-addr-lists: add support for IPv6change-119Gravatar Christian Hesse1-1/+33
2024-02-29fw-addr-lists: rename variableGravatar Christian Hesse1-11/+11
2024-02-29fw-addr-lists: update wordingGravatar Christian Hesse1-3/+3
2024-02-29fw-addr-lists: get timeout from loopGravatar Christian Hesse1-3/+3
2024-01-30fw-addr-lists: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-19fw-addr-lists: use prepared user-agent string with fetchGravatar Christian Hesse1-1/+2
2024-01-18global-functions: $LogPrintOnce: support exitGravatar Christian Hesse1-1/+1
2024-01-01update copyright for 2024Gravatar Christian Hesse1-1/+1
2023-12-13fw-addr-lists: warn on possible truncationGravatar Christian Hesse1-0/+5
... as fetch truncates data at about 64kB, reported in SUP-132297.
2023-11-30fw-addr-lists: support timeout per listGravatar Christian Hesse1-6/+8
This works with something like this: :global FwAddrLists { "allow"={ { url="https://eworm.de/ros/fw-addr-lists/allow"; cert="E1"; timeout=1w }; }; ... } All urls for one named list should have the same timeout! With different timeout values and identical addresses the behavior is besically undefined, depending on order.
2023-10-19fw-addr-lists: rework the retry logicGravatar Christian Hesse1-4/+7
... with increasing delay.
2023-09-06fw-addr-lists: no (mixed) capitalization in messageGravatar Christian Hesse1-1/+1
2023-06-23fw-addr-lists: retry to download on failureGravatar Christian Hesse1-4/+14
2023-06-13fw-addr-lists: support domain names in listsGravatar Christian Hesse1-3/+3
2023-06-13introduce fw-addr-listschange-101Gravatar Christian Hesse1-0/+99