Commit graph

915 commits

Author SHA1 Message Date
Christian Hesse
e135ca1238 certificate-renew-issued: handle error when creating directory 2021-01-20 14:38:11 +01:00
Christian Hesse
c980699dd7 global-functions: add error handling 2021-01-20 14:23:57 +01:00
Christian Hesse
11d43e9fe5 global-functions: $SymbolForNotification: remove empty line 2021-01-20 14:08:01 +01:00
Christian Hesse
fa7f37e87f global-functions: $WaitForFile: declare input first 2021-01-20 14:07:20 +01:00
Christian Hesse
dc148065dc global-functions: $MkDir: clean path 2021-01-20 14:03:31 +01:00
Christian Hesse
6cea5a9f9b check-certificates: complete certificate renewal time
With a modified certificate renewal time may have failed if the new
certificate was not found.
2021-01-11 12:00:07 +01:00
Christian Hesse
d926c84cdb check-certificates: do not renew if loosing private key 2021-01-11 12:00:07 +01:00
Christian Hesse
8e628ce11e check-certificates: show info on private key 2021-01-11 12:00:07 +01:00
Christian Hesse
faf08b0575 global-functions: introduce and use $RequiredRouterOS 2021-01-04 10:39:11 +01:00
Christian Hesse
ab267d54b3 global-functions: $ScriptInstallUpdate: log error on reloading global functions 2021-01-03 21:37:48 +01:00
Christian Hesse
156024ac2f global-functions: $ScriptInstallUpdate: log error on reloading global configuration 2021-01-03 21:20:04 +01:00
Christian Hesse
90672798e8 hotspot-to-wpa: always use first entry to place before 2021-01-03 20:34:19 +01:00
Christian Hesse
3eccf923cc dhcp-to-dns: always use first entry to place before 2021-01-03 20:34:04 +01:00
Christian Hesse
c18f753338 collect-wireless-mac: always use first entry to place before 2021-01-03 20:33:32 +01:00
Christian Hesse
241d5fd2d7 ipv6-update: simplify the code...
... and make it match the code used in other scripts.
2021-01-03 20:27:24 +01:00
Christian Hesse
4368f500c3 ipv6-update: get old prefix from first matching address list entry 2021-01-03 19:56:47 +01:00
Christian Hesse
547fbc630a update copyright for 2021 2021-01-01 21:33:52 +01:00
Christian Hesse
ea7cdcb4a5 update list of contributors 2020-12-30 12:47:55 +01:00
Daniel Ziegenberg
ca6668950b collect-wireless-mac: always select first lease from dhcp-server
The script fails at setting the hostname when there are multiple leases
for a mac address.

In line 36 and 37 the hostname gets set from the data the lease. When there
is more than one lease for a specific mac address this fails with the message
"invalid internal item number". More than one lease for a mac address is
possible, if you have more than one SSID on a capsman and a single device
can login into more than one SSID.

Fixes #10

Signed-off-by: Christian Hesse <mail@eworm.de>
2020-12-30 12:42:03 +01:00
Christian Hesse
97ade535d9 certs: add plain text info about certificates
Also order certificates, so we have:
 * intermediate
 * root
 * alternative root, if any

Let's add 'ISRG Root X1' for 'E1' as there will be a valid cross-signed
chain 'E1' -> 'ISRG Root X2' -> 'ISRG Root X1'.
2020-12-30 00:45:11 +01:00
Christian Hesse
605c313e46 global-functions: $ScriptInstallUpdate: simplify code 2020-12-20 23:33:16 +01:00
Christian Hesse
caddcbabe2 global-functions: $ScriptInstallUpdate: drop ignore migration
Anybody had enough time to migrate, no?
2020-12-20 23:27:02 +01:00
Christian Hesse
0360a0ef90 global-functions: $ScriptInstallUpdate: implement migration mechanism
Reset $SentConfigChangesNotification and rerun $ScriptInstallUpdate
to test...

