aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2024-09-11fw-addr-lists: use lists in JSON format for spamhaus.orgGravatar Christian Hesse1-1/+3
2024-09-11fw-addr-lists: handle JSON format from spamhaus.org•••Closes: https://github.com/eworm-de/routeros-scripts/issues/79 Gravatar Christian Hesse1-1/+6
2024-09-05netwatch-dns: give warning on CRL useGravatar Christian Hesse1-0/+4
2024-09-04certs: add poor man's check 😜Gravatar Christian Hesse1-0/+31
2024-08-28certs: drop 'Baltimore CyberTrust Root'Gravatar Christian Hesse1-28/+0
2024-08-28fw-addr-lists: drop edrop.txt, which does no longer existGravatar Christian Hesse1-2/+0
2024-08-28fw-addr-lists: spamhaus.org requires 'GTS Root R4' now•••Fixes: https://github.com/eworm-de/routeros-scripts/issues/78 Gravatar Christian Hesse1-2/+2
2024-08-27certs: drop 'DigiCert Global Root CA'Gravatar Christian Hesse1-29/+0
2024-08-27doc/netwatch-dns: 'DigiCert Global Root G3' for Quad9Gravatar Christian Hesse1-1/+1
2024-08-27certs: add 'DigiCert Global Root G3'...•••... for quad9.net which can be used for DoH: $CertificateAvailable "DigiCert Global Root G3"; /ip/dns/set use-doh-server=https://9.9.9.9/dns-query verify-doh-cert=yes; Gravatar Christian Hesse1-0/+22
2024-08-20check-routeros-update: support switching to stable channel...•••... with a feature update in testing channel. Gravatar Christian Hesse1-0/+9
2024-08-19netwatch-dns: disable DoH if time not sync...•••... as it is possible that time is off, DNS via DoH fails (cert invalid), and finally syncing time fails due to failing DNS. Gravatar Christian Hesse1-0/+8
2024-08-19INITIAL-COMMANDS: match the certificate file name from Let's Encrypt website...•••... and our README. 😜 Gravatar Christian Hesse1-2/+2
2024-08-19README: match the certificate file name from Let's Encrypt website...•••... so import from manually downloaded and transferred file works out of the box as well. Gravatar Christian Hesse2-2/+2
2024-08-19README: make the QR code a linkGravatar Christian Hesse1-1/+1
2024-07-25telegram-chat: drop extra conversion•••The JSON parser was actually fixed in RouterOS 7.15beta4, but let's bump the required version to next stable release instead. routeros-7.15-3Gravatar Christian Hesse2-3/+3
2024-07-25daily-psk: drop workaround for old RouterOSrouteros-7.15-2Gravatar Christian Hesse5-11/+7
2024-07-25netwatch-notify: do not switch type when resolving•••This requires RouterOS 7.15beta4, but let's bump the required version to next stable release instead. routeros-7.15-1Gravatar Christian Hesse2-3/+4
2024-07-25INITIAL-COMMANDS: drop command to remove certificate file...•••... as this is done automatically with RouterOS 7.15rc1 and later. Gravatar Christian Hesse1-1/+0
2024-07-25README: drop command to remove certificate file...•••... as this is done automatically with RouterOS 7.15rc1 and later. Not bumping the required RouterOS version (badge) here... Worst thing that can happen is a stale certificate file left on storage. Gravatar Christian Hesse2-2/+1
2024-07-22global-functions: $EitherOr: revert...•••... but leave a comment. Gravatar Christian Hesse1-3/+1
2024-07-22global-functions: $EitherOr: pass boolean value•••Note that literal "true" or "false" (even without quotes) is converted to string. So you may have to enclose it in parentheses for a boolean value: > :put [ :typeof [ $EitherOr true false ] ]; str > :put [ :typeof [ $EitherOr (true) (false) ] ]; bool Gravatar Christian Hesse1-0/+3
2024-07-16Merge branch 'line-breaks' into nextrouteros-7.14-1Gravatar Christian Hesse123-152/+140
2024-07-16bump RouterOS requirement for all scripts and modules...•••... now that global-functions requires RouterOS 7.14 anyway. Gravatar Christian Hesse116-116/+116
2024-07-16mod/ipcalc: use :tocrlfGravatar Christian Hesse2-5/+4
2024-07-16mod/inspectvar: use :tocrlfGravatar Christian Hesse2-4/+3
2024-07-16global-functions: $Unix2Dos: use :tocrlfGravatar Christian Hesse1-6/+1
2024-07-16global-functions: $PrettyPrint: use :tocrlfGravatar Christian Hesse1-5/+1
2024-07-16global-functions: $Dos2Unix: use :tolfGravatar Christian Hesse1-5/+1
2024-07-16global-functions: $ScriptInstallUpdate: support storing with CRLF•••Adding this in `global-config-overlay` make the scripts being stored with CRLF line breaks: :global ScriptUpdatesCRLF true; Handle with care, I do not recommend it. Thus it's just a hidden setting. Gravatar Christian Hesse1-1/+3
2024-07-16ppp-on-up: support scripts with CRLF line breaksGravatar Christian Hesse1-1/+1
2024-07-16news-and-changes: support scripts with CRLF line breaksGravatar Christian Hesse1-1/+1
2024-07-16capsman-download-packages: support scripts with CRLF line breaksGravatar Christian Hesse3-3/+3
2024-07-16global-functions: $ScriptInstallUpdate: allow CRLF on deviceGravatar Christian Hesse1-1/+2
2024-07-16global-functions: $ScriptInstallUpdate: forcibly convert to LF...•••... to make sure we do not have unintended CRLF line breaks. Gravatar Christian Hesse1-2/+2
2024-07-16README: use :tocrlf to convert global-config-overlayGravatar Christian Hesse1-2/+2
2024-07-16doc/mod/ssh-keys-import: drop hint on older RouterOSGravatar Christian Hesse1-5/+1
2024-07-11capsman-download-packages: support running several scripts...•••... as it is possible to have more than just one providing the functionality. Gravatar Christian Hesse3-9/+15
2024-07-11capsman-{download-packages,rolling-upgrade}: run matching script•••It is possible to run old and new CAPsMAN on one system simultaneously (... since RouterOS 7.13?). Thus it may make sense to have both variants of these scripts installed, and we have to make sure to run the correct one. Gravatar Christian Hesse6-6/+6
2024-07-10update list of contributorsGravatar Christian Hesse1-0/+1
2024-07-08backup-partition: check that target is inactiveGravatar Christian Hesse1-2/+2
2024-07-08backup-partition: check the fallback partition actually exists...•••... and use its id for actions. Gravatar Christian Hesse1-8/+16
2024-07-05backup-partition: rename variableGravatar Christian Hesse1-8/+8
2024-07-04packages-update: run backups before package download•••This reduces memory pressure, especially on device with very limited RAM like mAP with its 64 MB. Gravatar Christian Hesse1-26/+26
2024-07-04global-functions: $MkDir: enable tmpfs if disabledGravatar Christian Hesse1-1/+6
2024-07-02global-functions: $GetMacVendor: cert 'GTS Root R4'Gravatar Christian Hesse2-1/+21
2024-06-25check-certificates: limit scope for $CertNew...•••... into block where certificate is replaced. This should unbreak renewing with a certificate updated in place. Gravatar Christian Hesse1-4/+3
2024-06-21global-functions: $CertificateDownload: try fallback to mkcert.org•••There's a nice API that allows to download certificate by exact common name. Let's use that, as a fallback at least. https://mkcert.org/ change-131Gravatar Christian Hesse2-11/+31
2024-06-21Merge branch 'root-certificates' into nextGravatar Christian Hesse36-2456/+334
2024-06-21notify on changes regarding certificateschange-130Gravatar Christian Hesse2-1/+2
2024-06-21certs: DigiCert TLS Hybrid ECC SHA384 2020 CA1 -> DigiCert Global Root CA•••This is used by Cloudflare DNS Quard9 (9.9.9.9). $CertificateAvailable "DigiCert Global Root CA"; /ip/dns/set use-doh-server=https://9.9.9.9/dns-query verify-doh-cert=yes; Gravatar Christian Hesse3-175/+30
2024-06-21certs: DigiCert Global G2 TLS RSA SHA256 2020 CA1 -> DigiCert Global Root G2•••This is used by Cloudflare DNS (1.1.1.1). $CertificateAvailable "DigiCert Global Root G2"; /ip/dns/set use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes; Gravatar Christian Hesse3-183/+30
2024-06-21certs: Go Daddy Secure Certificate Authority - G2 -> Go Daddy Root Certificat...Gravatar Christian Hesse4-180/+32
2024-06-21certs: GTS CA 1C3 / GTS CA 1P5 -> GTS Root R1Gravatar Christian Hesse5-482/+40
2024-06-21certs: Starfield Secure Certificate Authority - G2 -> Starfield Root Certific...Gravatar Christian Hesse3-180/+31
2024-06-21certs: Cloudflare Inc ECC CA-3 -> Baltimore CyberTrust RootGravatar Christian Hesse3-165/+30
2024-06-21certs: Certum Domain Validation CA SHA2 -> Certum Trusted Network CAGravatar Christian Hesse3-177/+30
2024-06-21certs: GlobalSign Atlas R3 DV TLS CA 2022 Q3 -> GlobalSignGravatar Christian Hesse3-179/+30
2024-06-21certs: R3 / R10 -> ISRG Root X1Gravatar Christian Hesse6-471/+41
2024-06-21certs: E1 / E5 -> ISRG Root X2•••In the beginning of Let's Encrypt their root certificate ISRG Root X1 was not widely trusted, at least some older and/or mobile platforms were missing that certificate in their root certificate store. At that time Let's Encrypt was using an alternative chain of trust, where a certificate was cross-signed with DST Root CA X3. To make sure a valid chain of trust is available under all circumstances a set of all certificates had to be supplied: both root vertificates ISRG Root X1 & DST Root CA X3, and an intermediate certificate. This was still true after DST Root CA X3 expired, as it could still be used as a root anchor and was shipped by Let's Encrypt when requested. 🤪 This time is finally over, and we have a clean chain for trust ending in ISRG Root X1 (or ISRG Root X2). Well, actually it is the other way round... Let's Encrypt signs with different tantamount intermediate certificates. There is not only E5, but also E6 - and we can not know beforehand which one is used on renew. So let's jetzt drop the intermediate certificates now, and rely on root certificates only. We are perfectly fine with this these days. Follow-up commits will do the same for *all* certificates. The certificate is downloaded with: curl -d '["ISRG Root X2"]' https://mkcert.org/generate/ | grep -v '^$' > certs/ISRG-Root-X2.pem Gravatar Christian Hesse10-263/+38
2024-06-20doc/mod/notification-matrix: drop certificate hint...•••... as matrix.org switched to Let's Encrypt with ISRG Root X2. Gravatar Christian Hesse1-3/+0
2024-06-19Let's Encrypt changed their intermediate certificates•••https://letsencrypt.org/2024/03/19/new-intermediate-certificates https://letsencrypt.org/certificates/ But let's keep the old ones around for now, as some sites are still using the old intermediate. Gravatar Christian Hesse8-16/+366
2024-06-11unattended-lte-firmware-upgrade: check on valid version firstGravatar Christian Hesse1-1/+2
2024-06-11unattended-lte-firmware-upgrade: drop the AT reset•••The AT command to reset is specific to modem. So this worked for some only... Let's just drop it, and update the log message. Gravatar Christian Hesse1-2/+1
2024-06-11unattended-lte-firmware-upgrade: omit just another onceGravatar Christian Hesse1-1/+1
2024-06-10backup-cloud: remove trailing spaces•••How did I produce these!? 😳 Gravatar Christian Hesse1-1/+1
2024-06-10unattended-lte-firmware-upgrade: omit once•••Omit `once` from the `/interface/lte/firmware-upgrade` command to make sure it does acutally return a valid result. Fixes #69 Gravatar netravnen1-1/+1
2024-06-10check-lte-firmware-upgrade: omit once•••Omit `once` from the `/interface/lte/firmware-upgrade` command to make sure it does acutally return a valid result. Gravatar netravnen1-1/+1
2024-06-05backup-cloud: log note on previous connection errorsGravatar Christian Hesse1-0/+4
2024-06-01global-functions: $CleanName: no exception for dash...•••... as we still want to deduplicate it when it is inside the input string. This also unbreak certificate import for "Go Daddy Secure Certificate Authority - G2" (and more)... Gravatar Christian Hesse1-1/+1
2024-05-25telegram-chat: drop extra parenthesisGravatar Christian Hesse1-3/+3
2024-05-24telegram-chat: convert the message (command) to string•••RouterOS 7.15beta4 fixed a bug in JSON parser: *) console - do not convert string to array in ":deserialize" command; Before that change commands with a comma caused very crazy issues. Let's convert the message to a string. This does not give exactly the expected result, but mitigates telegram-chat to explode. A command like... /ip/address/print proplist=address,network; ... is converted to... /ip/address/print proplist=address;network; ... and results in: Columns: ADDRESS # ADDRESS 0 10.0.0.1/24 1 127.0.0.1/8 bad command name network (line 1 column 36) Gravatar Christian Hesse1-10/+11
2024-05-23Merge branch 'backup-partition' into nextGravatar Christian Hesse5-4/+66
2024-05-23backup-partition: news on support for copy-overchange-129Gravatar Christian Hesse2-1/+2
2024-05-23doc/backup-upload: fix link for backup-partitionGravatar Christian Hesse1-1/+1
2024-05-23backup-partition: support copy before feature updateGravatar Christian Hesse3-3/+30
2024-05-23doc/backup-email: fix link for backup-partitionGravatar Christian Hesse1-1/+1
2024-05-23backup-partition: move code to a local functionGravatar Christian Hesse1-5/+17
2024-05-23doc/backup-cloud: fix link for backup-partitionGravatar Christian Hesse1-1/+1
2024-05-23backup-partition: support RouterOS copy-over...•••... when run interactively from CLI. Gravatar Christian Hesse2-3/+25
2024-05-15daily-psk: quote ssid and passphraseGravatar Christian Hesse4-4/+4
2024-05-15daily-psk: decrease indention in notificationGravatar Christian Hesse4-12/+12
2024-05-15daily-psk: adopt syntax changes•••RouterOS 7.15beta8 came with this change: *) wifi - show inherited properties with "print" command (replaces "actual-configuration") and added "print config" for showing only configured values; While the old code is bad syntax with RouterOS 7.15, the new code is valid for older RouterOS, but produces different (and more or less unexpected) results. 🥴 Let's use the new code, and add a check on the RouterOS version. With old RouterOS this now sends the notification even if the interface is disabled. routeros-7.15beta8-1Gravatar Christian Hesse4-2/+6
2024-05-15global-functions: $IsTimeSync: initialize with uptime...•••... to make sure the warning is not issued too early. Gravatar Christian Hesse1-2/+2
2024-05-14fw-addr-lists: add 'strongips' list from blocklist.dechange-128Gravatar Christian Hesse5-3/+182
2024-05-08global-functions: $IsTimeSync: add (one time) warning on failed ntp syncGravatar Christian Hesse1-0/+1
2024-05-08global-functions: $IsTimeSync: log just onceGravatar Christian Hesse1-3/+3
2024-04-29global-functions: $WaitForFile: drop extra conversionGravatar Christian Hesse1-1/+1
2024-04-29global-functions: $WaitForFile: respect minimum delayGravatar Christian Hesse1-1/+2
2024-04-29global-functions: $WaitForFile: use fewer stepsGravatar Christian Hesse1-2/+2
2024-04-29telegram-chat: shorten the messageGravatar Christian Hesse1-1/+1
2024-04-29mod/notification-telegram: format percentage italicGravatar Christian Hesse1-2/+2
2024-04-29mod/notification-telegram: format date & time italicGravatar Christian Hesse1-2/+2
2024-04-29mod/notification-telegram: support excluding characters from escaping...•••... to support formatting in plain text. Handle with care, this can break the request if done wrong! Gravatar Christian Hesse1-1/+4
2024-04-29mod/notification-telegram: use proper variable naming...•••... in local escaping function. Gravatar Christian Hesse1-7/+9
2024-04-29mod/notification-telegram: capitalize Telegram in messageGravatar Christian Hesse1-1/+1
2024-04-29mod/notification-matrix: format date & time italicGravatar Christian Hesse1-5/+6
2024-04-29global-functions: $CleanName: do not start with a dashGravatar Christian Hesse1-4/+12
2024-04-29mod/ssh-keys-import: remove temporary directoryGravatar Christian Hesse1-0/+2
2024-04-29mod/ssh-keys-import: create directory laterGravatar Christian Hesse1-5/+5