Compare commits

..

71 commits

Author SHA1 Message Date
Christian Hesse
32657b4bf4 dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-05-06 10:03:43 +02:00
Christian Hesse
9e5c844f45 bump required RouterOS version for all scripts 2026-05-06 10:03:43 +02:00
Christian Hesse
e7961c3a45 global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-05-06 10:03:43 +02:00
Christian Hesse
d3295ea068 Merge branch 'break-in-loop' into next 2026-05-06 10:03:43 +02:00
Christian Hesse
40ea79dd6d Merge branch 'continue-in-loop' into next 2026-05-06 10:03:43 +02:00
Christian Hesse
d9c356d08f telegram-chat: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
5d68bda509 Merge branch 'early-exit-with-exit' into next 2026-05-06 10:03:43 +02:00
Christian Hesse
a41c362c89 dhcp-to-dns: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
bcce445a90 telegram-chat: use :break in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
a9d6abe3ac global-functions: deprecate $ExitError 2026-05-06 10:03:43 +02:00
Christian Hesse
276989ef02 dhcp-to-dns: use another :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
37e4be5369 check-certificates: use :break in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
0563d01cba update-tunnelbroker: early exit with :exit 2026-05-06 10:03:43 +02:00
Christian Hesse
e5ea6691b0 dhcp-to-dns: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
c9881416cc update-gre-address: early exit with :exit 2026-05-06 10:03:43 +02:00
Christian Hesse
27791f864c telegram-chat: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
5d3be83016 telegram-chat: early exit with :exit 2026-05-06 10:03:43 +02:00
Christian Hesse
66b450896a netwatch-dns: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
df44e5a29a netwatch-dns: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
f7b1b7898e netwatch-dns: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
6f3fb0a4ab netwatch-dns: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
6f8d4f2e88 global-functions: $ScriptInstallUpdate: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
6051636b5a global-functions: $ScriptInstallUpdate: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
0ba895cda6 fw-addr-lists: fix indention 2026-05-06 10:03:43 +02:00
Christian Hesse
2d18245e36 fw-addr-lists: use :continue in loop 2026-05-06 10:03:43 +02:00
Christian Hesse
ec570ef409 Merge branch 'compare-ids' into next 2026-05-06 10:03:42 +02:00
Christian Hesse
83c142d9e3 sms-forward: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
8441c703c5 Merge branch 'drop-builtin-trust-anchors' into next 2026-05-06 10:03:42 +02:00
Christian Hesse
df4307dbf1 global-functions: deprecate $HexToNum 2026-05-06 10:03:42 +02:00
Christian Hesse
0bfa0c4ce1 sms-action: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
0aeb891d1a mod/notification-email: get property by name
This works now that we require RouterOS 7.21 anyway.
2026-05-06 10:03:42 +02:00
Christian Hesse
a33a15777a INITIAL-COMMANDS: drop the old builtin-trust-anchors 2026-05-06 10:03:42 +02:00
Christian Hesse
f9b7f06803 log-forward: fix indention 2026-05-06 10:03:42 +02:00
Christian Hesse
102f3ae4fb ppp-on-up: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
5c5540de00 mod/notification-email: use errors from command...
... instead of reading status from properties. This was introduced in
RouterOS 7.21beta2 (and we bump to 7.21 instead).
2026-05-06 10:03:42 +02:00
Christian Hesse
b8e3632271 global-functions: $CertificateDownload: drop the old builtin-trust-anchors 2026-05-06 10:03:42 +02:00
Christian Hesse
d777ce6fe2 log-forward: use comparison for ids
This was introduced with RouterOS 7.22beta1.

Initializing $LogForwardLast with boolean value looks odd, but this is
reuqired to match the very first message.
2026-05-06 10:03:42 +02:00
Christian Hesse
25146cf6c8 packages-update: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
348dabde15 netwatch-dns: check with eworm.de and eworm.net
This should prevent against DENIC outages...

https://blog.denic.de/en/denic-reports-resolved-dnssec-disruption-affecting-de-domains/
2026-05-06 10:03:42 +02:00
Christian Hesse
c68449ae35 global-functions: $CertificateAvailable: drop the old builtin-trust-anchors 2026-05-06 10:03:42 +02:00
Christian Hesse
edee6335e3 ospf-to-leds: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
8332f8c079 README: drop the old builtin-trust-anchors 2026-05-06 10:03:42 +02:00
Christian Hesse
8c18648245 netwatch-notify: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
187d7c2925 netwatch-dns: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
bcd8f53f7e log-forward: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
57af780fd7 ipv6-update: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
153965b506 ipsec-to-dns: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
47fffae16f hotspot-to-wpa-cleanup: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
f42f5a4672 hotspot-to-wpa: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
1c5c6b9a80 gps-track: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
2a42076a38 fw-addr-lists: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
21fc530b32 firmware-upgrade-reboot: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
389be93ea1 dhcpv6-client-lease: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
ad505c155e dhcpv4-server-lease: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
bad0e1f1b0 dhcp-to-dns: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
9f96dd65ce dhcp-lease-comment: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
3c6d24374d daily-psk: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
01974d5418 collect-wireless-mac: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
d382c7a0dd check-routeros-update: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
ba0d66fb16 check-perpetual-license: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
2385f6b46c check-lte-firmware-upgrade: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
dc37b28c5b check-health: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
1586c5dcff check-certificates: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
f7a14184d7 certificate-renew-issued: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
e3471aeea2 capsman-rolling-upgrade: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
2ec355e2fb capsman-download-packages: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
91266e560d backup-upload: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
51dabbe01a backup-partition: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
3e5ec64aaa backup-email: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
34d4db93d9 backup-cloud: early exit with :exit 2026-05-06 10:03:42 +02:00
Christian Hesse
f869bb659f global-functions: $IsDNSResolving: check with :retry 2026-05-06 10:02:22 +02:00

View file

@ -786,12 +786,11 @@
:retry {
:set I ($I ^ 1);
:resolve ("low-ttl.eworm." . ({ "de"; "net" }->$I));
:return true;
} delay=50ms max=6;
} on-error={
:return false;
}
} on-error={ }
:return true;
:return false;
}
# check if system is is fully connected (default route reachable, DNS resolving, time sync)