:set SentConfigChangesNotification
$ScriptInstallUpdate
2020-12-18 20:32:29 +01:00
Christian Hesse
40dc2415d3 global-functions: $ScriptInstallUpdate: make Let's Encrypt certificate semi-mandatory
... and remove the migration from changes.
2020-12-18 20:32:29 +01:00
Christian Hesse
05a9531dac certs: remove Let's Encrypt Authority X3 2020-12-18 20:32:29 +01:00
Christian Hesse
25d5454234 INITIAL-COMMANDS: drop Let's Encrypt Authority X3 2020-12-18 20:32:29 +01:00
Christian Hesse
c4c139d5a6 README: drop Let's Encrypt Authority X3 2020-12-18 20:32:29 +01:00
Christian Hesse
010e2d6b05 check-certificates: make the certificate renewal time configurable 2020-12-18 16:02:31 +01:00
Christian Hesse
be75772256 Merge branch 'ipv6-update' 2020-12-18 15:32:51 +01:00
Christian Hesse
3657830582 ipv6-update: notify about interface specific address list entries 2020-12-18 15:31:03 +01:00
Christian Hesse
cb72eccc6c ipv6-update: update interface specific address list entries 2020-12-18 10:11:18 +01:00
Christian Hesse
503dc3c32c ipv6-update: move the delay down
We have to wait for the interfaces, no need to delay address list entry.
2020-12-18 10:01:50 +01:00
Christian Hesse
744a03896c ipv6-update: automatically add ipv6 address list entry 2020-12-18 09:59:13 +01:00
Christian Hesse
e9210acfdb ipv6-update: add missing colon 2020-12-18 00:02:56 +01:00
Christian Hesse
62598b6653 import Let's Encrypt certificate "R3" 2020-12-17 22:47:12 +01:00
Christian Hesse
c51a630a21 INITIAL-COMMANDS: also import Let's Encrypt certificate "R3" 2020-12-17 22:14:25 +01:00
Christian Hesse
9f6b877aef README: also import Let's Encrypt certificate "R3" 2020-12-17 22:14:25 +01:00
Christian Hesse
50199a57a0 certs: add new Let's Encrypt certificates
https://letsencrypt.org/certificates/
2020-12-17 21:58:53 +01:00
Christian Hesse
16d3709030 log-forward: add 'if any' in log message 2020-12-14 23:39:50 +01:00
Christian Hesse
158c27e293 global-functions: $FlushTelegramQueue: log warning on empty queue...
... if scheduler exists.
2020-12-10 09:53:43 +01:00
Christian Hesse
adf35f3b16 global-functions: $FlushTelegramQueue: do not fail if run without scheduler 2020-12-10 09:38:59 +01:00
Christian Hesse
cef0e8c079 global-functions: $SendTelegram: give amount of truncated text 2020-12-01 09:11:37 +01:00
Michael Gisbers
e2e831dbf9 global-functions: $CertificateDownload: fix typo
Signed-off-by: Michael Gisbers <michael@gisbers.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
2020-11-29 22:26:18 +01:00
Christian Hesse
107f9e4bdf Merge branch 'telegram-clickable' 2020-11-27 10:03:08 +01:00
Christian Hesse
ca4e25283f global-functions: clickable links in telegram notifications 2020-11-26 23:04:05 +01:00
Christian Hesse
d09baddac3 global-functions: $SendEMail: prepare to add link
For e-mail just in plain text...
2020-11-26 23:04:05 +01:00
Christian Hesse
46866e2ff2 global-functions: $SendEMail: handle signature with $IfThenElse 2020-11-26 22:34:08 +01:00
Christian Hesse
b078ce2f0f global-functions: $SendTelegram: split off & move down truncation message 2020-11-26 22:24:56 +01:00
Christian Hesse
7e0558e85d global-functions: $SendTelegram: prepare to add clickable link
Formatting with fixed width font stopped links from being clickable.
2020-11-26 22:21:28 +01:00
Christian Hesse
d7725540f8 global-functions: $SendTelegram: change internal wording 2020-11-26 22:06:03 +01:00