Commit graph

1829 commits

Author SHA1 Message Date
Christian Hesse
f1c634b984 README: add badge to link Telegram group 2023-04-16 22:07:54 +02:00
Christian Hesse
03bf3d67a0 Merge branch 'check-certificates' into next 2023-04-07 23:43:45 +02:00
Christian Hesse
f14788a104 check-certificates: properly escape the name for regex 2023-04-07 23:36:09 +02:00
Christian Hesse
9617095022 check-certificates: try all SANs for download 2023-04-07 23:36:09 +02:00
Christian Hesse
922dde3ff0 check-certificates: make the function return a status 2023-04-07 23:01:32 +02:00
Christian Hesse
46110661e0 check-certificates: do not rename certificates without common-name 2023-04-07 23:01:20 +02:00
Christian Hesse
11093045f3 check-certificates: download and import in a local function 2023-04-07 22:53:33 +02:00
Christian Hesse
4073daa139 check-certificates: include SANs in information 2023-04-07 22:53:33 +02:00
Christian Hesse
f585b6ee32 README: add badge to hint required RouterOS version 2023-04-06 20:33:01 +02:00
Christian Hesse
706e4de6d1 check-certificates: show CommonName only if available 2023-04-06 20:33:01 +02:00
Christian Hesse
a263fcdec2 check-certificates: format information in a local function 2023-04-06 20:33:01 +02:00
Christian Hesse
a1f6bd532b mod/scriptrunonce: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
61e0e052a6 mod/notification-telegram: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
b7cb722b5c mod/notification-matrix: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
9136bf28bd mod/notification-email: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
8edf694b54 mod/ipcalc: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
b6f9094c3d mod/inspectvar: link documentation 2023-04-04 19:24:32 +02:00
Christian Hesse
68364d4a50 doc/check-health: use an unusual interval 2023-03-31 17:45:55 +02:00
Christian Hesse
415c4144f2 global-functions: $VersionToNum: support "alpha" in version string 2023-03-30 20:58:19 +02:00
Christian Hesse
5f374c469a global-functions: $RequiredRouterOS: accept "alpha" in version string 2023-03-30 20:50:55 +02:00
Christian Hesse
779b3b8872 dhcp-to-dns: use better condition
The condition worked, but could match others (AAAA, NXDOMAIN, ...) as
well (though these should not exist).

The problem is that matching with `type=A` does not return any results.
For historical reasons A records have no type, thus can be matched with
`!type`. I opened an issue to fix this... (SUP-111312)

So let's assum `!type` works and `type=A` could become valid...
2023-03-29 15:49:41 +02:00
Christian Hesse
3d0107ed2c contrib/notification.html: add and load the script 2023-03-29 15:35:07 +02:00
Christian Hesse
9d823448f6 contrib/notification.html: fix warnings and errors
Checked with W3C validator: https://validator.w3.org/
2023-03-29 15:30:21 +02:00
Christian Hesse
814fb7197f Merge branch 'mkdir' into next 2023-03-29 12:13:59 +02:00
Christian Hesse
f2e8115272 global-functions: $MkDir: make directory by adding file
This is new functionality in RouterOS 7.9beta4, where new file can be
added with `/file/add ...`. This also creates directories for the full
path.
2023-03-28 15:43:49 +02:00
Christian Hesse
7fdec1abed global-functions: $MkDir: add extra block for indention...
... to make the next commit cleaner. No functional change.
2023-03-28 15:43:35 +02:00
Christian Hesse
d700dbc00e dhcp-to-dns: support host name from dhcp lease comment
The lease comment is supposed to be a human readable string... But we
could allow parsable information.
2023-03-28 12:05:47 +02:00
Christian Hesse
d3ca506394 global-functions: $MkDir: create tmpfs in local function 2023-03-28 12:05:47 +02:00
Christian Hesse
7293306f76 global-functions: $MkDir: return false on error 2023-03-28 12:05:47 +02:00
Christian Hesse
847f0a4564 global-functions: $MkDir: drop unused function 2023-03-28 12:05:47 +02:00
Christian Hesse
40f0d54ea8 dhcp-to-dns: add cname if host name appears for existing record 2023-03-28 11:42:58 +02:00
Christian Hesse
b22a84ed0f doc/dhcp-to-dns: mention A record and optional CNAME record 2023-03-28 11:42:58 +02:00
Christian Hesse
742c239629 sms-forward: check that the interface is running 2023-03-28 11:42:58 +02:00
Christian Hesse
4f722bc2c9 sms-forward: disable workaround for ROS 7.9beta4
The issue has been acknowledged by Mikrotik, but the cause is still
unknown as the sms code did not change since RouterOS 7.6...

Well, looks like the behavior changes again with RouterOS 7.9beta4, and
everything works as expected again. So disable the workaround there.
2023-03-24 20:11:29 +01:00
Christian Hesse
eab87e4d60 sms-forward: add workaround to fix removal of messages
Removal of messages is broken in RouterOS 7.8:

[admin@MikroTik] > /tool/sms/inbox/remove [ find ]
failure: Interface not running!

Of course the interface is running. Toggling the auto-erase setting
fixes this until next boot. So let's add a workaround...

Reported to support (SUP-110828), but not (yet) acknowledged. 🤨
2023-03-23 13:59:55 +01:00
Christian Hesse
0d4ab1fb3e Merge branch 'dhcp-to-dns' into next 2023-03-22 21:53:32 +01:00
Christian Hesse
295ccb570d dhcp-to-dns: update cname record on changed host name 2023-03-22 21:53:32 +01:00
Christian Hesse
b13a53531b dhcp-to-dns: just update the address
The other values *should* be unchanged...
2023-03-22 21:53:32 +01:00
Christian Hesse
c5c235246b dhcp-to-dns: add debug message on duplicate leases 2023-03-22 21:53:32 +01:00
Christian Hesse
8c728bb6ab dhcp-to-dns: do not update records based on host name 2023-03-22 21:53:32 +01:00
Christian Hesse
aac8709881 dhcp-to-dns: always create A record with mac address...
... and an optional CNAME with host name.
2023-03-22 21:53:32 +01:00
Christian Hesse
4a0f395fe1 dhcp-to-dns: split fqdn to host name and domain 2023-03-22 10:42:41 +01:00
Christian Hesse
3396aefac9 lease-script: add script name in order
This makes sure scripts with the same order can not conflict.
2023-03-22 10:13:24 +01:00
Christian Hesse
682a09c94b dhcp-to-dns: match comment on beginning of line 2023-03-22 10:13:24 +01:00
Christian Hesse
3d589def7d dhcp-to-dns: allow the matching separator string in name 2023-03-22 10:13:24 +01:00
Christian Hesse
58a42f4ece ipsec-to-dns: match comment on beginning of line 2023-03-22 09:00:28 +01:00
Christian Hesse
6e8c98e43d ipsec-to-dns: allow the matching separator string in name 2023-03-22 08:58:51 +01:00
Christian Hesse
524c1fc032 README: badge in style flat and with color 2023-03-20 17:36:31 +01:00
Christian Hesse
b66364d716 doc/netwatch-notify: prevent escaping code in hook by creating a script 2023-03-20 13:32:39 +01:00
Christian Hesse
f7962f5d79 doc/netwatch-notify: move hint on notification settings up 2023-03-20 12:35:34 +01:00