Commit graph

3231 commits

Author SHA1 Message Date
Christian Hesse
a74da2fb84 doc/mod/notification-telegram: use relative reference in link
This may break, depending on site.
2025-11-19 08:26:20 +01:00
Christian Hesse
1efebf591d contrib/notification: format the values italic 2025-11-19 08:26:20 +01:00
Christian Hesse
5cd51c3d18 contrib/notification: update date format 2025-11-19 08:26:20 +01:00
Christian Hesse
502c04e903 contrib/{logo-color,notification}: add navigation structure 2025-11-19 08:26:20 +01:00
Christian Hesse
43f77661ab contrib/*: unify html code 2025-11-19 08:26:20 +01:00
Christian Hesse
d591017437 contrib/html: drop ampersand, comma, dash & tick from id/anchor 2025-11-19 08:26:20 +01:00
Christian Hesse
a975018fc7 contrib/html: properly handle anchors 2025-11-19 08:26:20 +01:00
Christian Hesse
1351d67530 contrib/html: link the logo with relative path 2025-11-19 08:26:20 +01:00
Christian Hesse
bcaf737b03 contrib/html: increase default line height 2025-11-19 08:26:20 +01:00
Christian Hesse
647e14cd6f contrib/html: add a margin on left and right...
... for windows in landscape (wider than high). Also make the
notification float right for landscape only.
2025-11-19 08:26:20 +01:00
Christian Hesse
7684c66407 contrib/html: include stylesheet via link 2025-11-19 08:26:20 +01:00
Christian Hesse
8b1d2524d3 contrib/{logo-color,notification}: use a single style 2025-11-19 08:26:20 +01:00
Christian Hesse
a1f568ab7e contrib/html: add empty lines...
... for easier rebasing.
2025-11-19 08:26:20 +01:00
Christian Hesse
8eeefb3c7c README: add a sub-section for code hosting 2025-11-19 08:26:20 +01:00
Christian Hesse
e5567df5a4 README: add the upstream url verbatim 2025-11-19 08:26:20 +01:00
Christian Hesse
5f3482047d README: move the QR code 2025-11-19 08:26:20 +01:00
Christian Hesse
b7fb8737e9 Merge branch 'builtin-trust-store' into next 2025-11-19 08:26:20 +01:00
Christian Hesse
f0044f9886 mod/notification-email: remove schedule with find...
... as a race condition could occur and the scheduler is already gone.
2025-11-19 08:26:20 +01:00
Christian Hesse
7a28834374 doc/mod/notification-matrix: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
a72bccc49c global-functions: $ScriptInstallUpdate: extra actions on 'not found' only 2025-11-19 08:26:20 +01:00
Christian Hesse
beae09620a CERTIFICATES: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
dad4bc3f18 global-functions: $ScriptInstallUpdate: either or...
... but not both.
2025-11-19 08:26:20 +01:00
Christian Hesse
bd8c54d1cd update-tunnelbroker: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
66f247cf6e global-functions: $ScriptInstallUpdate: give hint on ignore
Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
2025-11-19 08:26:20 +01:00
Christian Hesse
5fcaf2ef07 telegram-chat: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
32edc8231b contrib/checksums: output to stdout...
... and let the Makefile redirect.
2025-11-19 08:26:20 +01:00
Christian Hesse
64b1b6f444 netwatch-dns: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
98e598eedd global-functions: $CertificateDownload: drop unused function 2025-11-19 08:26:20 +01:00
Christian Hesse
a1da673f95 mod/notification-telegram: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
854679775f check-certificates: add missing semicolon 2025-11-19 08:26:20 +01:00
Christian Hesse
153fcbd69d mod/notification-ntfy: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
05ce15f966 doc/mode-button: create code block with indention 2025-11-19 08:26:20 +01:00
Christian Hesse
8603acd4a4 fw-addr-lists: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
0e993813e2 doc/mod/ssh-keys-import: create code block with indention 2025-11-19 08:26:20 +01:00
Christian Hesse
4882d87c2b check-certificates: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
cf321da423 global-functions: $ScriptInstallUpdate: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
afe8318979 global-functions: $GetMacVendor: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
5542294e1f global-functions: $DownloadPackage: define certificate use 2025-11-19 08:26:20 +01:00
Christian Hesse
be77cf1ca5 global-functions: $CertificateAvailable: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 08:26:20 +01:00
Christian Hesse
3e17387d1e INITIAL-COMMANDS: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 08:26:20 +01:00
Christian Hesse
0dc78a1a51 README: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 08:26:20 +01:00
Christian Hesse
d100cac9ed README: add a line break before command 2025-11-13 12:03:37 +01:00
Christian Hesse
c88953e44d README: fix typo
We had it there since 39d1027d697c09ec709a1b847a185ccff3b00540... 😜
2025-11-07 22:11:25 +01:00
Christian Hesse
20987221d9 mod/notification-email: ignore errors (for now...)
Errors are returned since RouterOS 7.21beta2.

We keep the current logic for now, as we want to support older
RouterOS versions. This is something to be reworked later...
2025-10-26 19:19:13 +01:00
Christian Hesse
ea4b5553c2 Merge branch 'netmask6' into next
This branch is a follow-up on 9ceed0926a
with clean solution. Read on for details...

The data type `ip6-prefix` used to hold what it was named for - an IPv6
prefix:

    [user@mikrotik] > :put 2001:db8::dead:beef/32
    2001:db8::/32

This changed with RouterOS 6.21beta2, which now allows that exact same
data type to hold something like "address with prefix length attached":

    [user@mikrotik] > :put 2001:db8::dead:beef/32
    2001:db8::dead:beef/32

My scripts (namely `fw-addr-lists`) relied on the old behaviour and broke.
The commit mentioned above was just a quick workaround, with rough edges,
and it could still fail.

Sadly RouterOS does not support bit shifting on IPv6 data types, so a
(completely) mathematical solution is out of scope.

This branch implements a new and better workaround, see the first commit
of branch (6ad6f9aa08) for details.

I opened a support ticket / feature request on this topic, let's see
what results it brings...

https://help.mikrotik.com/servicedesk/servicedesk/customer/portal/1/SUP-201881
2025-10-22 19:05:38 +02:00
Christian Hesse
b80b872e55 mod/ipcalc: support IPv6
Well, some of these values do not make a lot of sense for IPv6...
Something to be cleaned up later.
2025-10-19 19:55:12 +02:00
Christian Hesse
ea05b69f7c fw-addr-lists: use $NetMask6 2025-10-19 19:55:12 +02:00
Christian Hesse
d7a6eb1d00 global-functions: $NetMask6: implement simple caching
The calculation is quite complex for something that needs to be done
frequently, for example by `fw-addr-lists`. The number of possible
netmasks is limited, so let's cache the results that were calculated
already.
2025-10-19 19:52:42 +02:00
Christian Hesse
6ad6f9aa08 global-functions: introduce $NetMask6
RouterOS does not support bit shifting on IPv6 data types, so we have to
split the problem:

 * each 16 bit block is calculated separately, as number
 * the complete netmask is assembled in a loop, as string
 * the final string is casted to correct data type
2025-10-19 19:48:14 +02:00
Christian Hesse
c62f236251 Merge branch 'netmask4' into next 2025-10-19 19:26:51 +02:00