1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

978 Commits

Author SHA1 Message Date
401f179ae9 doc/log-forward: mention Matrix 2021-06-09 14:41:09 +02:00
50d1706a06 global-functions: make Telegram notifications a module change-54 2021-06-08 21:07:25 +02:00
8375673d93 global-functions: implement notifications via Matrix
Matrix is an open network for secure, decentralized communication - and
it has a web api.

A warning on message type: Using 'm.notice' breaks rendering on Element
for Android (no fixed width font) and does not pop up desktop
notification. Thus we use 'm.text'. Should be safe as we do not send the
messages in response to other messages.

https://matrix.org/
change-53
2021-06-08 21:07:25 +02:00
7a43bfbc6a global-functions: make notification functions extensible
This allows to add notification functions without overloading functions.
Just add it into the array:

:set ($NotificationFunctions->"fancy-messager") do={
  # notification magic here...
}

Adding functions $SendFancyMessager and/or $SendFancyMessager2 may be
useful. Optionally a function to flush a queue may be required.

A BIG FAT WARNING about function parameters:
Calling a function from array results in $0 for the function name being
skipped. That's why we have to add the function name manually!
2021-06-08 21:07:24 +02:00
b866eca3ec global-functions: $ScriptInstallUpdate: drop the re-run message
This makes sense just rarely... For important changes we have the
migration mechanism. So just drop this.
2021-06-08 21:07:24 +02:00
f9a2afdeda global-functions: $ScriptInstallUpdate: reload configuration later 2021-06-08 21:07:24 +02:00
2315d6bc59 global-functions: $ScriptInstallUpdate: reload functions just once 2021-06-08 21:07:24 +02:00
57b0f1b2dd global-functions: support loading modules
If script's name starts with "global-functions.d/" it is handled
as module:

 * loaded at startup
 * triggers reload on update
2021-06-08 21:07:24 +02:00
a1c8716a95 INITIAL-COMMANDS: make github copy function work
The Github copy function skips all line breaks, so add some extra
semicolons to fix syntax.
2021-06-08 20:58:25 +02:00
7de5b58ad4 update list of contributors 2021-06-06 21:41:42 +02:00
80ee7d3bdd Makefile: remove extra whitespace 2021-05-26 08:51:51 +02:00
e74b2e03a2 ipv6-update: apply a mask on prefix
Fixes #11
2021-05-24 21:32:56 +02:00
330bc7fc8b check-certificates: fix variable name 2021-05-21 08:31:45 +02:00
45dd33c90a global-functions: $DownloadPackage: quote package name 2021-05-19 14:03:18 +02:00
05a7ae409b netwatch-notify: add info on hook in notification 2021-05-18 16:44:07 +02:00
5037dbbedc Merge branch 'lets-encrypt-ISRG-X1' into next 2021-05-18 16:33:52 +02:00
4427cabd0e update Let's Encrypt trust chain
Drop 'DST Root CA X3', use 'ISRG Root X1' instead. The migration code
makes sure that...

 * the intermediate certificate 'R3' is signed by 'ISRG Root X1'
 * 'ISRG Root X1' is self-signed, not cross-signed by 'DST Root CA X3'
 * 'DST Root CA X3' is finally gone
change-52
2021-05-18 16:33:35 +02:00
f2433b8091 drop certificate DST Root CA X3
Let's Encrypt planned the transition to ISRG's root certificate ("ISRG Root
X1") on July 8, 2019, but postponed several times.

Finally they found another solution: A certificate 'ISRG Root X1', but
cross-signed with 'DST Root CA X3' and with a livetime that exceeds that
of the root CA. This is said to work for most operating system where root
certificate authorities are just 'trust anchors'.

I doubt this is true for RouterOS, where certificates are just imported
into the certificate store. So let's migrate to 'ISRG Root X1' now.
2021-05-18 16:32:26 +02:00
862417b8d3 add 'ipsec-to-dns' change-51 2021-05-17 16:41:51 +02:00
604306f220 dhcp-to-dns: use $0 in strings 2021-05-17 16:19:57 +02:00
2ba389a2be dhcp-to-dns: put string into variable 2021-05-17 16:18:07 +02:00
ed1a6c5de9 README: use svg logo 2021-05-07 09:18:39 +02:00
cd330a8518 logo: clean png export 2021-05-07 09:18:39 +02:00
2c77db52bf logo: convert text to path 2021-05-07 09:16:52 +02:00
8ac4f6570a logo: scale to 96x96 pixels 2021-05-07 09:16:52 +02:00
254126430e Merge branch 'netwatch-notify' into next 2021-05-06 15:42:54 +02:00
96621e01cb netwatch-notify: log failed resolve just once 2021-05-06 15:34:04 +02:00
0b1bb0f2b2 netwatch-notify: attempt to update address with working resolver only 2021-05-06 15:33:52 +02:00
cfb31e844c netwatch-notify: support dynamic address update change-50 2021-05-06 15:11:05 +02:00
9d19313eee netwatch-notify: log on host up...
... if logged on host down before.
2021-05-06 15:11:05 +02:00
41f7d1e466 doc/netwatch-notify: tips & tricks: one of several hosts 2021-05-05 08:31:14 +02:00
64ff7fcf65 doc: inform about dependency on base installation
That should make the documentation clearer if external sites link to the
documentation of a specific script.
2021-05-03 15:07:50 +02:00
e0e53b8add update list of contributors 2021-05-03 10:35:30 +02:00
666cd3f184 upload-backup: add second symbol 2021-04-29 22:37:36 +02:00
9e81707491 email-backup: add second symbol 2021-04-29 22:37:36 +02:00
aa4ad27b0a cloud-backup: add second symbol 2021-04-29 22:37:36 +02:00
34ab2837a8 email-backup: add symbol in e-mail
That's easy now that we use $SendEMail2...
2021-04-29 22:37:36 +02:00
d2560db5c9 email-backup: use $SendEMail2
This drops $EmailBackupTo & $EmailBackupCc from settings! Use settings
overwrite if required:

:global EmailGeneralToOverride {
  "email-backup"="backup@example.com";
}
change-49
2021-04-29 22:37:36 +02:00
529cefffaf global-functions: $SendEMail2: support file attachments 2021-04-29 22:37:36 +02:00
c2b45a9093 email-backup: work inside directory 2021-04-29 21:29:32 +02:00
51007f9224 upload-backup: work inside directory 2021-04-29 21:29:32 +02:00
ff4e5339d0 capsman-rolling-upgrade: properly handle vanished cap 2021-04-29 15:34:09 +02:00
afc231596c packages-update: update wording 2021-04-29 14:55:51 +02:00
6f7ecaeec4 packages-update: add missing colon 2021-04-29 14:55:51 +02:00
7ed54a4fe7 global-functions: $DownloadPackage: be more verbose 2021-04-29 14:55:51 +02:00
0f445fd528 global-functions: $DownloadPackage: fix typo 2021-04-29 14:40:29 +02:00
5d973a095a global-functions: $FlushEmailQueue: try to avoid running simultaneously
We can not check the status for a *specific* mail, so running simultaneously
is a problem. Let's increase the interval to the number of queue items -
and hope it helps. Decrease when done.
2021-04-29 09:12:17 +02:00
da87761220 Merge branch 'notifications' into next 2021-04-28 20:16:08 +02:00
56b7523775 global-functions: notify about settings override change-48 2021-04-28 15:33:37 +02:00
b497edd092 global-config: comment on overriding e-mail and Telegram settings 2021-04-28 15:11:08 +02:00