aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2025-05-06fw-addr-lists: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06firmware-upgrade-reboot: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06dhcp-to-dns: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06dhcp-lease-comment: use :onerror for outer blockGravatar Christian Hesse4-12/+12
2025-05-06daily-psk: use :onerror for outer blockGravatar Christian Hesse4-12/+12
2025-05-06collect-wireless-mac: use :onerror for outer blockGravatar Christian Hesse4-12/+12
2025-05-06check-routeros-update: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06check-perpetual-license: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06check-lte-firmware-upgrade: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06check-health: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06check-certificates: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06certificate-renew-issued: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06capsman-rolling-upgrade: use :onerror for outer blockGravatar Christian Hesse3-9/+9
2025-05-06capsman-download-packages: use :onerror for outer blockGravatar Christian Hesse3-9/+9
2025-05-06backup-upload: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06backup-partition: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06backup-email: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06backup-cloud: use :onerror for outer blockGravatar Christian Hesse1-3/+3
2025-05-06accesslist-duplicates: use :onerror for outer blockGravatar Christian Hesse4-12/+12
2025-05-06global-functions: use :onerror for outer blockGravatar Christian Hesse1-6/+6
2025-05-06global-functions: $ExitError: support to pass in error messageGravatar Christian Hesse1-1/+3
2025-05-06check-routeros-update: log and print info with schedulerGravatar Christian Hesse1-1/+2
2025-05-03mod/notification-ntfy: drop unused variableGravatar Christian Hesse1-1/+0
2025-05-03doc/check-lte-firmware-upgrade: add missing reference for ntfyGravatar Christian Hesse1-1/+2
2025-05-03update list of contributorsGravatar Christian Hesse1-0/+1
2025-05-03introduce mod/notification-gotify...Gravatar Leonardo David Monteiro24-4/+265
... for sending notifications via Gotify (https://gotify.net). Closes: https://github.com/eworm-de/routeros-scripts/pull/92 Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-29Merge branch 'external-links' into nextGravatar Christian Hesse13-31/+47
2025-04-29README: add disclaimer on external linksGravatar Christian Hesse1-1/+17
2025-04-24doc/mod/notification-telegram: mark all external linksGravatar Christian Hesse1-3/+3
2025-04-24doc/mod/notification-notify: mark all external linksGravatar Christian Hesse1-2/+2
2025-04-24doc/mod/notification-matrix: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24doc/mod/notification-email: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24doc/log-forward: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24doc/fw-addr-lists: mark all external linksGravatar Christian Hesse1-4/+4
2025-04-24doc/check-routeros-update: mark all external linksGravatar Christian Hesse1-2/+2
2025-04-24doc/backup-partition: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24doc/backup-cloud: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24CONTRIBUTIONS: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24CERTIFICATES: mark all external linksGravatar Christian Hesse1-2/+2
2025-04-24BRANCHES: mark all external linksGravatar Christian Hesse1-1/+1
2025-04-24README: mark all external linksGravatar Christian Hesse1-10/+10
2025-04-17README: and another hint on RouterOS versionGravatar Christian Hesse1-0/+3
2025-04-17global-functions: $ScriptInstallUpdate: support downloading certificate...Gravatar Christian Hesse1-0/+6
... for individual scripts. Just add it in comment with "certificate=...". This also works on installtion: $ScriptInstallUpdate new-script "base-url=..., certificate=..."; Closes: https://github.com/eworm-de/routeros-scripts/pull/97
2025-04-14INITIAL-COMMANDS: fix typosGravatar Christian Hesse1-1/+1
2025-04-14INITIAL-COMMANDS: add status outputGravatar Miquel Bonastre1-0/+6
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-14INITIAL-COMMANDS: support installation from custom serverGravatar Miquel Bonastre1-5/+9
Closes: https://github.com/eworm-de/routeros-scripts/pull/96 Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-10global-functions: $CertificateNameByCN: warn with no matchGravatar Christian Hesse1-0/+2
2025-04-08global-functions: $CertificateNameByCN: return false without match...Gravatar Christian Hesse1-0/+4
... and return true on success.
2025-04-08global-functions: $CertificateNameByCN: pick the first match onlyGravatar Christian Hesse1-1/+1
2025-04-08global-functions: $CertificateNameByCN: support matching by fingerprint and nameGravatar Christian Hesse1-2/+3
2025-04-08global-functions: $CertificateDownload: no infinite loopGravatar Christian Hesse1-2/+2
We can not call $CertificateAvailable here, as that will most likely cause an infinite loop. After all that's the certificate mkcert.org is using. And it *is* available in this repository.
2025-04-08global-functions: $ScriptLock: increase interval with wait timeGravatar Christian Hesse1-7/+12
Inspired by: https://github.com/eworm-de/routeros-scripts/issues/95#issuecomment-2773513467
2025-04-08update list of contributorsGravatar Christian Hesse1-0/+1
2025-04-08global-functions: $ScriptLock: fix second parameterGravatar Ilya Kulakov1-1/+1
This broke with 1e8918fdaa5a30393e2004d1f5e4dff458936b67... Fixes: https://github.com/eworm-de/routeros-scripts/issues/95
2025-04-02README: give the script namesGravatar Christian Hesse1-51/+51
2025-04-01logo: strip some bytes...Gravatar Christian Hesse2-0/+0
... by just re-compressing/re-encoding.
2025-04-01mod/notification-telegram: fix override quirkGravatar Christian Hesse1-1/+2
IDs for chat and thread can be overridden. Overriding the chat probably makes the thread invalid - so ignore that then.
2025-04-01check-routeros-update: split off check-perpetual-license...Gravatar Christian Hesse8-39/+152
... and also add documentation, screenshot, etc.
2025-03-27check-routeros-update: send notification on renewed license...Gravatar Christian Hesse1-0/+10
... when a warning has been sent before.
2025-03-27check-routeros-update: send certificate warning just once...Gravatar Christian Hesse1-8/+15
... and another one once expired.
2025-03-27support creating the checksums fileGravatar Christian Hesse3-2/+17
2025-03-13capsman-download-packages: fix parameter for $RmFileGravatar Christian Hesse3-3/+3
The function can not handle ids, we have to pass a name instead.
2025-03-13check-routeros-update: fix condition for license checkGravatar Christian Hesse1-1/+1
Turns out that `next-renewal-at` is moved forward when renewal failed, so it never matches the criteria. Just start complaining three weeks before deadline.
2025-03-12netwatch-notify: check matching address type onlyGravatar Christian Hesse1-8/+12
2025-03-12netwatch-notify: increase the timeout even moreGravatar Christian Hesse1-2/+2
This interacts with the number of addresses in the address-list. Having a lot of addresses there (for exemple from script 'fw-addr-lists' ๐Ÿ˜œ) makes the 'find' take longer. We have to make sure that 'find' succeeds before the address times out. As this does not hurt... Let's just bump to 10 seconds to be safe.
2025-03-12netwatch-notify: increase timeout...Gravatar Christian Hesse1-2/+2
... as a timeout of one second expires immediately. ๐Ÿคจ
2025-03-11fw-addr-lists: raw.githubusercontent.com requires 'USERTrust RSA โ†ตGravatar Christian Hesse3-2/+43
Certification Authority' now
2025-03-11check-routeros-update: check perpetual license...Gravatar Christian Hesse1-0/+21
... as these have to be renewed and can expire.
2025-03-11Merge branch 'fw-addr-lists' into nextGravatar Christian Hesse1-38/+59
2025-03-11fw-addr-lists: get branch from calculated checksumGravatar Christian Hesse1-3/+8
The addresses were spread very uneven before. Let's calculate a checksum, and take the first two characters of that. The addresses are now spread evenly on 256 branches (0x00 to 0xff).
2025-03-11fw-addr-lists: two characters for branchGravatar Christian Hesse1-3/+3
Using one character for IPv4 is ok (1 to 9), but IPv6 global unicase (2000::/3) results in just two different characters (2 and 3). So let's use first two characters...
2025-03-11fw-addr-lists: put addresses into "branches"...Gravatar Christian Hesse1-28/+37
... effectively adding another layer and some complexity, but: The addresses are sorted inside the array, and sorting less addresses in a branch saves a lot of processing power. So this is a lot faster now...
2025-03-11fw-addr-lists: strip cidr for host addressesGravatar Christian Hesse1-0/+6
This makes sure the addresses match later when we read them from address-list for renew.
2025-03-11fw-addr-lists: do not clean upGravatar Christian Hesse1-2/+0
Cleanup is important on renew (so the script does not attempt to re-add), but we do not care here.
2025-03-06fw-addr-lists: put timeout into variableGravatar Christian Hesse1-6/+8
2025-03-06DEBUG: add info on $LogPrintVerboseGravatar Christian Hesse2-0/+15
2025-03-06fw-addr-lists: use $LogPrintVerbose ...Gravatar Christian Hesse1-6/+7
... to reduce debug output and speed up execution.
2025-03-06global-functions: introduce $LogPrintVerbose ...Gravatar Christian Hesse1-0/+3
... which is a declared function, but has no code, intentionally. It can be called as a no-op by default. If you want this output set the function to be the same as $LogPrint: :set LogPrintVerbose $LogPrint;
2025-03-06Merge branch 'checksums' into nextGravatar Christian Hesse1-3/+22
2025-03-06global-functions: $ScriptInstallUpdate: checksum only for same sourceGravatar Christian Hesse1-1/+2
So ignore if script is fetched from different base or with different suffix.
2025-03-06global-functions: $ScriptInstallUpdate: simplify checkGravatar Christian Hesse1-2/+1
This one should suffice...
2025-03-06global-functions: $ScriptInstallUpdate: put checksum into variableGravatar Christian Hesse1-2/+3
2025-03-06global-functions: $ScriptInstallUpdate: support checksums for CRLF scriptsGravatar Christian Hesse1-1/+2
2025-03-06global-functions: $ScriptInstallUpdate: get and compare checksumsGravatar Christian Hesse1-0/+13
The file 'checksums.json' is generated when deploying to my web server... This should speed up the update a lot as it reduces downloads to a minimum. ๐ŸŽ‰๐Ÿ˜
2025-03-05global-functions: $ScriptInstallUpdate: move code into blockGravatar Christian Hesse1-3/+7
2025-03-03ipv6-update: check for availability of both variablesGravatar Christian Hesse1-1/+1
2025-03-03ipv6-update: ignore if prefix is no longer validGravatar Christian Hesse1-0/+8
2025-02-27Merge branch 'quote-file-name' into nextrouteros-7.18-1Gravatar Christian Hesse2-2/+2
This is required with RouterOS 7.18 now... Well, probably the change was introduced with one of the beta versions...
2025-02-27mod/notification-telegram: $GetTelegramChatId: give thead id...Gravatar Christian Hesse1-0/+3
... if message was sent to group's topic.
2025-02-27INITIAL-COMMANDS: quote the certificate file nameGravatar Christian Hesse1-1/+1
2025-02-27mod/notification-telegram: $GetTelegramChatId: use last messageGravatar Christian Hesse1-4/+7
2025-02-27README: quote the certificate file nameGravatar Christian Hesse1-1/+1
2025-02-27Merge branch 'check-certificates' into nextGravatar Christian Hesse1-10/+15
2025-02-26check-certificates: try PKCS#12 before PEM...Gravatar Christian Hesse1-1/+1
... as that is more likely to have a private key. Is that true? ๐Ÿคจ
2025-02-26check-certificates: simplify return from function...Gravatar Christian Hesse1-4/+2
... and also break earch on success.
2025-02-26check-certificates: ... and even moreGravatar Christian Hesse1-0/+3
2025-02-26check-certificates: add more debug outputGravatar Christian Hesse1-1/+3
2025-02-26check-certificates: drop dot from type...Gravatar Christian Hesse1-2/+2
... and add it in file name.
2025-02-26check-certificates: catch and ignore import errorGravatar Christian Hesse1-4/+6
Hmm... ๐Ÿคจ When was that runtime error introduced? I *think* it worked before.
2025-02-25mod/notification-telegram: introduce $GetTelegramChatIdchange-135Gravatar Christian Hesse5-9/+52