Christian Hesse
623f96d94a
update copyright for 2026
2026-01-01 13:50:07 +01:00
Christian Hesse
aa0b5a9ca2
README: add a brief description
2025-12-29 19:21:29 +01:00
Christian Hesse
ee9618014c
introduce contrib/telegram...
...
... with all the content for Miss Rose.
https://t.me/MissRose_bot
2025-12-25 23:56:00 +01:00
Christian Hesse
0745f09a8a
global-functions: $FetchHuge: handle missing file
...
This should not happen, as download was supposed to be
successful - it does. 🤪
2025-12-25 23:56:00 +01:00
Christian Hesse
222404535b
netwatch-dns: drop declaration of unused function
2025-12-10 16:29:20 +01:00
Christian Hesse
c697c321e6
netwatch-dns: drop early check...
...
... as the later check should handle that just fine.
2025-12-09 21:48:16 +01:00
Christian Hesse
96896c37e5
netwatch-dns: update wording to reflect the extra check
2025-12-08 09:36:03 +01:00
Christian Hesse
6e37bab481
netwatch-dns: add active check to keep DoH server
2025-12-08 09:33:07 +01:00
Christian Hesse
28b00e23a1
check-routeros-update: $DoUpdate: drop message...
...
... as it's either not shown anyway (when rebooting already),
`packages-update` gives reasonable output, or it is simply wrong (when
`packages-update` failed).
2025-12-05 12:02:29 +01:00
Christian Hesse
830693df79
global-functions: $SymbolByUnicodeName: extend special
2025-12-03 17:53:31 +01:00
Christian Hesse
240decf419
check-perpetual-license: cross-mark on already expired license
2025-12-03 15:43:58 +01:00
Christian Hesse
c0678f0501
INITIAL-COMMANDS: add missing space
2025-12-01 11:25:28 +01:00
Christian Hesse
73350ff3f4
README: add missing space
2025-12-01 11:25:00 +01:00
Christian Hesse
7caaa62321
check-perpetual-license: add scroll symbol in notification
...
doc/check-perpetual-license.d/notification-01-warn.avif
----- >8 -----
[rsc] 📜 ⚠️ License about to expire!
Your license failed to renew and is about to expire on 2025-09-13 12:12:23 on rsc...
----- >8 -----
doc/check-perpetual-license.d/notification-02-renew.avif
----- >8 -----
[rsc] 📜 ✅ ️ License renewed
Your license was successfully renewed on rsc. It is now valid until 2025-10-25 08:42:46.
----- >8 -----
2025-11-27 11:26:04 +01:00
Christian Hesse
1f11f72d18
global-functions: $SymbolByUnicodeName: add special with magic
2025-11-27 08:49:56 +01:00
Christian Hesse
daeb173dbc
doc/check-routeros-update: add screenshot from terminal
2025-11-25 18:44:52 +01:00
Christian Hesse
4acbd6449e
Merge branch 'notifications' into next
2025-11-25 17:37:00 +01:00
Christian Hesse
9db7f4494c
doc/sms-forward: update notifications
...
doc/sms-forward.d/notification.avif
----- >8 -----
[rsc] 📨 ️ SMS Forwarding from 7277
Received this message by rsc from 7277:
📨 ️ On 2025-08-20 01:01:15+02:00 type class-0:
Welcome to our network!
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
2d0c79160d
doc/netwatch-notify: update notifications
...
doc/netwatch-notify.d/notification-01-down.avif
----- >8 -----
[rsc] ❌ ️ Netwatch Notify: ipv6.eworm.de down
The host 'ipv6.eworm.de' (2a01:4f8:222:1e83::80, ipv6.eworm.de) is down since 2025-11-18 11:33:18.
----- >8 -----
doc/netwatch-notify.d/notification-02-up.avif
----- >8 -----
[rsc] ✅ ️ Netwatch Notify: ipv6.eworm.de up
The host 'ipv6.eworm.de' (2a01:4f8:222:1e83::80, ipv6.eworm.de) is up since 2025-11-18 11:43:15.
It was down for 10 checks since 2025-11-18 11:33:18.
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
b6e72f9a9f
doc/log-forward: update notifications
...
doc/log-forward.d/notification-01-info.avif
----- >8 -----
[rsc] 📝 ️ Log Forwarding
The log on rsc contains these 2 messages after 00:01:19 uptime.
ℹ️ 2025-11-20 16:40:25 system;info router rebooted by ssh:eworm@10.10.0.37
ℹ️ 2025-11-20 16:40:27 script;info global-functions: Loaded on hAP ax^2 with RouterOS 7.20.4 (stable).
----- >8 -----
doc/log-forward.d/notification-02-warn.avif
----- >8 -----
[rsc] 📝 ️⚠️ Log Forwarding
The log on rsc contains these 3 messages after 01:23:19 uptime.
🟠 ️ 2025-11-20 17:35:48 dhcp;warning dhcp offering lease 192.168.2.254 for 02:00:BA:DC:AB:1E without success
🔴 ️ 2025-11-20 17:35:57 dhcp;error pool6 refused acquire: bad preferred prefix! (1)
ℹ️ 2025-11-20 17:36:25 system;info;account user eworm logged in from 10.10.0.37 via ssh
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
1b53b52ac6
doc/daily-psk: update notifications
...
doc/daily-psk.d/notification.avif
----- >8 -----
[rsc] 📅 ️ daily PSK Guest-Wifi
This is the daily PSK on rsc:
SSID: Guest-Wifi
PSK: 53cr3t5tr1ng
Date: 2025-11-24
A client device specific rule must not exist!
🔗 ️ https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi?scale=8&ssid=Guest-Wifi&pass=53cr3t5tr1ng
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
f77cc07338
doc/collect-wireless-mac: update notifications
...
doc/collect-wireless-mac.d/notification.avif
----- >8 -----
[rsc] 📱 ️ 02:00:C0:FF:EE:00 connected to Guest-Wifi
A device with unknown MAC address connected to Guest-Wifi on rsc.
Controller: rsc
Interface: wifi1-guest
SSID: Guest-Wifi
MAC: 02:00:C0:FF:EE:00
Vendor: locally administered
Hostname: Wifi-Client
Address: 192.168.1.244
DNS name: 02-00-C0-FF-EE-00.dhcp-guest.rsc.eworm.de
Wifi-Client.dhcp-guest.rsc.eworm.de
Date: 2025-11-23 15:30:27
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
094215aec7
doc/check-routeros-update: update notifications
...
doc/check-routeros-update.d/notification-01-found.avif
----- >8 -----
[rsc] ✨ ️ RouterOS update: 7.20.4
A new RouterOS version 7.20.4 is available for rsc.
Hostname: rsc
Hardware:
Board: hAP ax^2
Arch: arm64
Model: C52iG-5HaxD2HaxD
Serial: HEG08Q4FT32
License: level 4
RouterOS:
Channel: stable
Installed: 7.20.2
Available: 7.20.4
RouterOS-Scripts:
Commit: main/3287/699be25b
Version: 138
🔗 ️ https://mikrotik.com/download/changelogs/stable-release-tree
----- >8 -----
doc/check-routeros-update.d/notification-02-neighbor.avif
----- >8 -----
[rsc] ✨ ️ RouterOS update: 7.20.4
Seen a neighbor (MikroTik) running version 7.20.4 from stable, updating on rsc...
🔗 ️ https://mikrotik.com/download/changelogs/stable-release-tree
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
d60ee59e77
doc/check-perpetual-license: update notifications
...
doc/check-perpetual-license.d/notification-01-warn.avif
----- >8 -----
[rsc] ⚠️ License about to expire!
Your license failed to renew and is about to expire on 2025-09-13 12:12:23 on rsc...
----- >8 -----
doc/check-perpetual-license.d/notification-02-renew.avif
----- >8 -----
[rsc] ✅ ️ License renewed
Your license was successfully renewed on rsc. It is now valid until 2025-10-25 08:42:46.
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
3926d12070
doc/check-lte-firmware-upgrade: update notifications
...
doc/check-lte-firmware-upgrade.d/notification.avif
----- >8 -----
[rsc] ✨ ️ LTE firmware upgrade
A new firmware version 16121.1034.00.01.01.10 is available for LTE interface lte on rsc.
Model: FG621-EA
Revision: 16121.1034.00.01.01.09
Firmware version:
Installed: 16121.1034.00.01.01.09
Available: 16121.1034.00.01.01.10
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
5dbd419d1a
doc/check-health: update notifications
...
doc/check-health.d/notification-01-cpu-utilization-high.avif
----- >8 -----
[rsc] 🧮 ️📈 ️ Health warning: CPU utilization
The average CPU utilization on rsc is at 79%!
----- >8 -----
doc/check-health.d/notification-02-cpu-utilization-ok.avif
----- >8 -----
[rsc] 🧮 ️📉 ️ Health recovery: CPU utilization
The average CPU utilization on rsc decreased to 64%.
----- >8 -----
doc/check-health.d/notification-03-ram-utilization-high.avif
----- >8 -----
[rsc] 🗃️ 📈 ️ Health warning: RAM utilization
The RAM utilization on rsc is at 88%!
total: 64.0MiB
used: 56.7MiB
free: 7.25MiB
----- >8 -----
doc/check-health.d/notification-04-ram-utilization-ok.avif
----- >8 -----
[rsc] 🗃️ 📉 ️ Health recovery: RAM utilization
The RAM utilization on rsc decreased to 75%.
----- >8 -----
doc/check-health.d/notification-05-voltage.avif
----- >8 -----
[rsc] ⚡ ️📉 ️ Health warning: voltage
The voltage on rsc jumped more than 10%.
old value: 23.8V
new value: 16.2V
----- >8 -----
doc/check-health.d/notification-06-temperature-high.avif
----- >8 -----
[rsc] 🔥 ️ Health warning: cpu-temperature
The cpu-temperature on rsc is above threshold: 74°C
----- >8 -----
doc/check-health.d/notification-07-temperature-ok.avif
----- >8 -----
[rsc] ✅ ️ Health recovery: cpu-temperature
The cpu-temperature on rsc dropped below threshold: 64°C
----- >8 -----
doc/check-health.d/notification-08-state-fail.avif
----- >8 -----
[rsc] ❌ ️ Health warning: psu2-state
The device 'psu2-state' on rsc failed!
----- >8 -----
doc/check-health.d/notification-09-state-ok.avif
----- >8 -----
[rsc] ✅ ️ Health recovery: psu2-state
The device 'psu2-state' on rsc recovered!
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
ac6aefd34c
doc/check-certificates: update notifications
...
doc/check-certificates.d/notification-01-warn.avif
----- >8 -----
[rsc] 🔏 ️⚠️ Certificate warning: rsc.eworm.de
A certificate on rsc is about to expire.
Name: rsc.eworm.de
CommonName: rsc.eworm.de
SubjectAltNames:
DNS:rsc.eworm.de
Private key: available
Fingerprint: f21bd7e64eef82b963938fecd07ab0210194129d7829ba08c2d212d063f3b07c
Issuer chain: E7 -> ISRG Root X2
Validity:
from: 2025-09-09 13:30:10
to: 2025-12-07 13:30:09
Expires in: 1w 3d 11:37:06
----- >8 -----
doc/check-certificates.d/notification-02-renew.avif
----- >8 -----
[rsc] 🔏 ️ Certificate renewed: rsc.eworm.de
A certificate on rsc has been renewed.
Name: rsc.eworm.de
CommonName: rsc.eworm.de
SubjectAltNames:
DNS:rsc.eworm.de
Private key: available
Fingerprint: f21bd7e64eef82b963938fecd07ab0210194129d7829ba08c2d212d063f3b07c
Issuer chain: E7 -> ISRG Root X2
Validity:
from: 2025-11-07 13:30:09
to: 2026-02-05 13:30:08
Expires in: 11w 3d 02:25:23
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
518a4c329f
doc/backup-upload: update notifications
...
doc/backup-upload.d/notification.avif
----- >8 -----
[rsc] 💾 ️⬆️ Backup & Config upload
Backup and config export upload for rsc.
Hostname: rsc
Hardware:
Board: hAP ax^2
Arch: arm64
Model: C52iG-5HaxD2HaxD
Serial: HEG08Q4FT32
License: level 4
RouterOS:
Channel: stable
Installed: 7.20.4
RouterOS-Scripts:
Commit: main/3287/699be25b
Version: 138
Backup file:
name: rsc-eworm-de.backup
size: 372kiB
Export file:
name: rsc-eworm-de.rsc
size: 377kiB
Config file:
name: rsc-eworm-de.conf
size: 3.26kiB
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
9ef3ba5479
doc/backup-cloud: update notifications
...
doc/backup-cloud.d/notification.avif
----- >8 -----
[rsc] 💾 ️☁️ Cloud backup
Uploaded backup for rsc to cloud.
Hostname: rsc
Hardware:
Board: hAP ax^2
Arch: arm64
Model: C52iG-5HaxD2HaxD
Serial: HEG08Q4FT32
License: level 4
RouterOS:
Channel: stable
Installed: 7.20.4
RouterOS-Scripts:
Commit: main/3287/699be25b
Version: 138
Name: cloud-20251124-092255
Size: 180kiB
Download key: lteX51vlEnrV4OSXfUngu8d
----- >8 -----
2025-11-25 17:37:00 +01:00
Christian Hesse
84c49c0f7e
README: update notifications
...
README.d/notification-news-and-changes.avif
----- >8 -----
[rsc] 📌 ️ News and configuration changes
The configuration version on thyone increased to 138, current configuration may need modification. Please review and update global-config-overlay, then re-run global-config.
Changes:
📌 ️ Added support to send notifications via Gotify (gotify.net).
📌 ️ RouterOS 7.19 is suffering an issue with certificate store. Fixing trust state for all certificates...
----- >8 -----
2025-11-25 17:28:26 +01:00
Christian Hesse
bc174d7f1f
general/style: add a margin to notification when floating
2025-11-25 17:23:01 +01:00
Christian Hesse
678fc3307e
general/style: clear floating on hr
2025-11-25 17:23:01 +01:00
Christian Hesse
1ac0147fce
sms-forward: mark every message with an envelope
2025-11-25 17:23:01 +01:00
Christian Hesse
1f6c43d5ce
check-certificates: show lock-with-ink-pen symbol in notification...
...
... also for warning, but of course keep the warning sign.
2025-11-25 17:23:01 +01:00
Christian Hesse
544e8094de
contrib/notification: increase font size for heading
2025-11-25 17:23:01 +01:00
Christian Hesse
d4979146f9
contrib/notification: disable the border-radius for logo
2025-11-25 17:23:01 +01:00
Christian Hesse
ca487376d6
contrib/notification: use rsc.eworm.de for default link
2025-11-25 17:23:01 +01:00
Christian Hesse
ea9e843ae9
contrib/html: add a class for code...
...
... and make sure the notification generator does not suffer
strange styles.
2025-11-25 17:23:01 +01:00
Christian Hesse
94514a7c75
doc/check-routeros-update: update the forum link
2025-11-25 17:23:01 +01:00
Christian Hesse
699be25b64
general/clipboard: use textContent...
...
... and avoid having html entity encoded characters in clipboard.
2025-11-20 20:44:56 +01:00
Christian Hesse
79c98a4b3a
Merge branch 'screenshots' into next
2025-11-20 15:36:23 +01:00
Christian Hesse
e49f68c1f2
doc/mod/notification-matrix: update screenshots, with terminal window
2025-11-20 15:33:53 +01:00
Christian Hesse
2f4e83990a
doc/mod/scriptrunonce: update screenshot, with terminal window
2025-11-20 15:33:53 +01:00
Christian Hesse
77dc0565a9
doc/mod/inspectvar: update screenshot, with terminal window
2025-11-20 15:32:56 +01:00
Christian Hesse
564c7f6bbc
doc/mod/ipcalc: update screenshots, with terminal window
2025-11-20 15:31:40 +01:00
Christian Hesse
6718b90780
doc/mod/notification-telegram: update screenshot, with terminal window
2025-11-20 15:31:40 +01:00
Christian Hesse
e6faf346c2
doc/accesslist-duplicates: update screenshot, with terminal window
2025-11-20 14:58:39 +01:00
Christian Hesse
295fa3144a
README: update screenshots, with terminal window
...
Started xterm with:
xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'Terminal: rsc.eworm.de'
2025-11-20 14:07:21 +01:00
Christian Hesse
b65f3512d0
README: add scheduler with start-time=startup
2025-11-20 14:03:00 +01:00
Christian Hesse
8a904dadf4
contrib/notification: add the copyright notice in footer
2025-11-20 11:53:55 +01:00
Christian Hesse
fa64e8906b
contrib/logo-color: add the copyright notice in footer
2025-11-20 11:53:27 +01:00
Christian Hesse
2feaaf36b2
README: highlight the long way for first time users with hint
2025-11-20 11:26:59 +01:00
Christian Hesse
30743c0e87
README: mention broken installation for initial commands
2025-11-20 11:26:59 +01:00
Christian Hesse
725eb834f4
README: link the long way in detail
2025-11-20 11:26:59 +01:00
Christian Hesse
b97a434a9c
Makefile: also clean contrib
2025-11-20 11:26:59 +01:00
Christian Hesse
70675a9fee
contrib/Makefile: add target clean
2025-11-20 11:26:59 +01:00
Christian Hesse
e0b12a9050
contrib/static-html: add badges
2025-11-20 11:26:59 +01:00
Christian Hesse
a64e9bed80
contrib/static-html: find static html files by comment
2025-11-20 11:26:59 +01:00
Christian Hesse
e10455fb18
contrib/static-html: split off from Makefile
2025-11-20 11:26:59 +01:00
Christian Hesse
ed9dee3c5f
contrib/html: simplify handling of relative paths
2025-11-20 11:26:59 +01:00
Christian Hesse
4f778cb1c6
general/clipboard: add a visual feedback
2025-11-20 11:26:59 +01:00
Christian Hesse
a61fbfb75c
general/style: add a " 📋 Copy!" hint to code blocks
2025-11-20 11:26:59 +01:00
Christian Hesse
903a3f44a0
contrib/html: support click on code block to copy to clipboard
2025-11-20 11:26:59 +01:00
Christian Hesse
638258000b
contrib/commitinfo: support updating the commit info
2025-11-20 11:26:59 +01:00
Christian Hesse
b285f2c5d2
global-functions: add and fix global scheduler automatically...
...
... and also adjust README and INITIAL-COMMANDS.
2025-11-20 11:26:59 +01:00
Christian Hesse
93eb218589
global-functions: $FetchUserAgentStr: add commit info in user agent string
2025-11-20 11:26:59 +01:00
Christian Hesse
45e2f7b0a8
Merge branch 'rsc-eworm-de' into next
2025-11-20 11:26:59 +01:00
Christian Hesse
b29f3535b6
Merge branch 'contrib-template' into next
2025-11-20 11:26:59 +01:00
Christian Hesse
fa9c4be576
doc/mod/scriptrunonce: get script from rsc.eworm.de
2025-11-20 11:26:59 +01:00
Christian Hesse
ce37544bae
contrib/logo-color: drop width & height properties for images
2025-11-20 11:26:59 +01:00
Christian Hesse
aeca778284
contrib/template-wifi: split off from Makefile
2025-11-20 11:26:59 +01:00
Christian Hesse
af5f01a973
INITIAL-COMMANDS: install from rsc.eworm.de
2025-11-20 11:26:59 +01:00
Christian Hesse
0b7528db99
contrib/logo-color: place screenshots below each other...
...
... not side by side.
2025-11-20 11:26:59 +01:00
Christian Hesse
54612e333f
contrib/template-local: split off from Makefile
2025-11-20 11:26:59 +01:00
Christian Hesse
05f0838119
README: install from rsc.eworm.de
2025-11-20 11:26:59 +01:00
Christian Hesse
c6451c87f1
general/style: make the blockquote darker
2025-11-20 11:26:59 +01:00
Christian Hesse
4935c81bd9
contrib/template-capsman: split off from Makefile
2025-11-20 11:26:59 +01:00
Christian Hesse
d12be8f1ac
fw-addr-lists.d/allow: use rsc.eworm.de in the list
2025-11-20 11:26:59 +01:00
Christian Hesse
c4a060c3d4
Merge branch 'contrib-html-head-foot' into next
2025-11-20 11:26:59 +01:00
Christian Hesse
f3afee3e4b
fw-addr-lists.d/{allow,block}: use short url rsc.eworm.de
2025-11-20 11:26:59 +01:00
Christian Hesse
82587ec589
contrib/html: add copyright notice in footer
2025-11-20 11:26:59 +01:00
Christian Hesse
edd51ca719
contrib/html: add a footer with date and version info
2025-11-20 11:23:45 +01:00
Christian Hesse
d1fa3facfd
Makefile: clean up and add phony targets
2025-11-20 10:57:20 +01:00
Christian Hesse
b4e6cc5b59
contrib/notification: add a head with eworm, QR code and caption
2025-11-20 10:57:20 +01:00
Christian Hesse
9287996b74
Merge branch 'contrib-html' into next
2025-11-20 10:57:20 +01:00
Christian Hesse
75692abf47
contrib/logo-color: add a head with eworm, QR code and caption
2025-11-20 10:57:20 +01:00
Christian Hesse
7b45bb5b46
contrib/Makefile: hide the hint on broken site
2025-11-20 10:57:20 +01:00
Christian Hesse
165d7c60d4
contrib/html: add a head with eworm, QR code and caption
2025-11-20 10:57:20 +01:00
Christian Hesse
b16c2f5b90
contrib/notification: hint on possibly broken site
2025-11-20 10:57:20 +01:00
Christian Hesse
cbb0aba1b1
contrib/logo-color: hint on possibly broken site
2025-11-20 10:57:20 +01:00
Christian Hesse
1ce3160933
contrib/html: hide the hint on broken link
2025-11-20 10:57:20 +01:00
Christian Hesse
607a608502
doc/mod/notification-telegram: hint on possibly broken link
2025-11-20 10:57:20 +01:00
Christian Hesse
148d40e18d
contrib: introduce Makefile...
...
... and update references in links.
2025-11-20 10:57:20 +01:00
Christian Hesse
036c6ef682
contrib/logo-color: use relative reference in link
...
... without extra path elements.
This may break, depending on site.
2025-11-20 10:57:20 +01:00
Christian Hesse
5986894749
doc/mod/notification-telegram: use relative reference in link
...
This may break, depending on site.
2025-11-20 10:57:20 +01:00
Christian Hesse
8d68f24095
contrib/notification: format the values italic
2025-11-20 10:57:20 +01:00
Christian Hesse
eb89f8359b
contrib/notification: update date format
2025-11-20 10:57:20 +01:00
Christian Hesse
8faf4ab7cf
contrib/{logo-color,notification}: add navigation structure
2025-11-20 10:57:20 +01:00
Christian Hesse
ceb6f2353e
contrib/*: unify html code
2025-11-20 10:57:20 +01:00
Christian Hesse
719b662b76
contrib/html: drop ampersand, comma, dash, exclamation mark, ...
...
... parentesis & tick mark from id/anchor
2025-11-20 10:57:20 +01:00
Christian Hesse
cbb282746f
README: add a sub-section for code hosting
2025-11-20 09:48:35 +01:00
Christian Hesse
2e0787afd1
contrib/html: properly handle anchors
2025-11-20 09:48:35 +01:00
Christian Hesse
a0399216fc
contrib/html: link the logo with relative path
2025-11-20 09:48:35 +01:00
Christian Hesse
2d6fdc355e
contrib/html: increase default line height
2025-11-20 09:48:35 +01:00
Christian Hesse
fae8dbd8ea
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-20 09:48:35 +01:00
Christian Hesse
a2d6671cf0
contrib/html: include stylesheet via link
2025-11-20 09:48:35 +01:00
Christian Hesse
d610bf3582
contrib/{logo-color,notification}: use a single style
2025-11-20 09:48:35 +01:00
Christian Hesse
97b4a41f23
contrib/html: add empty lines...
...
... for easier rebasing.
2025-11-20 09:48:35 +01:00
Christian Hesse
a2250a00e6
README: add the upstream url verbatim
2025-11-19 16:19:59 +01:00
Christian Hesse
c6cc8b9a51
README: move the QR code
2025-11-19 16:19:59 +01:00
Christian Hesse
5075701958
Merge branch 'builtin-trust-store' into next
2025-11-19 16:19:59 +01:00
Christian Hesse
8f6a38f299
mod/notification-email: remove schedule with find...
...
... as a race condition could occur and the scheduler is already gone.
2025-11-19 16:19:59 +01:00
Christian Hesse
cc5aea22b3
doc/mod/notification-matrix: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
d002d1c0c0
global-functions: $ScriptInstallUpdate: extra actions on 'not found' only
2025-11-19 16:19:59 +01:00
Christian Hesse
737a872a5f
CERTIFICATES: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
298a43a871
global-functions: $ScriptInstallUpdate: either or...
...
... but not both.
2025-11-19 16:19:59 +01:00
Christian Hesse
335bfc0a88
update-tunnelbroker: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
20885c4620
global-functions: $ScriptInstallUpdate: give hint on ignore
...
Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
2025-11-19 16:19:59 +01:00
Christian Hesse
5ccb0d07b1
telegram-chat: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
7d701483d3
contrib/checksums: output to stdout...
...
... and let the Makefile redirect.
2025-11-19 16:19:59 +01:00
Christian Hesse
7772fbb22d
netwatch-dns: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
83b164d511
global-functions: $CertificateDownload: drop unused function
2025-11-19 16:19:59 +01:00
Christian Hesse
f0910a4472
mod/notification-telegram: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
090f25a82d
check-certificates: add missing semicolon
2025-11-19 16:19:59 +01:00
Christian Hesse
8ff34a2408
mod/notification-ntfy: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
affb9b3baf
doc/mode-button: create code block with indention
2025-11-19 16:19:59 +01:00
Christian Hesse
87787eefe3
fw-addr-lists: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
677b5b8069
doc/mod/ssh-keys-import: create code block with indention
2025-11-19 16:19:59 +01:00
Christian Hesse
876505c36d
check-certificates: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
b5a0269667
global-functions: $ScriptInstallUpdate: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
f3e6e152bc
global-functions: $GetMacVendor: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
8eb397f79f
global-functions: $DownloadPackage: define certificate use
2025-11-19 16:19:59 +01:00
Christian Hesse
db0a5bf33c
global-functions: $CertificateAvailable: support new builtin-trust-store...
...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 16:19:59 +01:00
Christian Hesse
fbfeea3042
INITIAL-COMMANDS: support new builtin-trust-store...
...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 16:19:59 +01:00
Christian Hesse
1a1399d302
README: support new builtin-trust-store...
...
... which was introduced with RouterOS 7.21beta7.
2025-11-19 16:19:59 +01:00
Christian Hesse
335266f247
README: update the screenshot for script update...
...
... to match commit 2c92c78b46 .
2025-11-19 16:19:47 +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
Christian Hesse
47309e5c03
fw-addr-lists: normalize IPv4 addresses
2025-10-16 15:43:43 +02:00
Christian Hesse
9fa11cb79a
mod/ipcalc: use $NetMask4
2025-10-16 13:03:54 +02:00
Christian Hesse
def540c965
global-functions: introduce $NetMask4
2025-10-16 10:47:19 +02:00
Christian Hesse
025b492783
global-functions: remove trailing space
2025-10-16 10:34:09 +02:00
Christian Hesse
6630d35eea
mod/notification-telegram: $FlushTelegramQueue: check for cert, again
...
Chances are that messages have been queued before system was fully up or
connected. Thus the certificate may be missing, and it should be checked
again for on flush.
2025-10-13 12:06:01 +02:00
Christian Hesse
c81618b571
log-forward: always use memo symbol...
...
... and add warning sign on top.
2025-10-09 09:22:39 +02:00
Christian Hesse
35b556f0b2
fw-addr-lists: calculate branch after post-processing...
...
... as branch will likely change, and we want to avoid duplicates. 😉
2025-10-08 18:43:06 +02:00
Christian Hesse
9ceed0926a
fw-addr-lists: do not use IPv6 net addresses smaller /64
...
This should reduce the number of addresses in list by aggregating them,
and also fix addresses with host part set (like 2001:470:1:fb5::2a0/64,
which should be 2001:470:1:fb5::/64 really).
The latter caused new warnings with RouterOS 7.21beta2.
2025-10-08 18:43:06 +02:00
Christian Hesse
5ffa85f8bf
mod/ssh-keys-import: handle new parameter
...
With RouterOS 7.21beta2 the user SSH keys "key-owner" field was
renamed to "info".
Either of both is displayed in red by syntax highlighting, but it
works anyway.
2025-10-08 18:42:26 +02:00
Christian Hesse
48d0f1f0b9
fw-addr-lists: check last character of line for JSON
...
This is not a proof, but a line also ending with a curly bracket
has higher probability of being valid JSON.
Better safe than sorry... We are suffering a CVE in RouterOS:
https://www.cve.org/CVERecord?id=CVE-2025-10948
2025-10-02 11:51:08 +02:00
Christian Hesse
a931cb61a0
packages-update: fix condition when checking for scheduler
...
This broke with commit 6b0c9ab17d2e7e3693cebf281e5300d1e4de3446...
2025-09-30 10:02:20 +02:00
Christian Hesse
14b51d96b0
generate valid HTML, including head & style
2025-09-25 10:25:20 +02:00
Miquel Bonastre
2c715096b9
mod/ssh-keys-import: $SSHKeysImportFile: fix file exists condition...
...
... which broke in commit 80aed200fd .
2025-09-25 10:24:07 +02:00
Christian Hesse
2773fef9d8
global-functions: $WaitForFile: try less expensive operation
...
Checking a specific file is less expensive operation than finding one,
especially when on hardware with huge storage and lots of files (like
RDS). We have to keep the find command in the latter loop, though.
2025-09-25 10:24:07 +02:00
Christian Hesse
6b0c9ab17d
packages-update: exit early if scheduler exists
2025-09-15 13:18:30 +02:00
Christian Hesse
59dc7e6d0c
Merge branch 'check-health' into next
2025-08-26 09:25:01 +02:00
Christian Hesse
22e6383e86
check-health.d/voltage: use script name for origin in notification
2025-08-25 11:11:07 +02:00
Christian Hesse
62ca30b5d3
check-health.d/temperature: use script name for origin in notification
2025-08-25 11:11:07 +02:00
Christian Hesse
907358cb85
check-health.d/state: use script name for origin in notification
2025-08-25 11:11:07 +02:00
Christian Hesse
2fed8f967b
check-health: pass script name to plugin
2025-08-25 11:11:07 +02:00
Christian Hesse
386ea2419f
check-health: fix variable name
2025-08-25 11:04:07 +02:00
Christian Hesse
fe080c0d3d
global-functions: $CertificateAvailable: properly handle duplicate CN
...
There are CA certificates with identical CommonName out there... 🤪
Let's handle these.
[admin@MikroTik] > /certificate/print proplist=common-name,skid where common-name="GlobalSign";
Flags: T - TRUSTED
Columns: COMMON-NAME, SKID
# COMMON-NAME SKID
0 T GlobalSign 8FF04B7FA82E4524AE4D50FA639A8BDEE2DD1BBC
1 T GlobalSign 3DE629489BEA07CA21444A26DE6EDED283D09F59
2 T GlobalSign AE6C05A39313E2A2E7E2D71CD6C7F07FC86753A0
3 T GlobalSign 54B07BAD45B8E2407FFB0A6EFBBE33C93CA384D5
2025-08-16 23:14:31 +02:00
Christian Hesse
a856d309df
global-functions: $SymbolByUnicodeName: allow to add more symbols...
...
... for example from a module. Add a script `mod/symbols-extra` with
something like:
:global SymbolsExtra;
:set ($SymbolsExtra->"rocket") "\F0\9F\9A\80";
2025-07-28 16:47:27 +02:00
Christian Hesse
721e786f68
netwatch-notify: increase the address-list timeout even further
2025-07-21 10:52:22 +02:00
Christian Hesse
4c2c7e817a
netwatch-notify: give the number of failures...
...
... to indicated this happened several times.
2025-07-21 10:47:19 +02:00
Christian Hesse
89175e511f
accesslist-duplicates: print without paging
2025-07-07 18:38:21 +02:00
Christian Hesse
b068f86995
netwatch-dns: fix indention
2025-06-25 10:47:12 +02:00
Christian Hesse
d46574b4fe
netwatch-dns: retry doh server...
...
... for more resilience on bad connectivity or saturated link.
2025-06-25 10:30:26 +02:00
Christian Hesse
c3010af4ed
Merge branch 'file' into next
2025-06-23 08:52:58 +02:00
Christian Hesse
1307b8587e
global-functions: $FileGet: mitigate race with file properties
...
RouterOS is suffering a race condition, where a file exists, but its
properties are not (yet) available. This is handled in $WaitForFile.
This passes an interval of zero to $WaitForFile, as does not wait for
the file to exist, but wants to avoid the race only.
2025-06-23 08:52:58 +02:00
Christian Hesse
6415849850
global-functions: $WaitForFile: (mostly) revert changes
...
This (mostly) reverts commits 0e00a228d6
and e08bb2192d .
This is required for RouterOS 7.20beta4. That fixed recursive find for
files, and (again, or still?) suffers timing (and thus racing) issues
getting file properties.
This breaks RouterOS 7.20beta2 again, so that specific version is not
supported. Just update...
2025-06-23 08:52:51 +02:00
Christian Hesse
95f8af6234
packages-update: convert to time before comparing...
...
... to avoid:
packages-update: Script 'packages-update' exited with error: Script Error: cannot compare if truth value is more than or equal to ip address
2025-06-20 23:52:07 +02:00
Christian Hesse
de2a90d841
doc/fw-addr-lists: add a warning on possible subsystem crash
2025-06-11 17:47:40 +02:00
Christian Hesse
e2d3f0f073
fw-addr-lists: delay on possible scripting subsystem crash
...
This happens in :convert when a list is way too large.
Let's use $LogPrintOnce here. If the scripting subsystem really crashes
the message will be purged from $LogPrintOnceMessages anyway (as all
global variables are lost).
2025-06-11 17:46:09 +02:00
Christian Hesse
595b4aea9d
capsman-download-packages: revert changes for "new functionality"
...
(Though we keep the quoting for type.)
Well, turned out this functionality is for `/file/print` only,
but does not work with `/file/find`. 🫣 🥴
This reverts commit 15fd522d3d .
2025-06-11 17:46:09 +02:00
Christian Hesse
0de6d006ae
update list of contributors
2025-06-04 22:30:51 +02:00
Christian Hesse
1f4bf9ee63
check-routeros-update: remove a stale scheduler
2025-06-04 22:30:51 +02:00
Christian Hesse
c3d3d61f92
packages-update: support deferred reboot with longer interval
2025-06-04 22:30:51 +02:00
Christian Hesse
6130c94cc1
Merge branch 'file' into next
2025-06-04 22:30:51 +02:00
Christian Hesse
15fd522d3d
capsman-download-packages: adopt new functionality from file menu
2025-06-04 22:30:51 +02:00
Christian Hesse
5b15c82bb1
capsman-download-packages: use $FileGet ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:48 +02:00
Christian Hesse
30b80e903d
telegram-chat: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:45 +02:00
Christian Hesse
80aed200fd
mod/ssh-keys-import: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:42 +02:00
Christian Hesse
2d81984aed
mod/notification-email: use $RmFile
2025-06-04 22:30:42 +02:00
Christian Hesse
e3284ca770
mod/notification-email: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:39 +02:00
Christian Hesse
daee05dbd7
backup-email: add a comment why files are not removed
2025-06-04 22:30:39 +02:00
Christian Hesse
43bac7c33c
backup-email: check for .conf file
2025-06-04 22:30:39 +02:00
Christian Hesse
a2f837be59
backup-email: use :retry and $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:36 +02:00
Christian Hesse
8353a8547f
global-functions: $DownloadPackage: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:33 +02:00
Christian Hesse
cb984a5e52
global-functions: introduce $FileExists
2025-06-04 22:28:25 +02:00
Christian Hesse
0e00a228d6
global-functions: $WaitForFile: use :retry for simplification, ...
...
... and to work around restrictions in new file handling.
2025-06-04 22:28:20 +02:00
Christian Hesse
e08bb2192d
global-functions: $WaitForFile: drop the workaround
...
This was fixed in RouterOS 7.18rc1, so should be ok to remove now.
2025-06-04 22:28:20 +02:00
Christian Hesse
fb8e616846
global-functions: $RmFile: use $FileGet ...
...
... to work around restrictions in new file handling.
2025-06-04 22:28:17 +02:00
Christian Hesse
d993495e44
global-functions: $RmDir: use $FileGet ...
...
... to work around restrictions in new file handling.
2025-06-04 22:28:14 +02:00
Christian Hesse
1e4f168735
global-functions: $MkDir: use $FileGet ...
...
... to work around restrictions in new file handling.
2025-06-04 22:28:11 +02:00
Christian Hesse
b70e6e7984
global-functions: introduce $FileGet
2025-06-03 12:29:42 +02:00
Christian Hesse
4bc3bf40e6
Merge branch 'builtin-certs' into next
2025-06-03 11:06:59 +02:00
Christian Hesse
d69b399572
INITIAL-COMMANDS: use builtin certificates if possible
2025-06-03 11:06:59 +02:00
Christian Hesse
bf684a7197
global-functions: $CertificateAvailable: try to use builtin certificates
...
The builtin certificates were introduced with RouterOS 7.19, so requires
this hacky :parse workaround.
2025-05-28 15:08:26 +02:00
Christian Hesse
d59c4aee26
README: add a paragraph and link to jump
2025-05-28 14:16:57 +02:00
Christian Hesse
3d3b270748
README: give a hint on builtin certificate store
...
I guess this should become the default any time in future...
2025-05-28 14:07:57 +02:00
Christian Hesse
6a49c483b6
telegram-chat: rename variable...
...
... to better describe the use.
2025-05-23 17:38:22 +02:00
Christian Hesse
c50acd697a
telegram-chat: fix detection of replies
2025-05-23 17:36:56 +02:00
Christian Hesse
4bd7d44cd2
global-functions: $ScriptInstallUpdate: fix syntax error
2025-05-23 11:16:40 +02:00
Christian Hesse
86ad41f6b6
fix the trust state for certificates
...
RouterOS 7.19 is suffering an issue with certificate store, where the
trust state is not available correctly. This effects certificates
imported a long time ago, with RouterOS 7.4 or older.
Fixing trust state for all certificates by re-setting the trust state...
(Reported as SUP-188791...)
2025-05-23 10:51:04 +02:00
Christian Hesse
64fe923c5a
DEBUG: fix typo
2025-05-22 10:13:52 +02:00
Christian Hesse
f1396b83aa
telegram-chat: support debug output for updates in JSON
2025-05-22 10:13:52 +02:00
Christian Hesse
1b5dd1e1d3
telegram-chat: support trusted group chat ids
...
But be warned: Adding a person to a trusted group will give
her/him administrative control over the device(s) - without
changes on the device itself!
On the other hand... Removing permissions is easily done by removing
a person from a group.
Closes: https://github.com/eworm-de/routeros-scripts/issues/101
2025-05-22 10:13:52 +02:00
Christian Hesse
e78c71948d
mod/notification-telegram: fix indention
2025-05-22 10:13:52 +02:00
Christian Hesse
ce129ee441
fw-addr-lists: for IPv6 the CIDR is always expected
2025-05-22 10:13:52 +02:00
Christian Hesse
2a95687477
mod/notification-email: add the link symbol
2025-05-22 10:13:52 +02:00
Christian Hesse
74dc809b98
mod/notification-email: properly truncate the body
...
Truned out that the size limit for e-mail message/body is anywhere just
below 64kB... So truncate at about 62.000 bytes.
2025-05-22 10:13:52 +02:00
Christian Hesse
ff218e4ce5
mod/notification-email: add error handling when sending mail
2025-05-22 10:13:52 +02:00
Christian Hesse
bd3cc3bbd4
mod/inspectvar: replace only when matching
2025-05-22 10:13:52 +02:00
Christian Hesse
36f155ce62
mod/inspectvar: remove CR, replace LF
2025-05-22 10:13:52 +02:00
Christian Hesse
187735f35f
mod/inspectvar: print the length for strings
2025-05-22 10:13:52 +02:00
Christian Hesse
3521995dbc
mod/inspectvar: use $CharacterMultiply
2025-05-22 10:13:52 +02:00
Christian Hesse
1f4290f4be
Merge branch 'onerror' into next
2025-05-22 10:13:52 +02:00
Christian Hesse
205bcce6f9
update-tunnelbroker: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
10ac816348
unattended-lte-firmware-upgrade: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
f22d46da96
telegram-chat: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
d0adf9974e
sms-forward: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
fefe59751f
netwatch-notify: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
a523f97938
netwatch-dns: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
c757064eb9
mod/ssh-keys-import: :do ... on-error=... -> ... well... - fix condition 🥴
2025-05-22 10:13:47 +02:00
Christian Hesse
9cd4ed08a4
mod/ssh-keys-import: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
9ae21c00bd
mod/scriptrunonce: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
314e68e4cd
mode-button: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
e01873301f
mod/notification-gotify: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
3f092d3477
mod/notification-matrix: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
2a7fd7ea53
mod/notification-ntfy: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
5badafe109
mod/notification-telegram: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
c1e6348bb9
lease-script: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
d5f9ecebfb
gps-track: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
5c599beae1
global-functions: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
8b1b73c936
global-functions: $ValidateSyntax: add debug output
2025-05-21 22:12:25 +02:00
Christian Hesse
f5c4378676
global-functions: $ValidateSyntax: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
12926b7c42
global-functions: $ScriptInstallUpdate: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
2317013121
global-functions: $RmFile: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
86a8919ed2
global-functions: $RmDir: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
09f9826760
global-functions: $MkDir: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
7a1fef78a2
global-functions: $GetMacVendor: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
a6b36dde7b
global-functions: $FetchHuge: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
5b89f3e425
global-functions: $DownloadPackage: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
a9e7bb0a05
global-config: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
b807fc9e90
fw-addr-lists: adopt changes in wording...
...
... to match the changes from previous commit.
2025-05-21 22:12:10 +02:00
Christian Hesse
142b0760b0
fw-addr-lists: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
79f681b801
check-routeros-update: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
1925d2847c
check-lte-firmware-upgrade: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
187aeba78b
check-health: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
dc2296d500
backup-upload: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
c3fce37066
backup-partition: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:05:35 +02:00
Christian Hesse
6691e2e765
global-functions: $DownloadPackage: reverse failure logic...
...
... and do not retry.
2025-05-21 21:51:16 +02:00
Christian Hesse
01f3cb91e7
sms-forward: add error handling on message removal
2025-05-13 09:22:45 +02:00
Christian Hesse
9085780562
sms-forward: delay after removal...
...
... to give the SIM card some time to succeed. Removing several messages
one after another fails without this.
2025-05-13 09:22:45 +02:00
Christian Hesse
f095b581e7
global-functions: $ScriptInstallUpdate: set config and functions not ready...
...
... before reload. This should fix some corner cases where scripts ran
with broken configuration or functions.
Also do reload both - configuration and functions - to simplify the
function.
2025-05-12 12:09:24 +02:00
Christian Hesse
661aad522b
global-config: add another visual hint
2025-05-12 12:09:24 +02:00
Christian Hesse
4561b17dbf
global-config: add another comment with visual hint
2025-05-12 12:09:24 +02:00
Christian Hesse
39295b4954
Merge branch 'global-config-ready' into next
2025-05-08 09:51:08 +02:00
Christian Hesse
0f58cecc0f
global-wait: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
f2dbb9eff3
update-tunnelbroker: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
b4d80d3b17
update-gre-address: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
9b5419b939
telegram-chat: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
15248ffd39
sms-forward: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
6270ac45d8
sms-action: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
194698f53f
ppp-on-up: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
38ec392a5f
packages-update: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
aaecd1b457
ospf-to-leds: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
5b40380cd2
netwatch-notify: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
2d39dbdf7c
netwatch-dns: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
bc1c238158
mode-button: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
160effd91b
log-forward: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
10bd9a1cb5
lease-script: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
59f9a1187f
ipv6-update: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
ce29fcf49e
ipsec-to-dns: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
6a9fced721
hotspot-to-wpa: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
713e63da87
hotspot-to-wpa-cleanup: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
148892694f
gps-track: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
9e70bca30b
fw-addr-lists: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
a68763c4dd
firmware-upgrade-reboot: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
857993cf90
dhcp-to-dns: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
ad6ad5bfcc
dhcp-lease-comment: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
be0e9be1ba
Merge branch 'global-functions-fail' into next
2025-05-08 09:51:07 +02:00
Christian Hesse
b19c448f78
daily-psk: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
2afe734bc3
Merge branch 'onerror-for-outer-block' into next
2025-05-08 09:51:07 +02:00
Christian Hesse
6040f70b19
update-tunnelbroker: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
286ed96cc3
collect-wireless-mac: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
af40ae82ed
mod/ssh-keys-import: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
87edd0bd29
update-gre-address: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
59c66de690
check-routeros-update: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
5958851bd7
mod/scriptrunonce: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
35bce7c5eb
telegram-chat: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
78463f469b
check-perpetual-license: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
f7ba78702f
mod/notification-telegram: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
24ea16cf91
sms-forward: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
506acb748b
check-lte-firmware-upgrade: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
e3a15cc6b8
mod/notification-ntfy: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
0ef8888412
sms-action: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
1936dcb563
check-health: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
d865deb8a8
mod/notification-matrix: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
7b624faaa1
ppp-on-up: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
4954a88695
check-certificates: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9d845d40f0
mod/notification-gotify: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
4358dabb19
packages-update: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
ef1a402c4e
certificate-renew-issued: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
862830b341
mod/notification-email: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
ff812dd192
ospf-to-leds: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
40b19a179d
capsman-rolling-upgrade: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
8cddc63767
mod/ipcalc: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
446aa3d7ff
netwatch-notify: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
12037ff6e6
capsman-download-packages: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9b558ff8a1
mod/inspectvar: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
2374be9a21
netwatch-dns: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
27fc07e940
backup-upload: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
d5141f43e5
mod/bridge-port-vlan: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
63606ad25c
mode-button: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
200167fa38
backup-partition: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
02986eb77a
mod/bridge-port-to: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
a6ab95ccef
log-forward: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
37a6d4cc43
backup-email: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
d2af793683
update-tunnelbroker: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
829fce789b
lease-script: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
d57916fc26
backup-cloud: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
fe3d9f8418
update-gre-address: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
41b705aa5a
ipv6-update: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
60c5e84401
accesslist-duplicates: check for global config to be ready
2025-05-08 09:51:07 +02:00
Christian Hesse
3ad8cafc7a
telegram-chat: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
83cf003f62
ipsec-to-dns: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
bcdb74f31d
global-config: introduce a state variable
2025-05-08 09:51:07 +02:00
Christian Hesse
aae9b4d4e3
sms-forward: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
057bbb8481
hotspot-to-wpa: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
3eec13b8b5
sms-action: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
76778f0431
hotspot-to-wpa-cleanup: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
aeccd36f16
ppp-on-up: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
925e7f869e
gps-track: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9a5a2aec4f
packages-update: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
4b92181f2e
fw-addr-lists: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
c720eadd2c
ospf-to-leds: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
4d1349125d
firmware-upgrade-reboot: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
0df4170a2e
netwatch-notify: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
a308d4269e
dhcp-to-dns: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
2d41ad718d
netwatch-dns: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
a556f4c398
dhcp-lease-comment: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
ff03f49724
mode-button: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
8418d58ff0
daily-psk: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
2712bcb44d
collect-wireless-mac: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
69b2af4bd7
check-routeros-update: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
08d78224a0
check-perpetual-license: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
8f1ac6fa17
check-lte-firmware-upgrade: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
96cbb32a4f
check-health: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9b811e1ed2
check-certificates: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
b4188ab1a2
certificate-renew-issued: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
de5aab12ae
capsman-rolling-upgrade: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
33393798b1
capsman-download-packages: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9423d8019a
backup-upload: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
bf1b3e3c5e
backup-partition: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
64ec962bb6
backup-email: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
7d4e4ec273
backup-cloud: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
9acf9781cb
accesslist-duplicates: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
c643069b3e
log-forward: use :onerror for outer block
2025-05-06 09:55:07 +02:00
Christian Hesse
da93138017
lease-script: use :onerror for outer block
2025-05-06 09:55:04 +02:00
Christian Hesse
39ab19b272
ipv6-update: use :onerror for outer block
2025-05-06 09:55:01 +02:00
Christian Hesse
1075b6b24e
ipsec-to-dns: use :onerror for outer block
2025-05-06 09:54:57 +02:00
Christian Hesse
9ae733a167
hotspot-to-wpa: use :onerror for outer block
2025-05-06 09:54:53 +02:00
Christian Hesse
143b8a8ddc
hotspot-to-wpa-cleanup: use :onerror for outer block
2025-05-06 09:54:48 +02:00
Christian Hesse
d609da0041
gps-track: use :onerror for outer block
2025-05-06 09:54:45 +02:00
Christian Hesse
0e93d8ca66
fw-addr-lists: use :onerror for outer block
2025-05-06 09:54:42 +02:00
Christian Hesse
d99380443b
firmware-upgrade-reboot: use :onerror for outer block
2025-05-06 09:54:38 +02:00
Christian Hesse
8ed83a311d
dhcp-to-dns: use :onerror for outer block
2025-05-06 09:54:35 +02:00
Christian Hesse
5dc6b712e1
dhcp-lease-comment: use :onerror for outer block
2025-05-06 09:54:29 +02:00
Christian Hesse
55e07a8a42
daily-psk: use :onerror for outer block
2025-05-06 09:54:24 +02:00
Christian Hesse
7d8e9fda29
collect-wireless-mac: use :onerror for outer block
2025-05-06 09:54:18 +02:00
Christian Hesse
472dc9289d
check-routeros-update: use :onerror for outer block
2025-05-06 09:54:14 +02:00
Christian Hesse
f5c33a9cfb
check-perpetual-license: use :onerror for outer block
2025-05-06 09:54:10 +02:00
Christian Hesse
b959f2d941
check-lte-firmware-upgrade: use :onerror for outer block
2025-05-06 09:54:06 +02:00
Christian Hesse
051a1d95e5
check-health: use :onerror for outer block
2025-05-06 09:54:02 +02:00
Christian Hesse
e44a5384b7
check-certificates: use :onerror for outer block
2025-05-06 09:53:59 +02:00
Christian Hesse
009516dbd4
certificate-renew-issued: use :onerror for outer block
2025-05-06 09:53:54 +02:00
Christian Hesse
54a3012e89
capsman-rolling-upgrade: use :onerror for outer block
2025-05-06 09:53:46 +02:00
Christian Hesse
e0ba2c8282
capsman-download-packages: use :onerror for outer block
2025-05-06 09:53:37 +02:00
Christian Hesse
0a9acab040
backup-upload: use :onerror for outer block
2025-05-06 09:53:34 +02:00
Christian Hesse
34c052c5f1
backup-partition: use :onerror for outer block
2025-05-06 09:53:31 +02:00
Christian Hesse
953daca8ac
backup-email: use :onerror for outer block
2025-05-06 09:53:28 +02:00
Christian Hesse
02a205b14e
backup-cloud: use :onerror for outer block
2025-05-06 09:53:24 +02:00
Christian Hesse
b9faeb86b9
accesslist-duplicates: use :onerror for outer block
2025-05-06 09:53:19 +02:00
Christian Hesse
41bf9677db
global-functions: use :onerror for outer block
2025-05-06 09:50:20 +02:00
Christian Hesse
90f61d3d75
global-functions: $ExitError: support to pass in error message
2025-05-06 09:43:57 +02:00
Christian Hesse
ccfe1a781e
check-routeros-update: log and print info with scheduler
2025-05-06 09:43:57 +02:00
Christian Hesse
154fb43800
mod/notification-ntfy: drop unused variable
2025-05-03 22:11:22 +02:00
Christian Hesse
fa83c76be1
doc/check-lte-firmware-upgrade: add missing reference for ntfy
2025-05-03 22:11:22 +02:00
Christian Hesse
07541a3cbc
update list of contributors
2025-05-03 22:11:22 +02:00
Leonardo David Monteiro
0717ebfbd5
introduce mod/notification-gotify...
...
... for sending notifications via Gotify (https://gotify.net ).
Closes: https://github.com/eworm-de/routeros-scripts/pull/92
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-05-03 22:11:22 +02:00
Christian Hesse
507a520994
Merge branch 'external-links' into next
2025-04-29 10:53:26 +02:00
Christian Hesse
fe64918118
README: add disclaimer on external links
2025-04-29 10:53:26 +02:00
Christian Hesse
3822887ba2
doc/mod/notification-telegram: mark all external links
2025-04-24 23:24:53 +02:00
Christian Hesse
c69b13c879
doc/mod/notification-notify: mark all external links
2025-04-24 23:24:50 +02:00
Christian Hesse
183b16d83c
doc/mod/notification-matrix: mark all external links
2025-04-24 23:24:47 +02:00
Christian Hesse
0eaefcdc72
doc/mod/notification-email: mark all external links
2025-04-24 23:24:43 +02:00
Christian Hesse
2fa044972c
doc/log-forward: mark all external links
2025-04-24 23:24:39 +02:00
Christian Hesse
3788a3e286
doc/fw-addr-lists: mark all external links
2025-04-24 23:24:36 +02:00
Christian Hesse
34eac64f33
doc/check-routeros-update: mark all external links
2025-04-24 23:24:32 +02:00
Christian Hesse
4118f53aae
doc/backup-partition: mark all external links
2025-04-24 23:24:28 +02:00
Christian Hesse
b12f8a3974
doc/backup-cloud: mark all external links
2025-04-24 23:24:25 +02:00
Christian Hesse
a1437a4c83
CONTRIBUTIONS: mark all external links
2025-04-24 23:24:25 +02:00
Christian Hesse
8328400e87
CERTIFICATES: mark all external links
2025-04-24 23:24:25 +02:00
Christian Hesse
158230070f
BRANCHES: mark all external links
2025-04-24 23:24:25 +02:00
Christian Hesse
405c329f39
README: mark all external links
2025-04-24 23:24:25 +02:00
Christian Hesse
b78df91b23
README: and another hint on RouterOS version
2025-04-17 22:22:05 +02:00
Christian Hesse
29bcd191ee
global-functions: $ScriptInstallUpdate: support downloading certificate...
...
... for individual scripts. Just add it in comment with
"certificate=...". This also works on installtion:
$ScriptInstallUpdate new-script "base-url=..., certificate=...";
Closes: https://github.com/eworm-de/routeros-scripts/pull/97
2025-04-17 10:48:45 +02:00
Christian Hesse
d80f43a1c8
INITIAL-COMMANDS: fix typos
2025-04-14 11:19:46 +02:00
Miquel Bonastre
390e3653d7
INITIAL-COMMANDS: add status output
...
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-14 11:19:42 +02:00
Miquel Bonastre
75163f0d3c
INITIAL-COMMANDS: support installation from custom server
...
Closes: https://github.com/eworm-de/routeros-scripts/pull/96
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-14 11:19:24 +02:00
Christian Hesse
d4b5e1f5e7
global-functions: $CertificateNameByCN: warn with no match
2025-04-10 11:08:43 +02:00
Christian Hesse
c823ff87ed
global-functions: $CertificateNameByCN: return false without match...
...
... and return true on success.
2025-04-08 16:09:53 +02:00
Christian Hesse
44fa91f5c4
global-functions: $CertificateNameByCN: pick the first match only
2025-04-08 16:09:53 +02:00
Christian Hesse
e36613608c
global-functions: $CertificateNameByCN: support matching by fingerprint and name
2025-04-08 16:09:53 +02:00
Christian Hesse
019e10e190
global-functions: $CertificateDownload: no infinite loop
...
We can not call $CertificateAvailable here, as that will most likely
cause an infinite loop. After all that's the certificate mkcert.org is
using. And it *is* available in this repository.
2025-04-08 16:09:53 +02:00
Christian Hesse
314ba5796d
global-functions: $ScriptLock: increase interval with wait time
...
Inspired by: https://github.com/eworm-de/routeros-scripts/issues/95#issuecomment-2773513467
2025-04-08 16:09:53 +02:00
Christian Hesse
67e7b11aa7
update list of contributors
2025-04-08 09:13:59 +02:00
Ilya Kulakov
27987a0d7c
global-functions: $ScriptLock: fix second parameter
...
This broke with 1e8918fdaa5a30393e2004d1f5e4dff458936b67...
Fixes: https://github.com/eworm-de/routeros-scripts/issues/95
2025-04-08 09:11:45 +02:00
Christian Hesse
2cc47f56b9
README: give the script names
2025-04-02 11:32:24 +02:00
Christian Hesse
b560ea4b7d
logo: strip some bytes...
...
... by just re-compressing/re-encoding.
2025-04-01 17:39:50 +02:00
Christian Hesse
cdfb086b49
mod/notification-telegram: fix override quirk
...
IDs for chat and thread can be overridden. Overriding the chat probably
makes the thread invalid - so ignore that then.
2025-04-01 17:39:50 +02:00
Christian Hesse
3c30276e23
check-routeros-update: split off check-perpetual-license...
...
... and also add documentation, screenshot, etc.
2025-04-01 17:39:50 +02:00
Christian Hesse
16c9ce437e
check-routeros-update: send notification on renewed license...
...
... when a warning has been sent before.
2025-03-27 22:26:39 +01:00
Christian Hesse
6909514692
check-routeros-update: send certificate warning just once...
...
... and another one once expired.
2025-03-27 10:27:54 +01:00
Christian Hesse
f8c3659f6a
support creating the checksums file
2025-03-27 10:27:54 +01:00
Christian Hesse
ce39b79f69
capsman-download-packages: fix parameter for $RmFile
...
The function can not handle ids, we have to pass a name instead.
2025-03-13 11:50:38 +01:00
Christian Hesse
20bf609c44
check-routeros-update: fix condition for license check
...
Turns out that `next-renewal-at` is moved forward when renewal failed,
so it never matches the criteria. Just start complaining three weeks
before deadline.
2025-03-13 10:51:39 +01:00
Christian Hesse
b63e0fcb2f
netwatch-notify: check matching address type only
2025-03-12 11:26:22 +01:00
Christian Hesse
1555426687
netwatch-notify: increase the timeout even more
...
This interacts with the number of addresses in the address-list. Having
a lot of addresses there (for exemple from script 'fw-addr-lists' 😜 )
makes the 'find' take longer. We have to make sure that 'find' succeeds
before the address times out.
As this does not hurt... Let's just bump to 10 seconds to be safe.
2025-03-12 11:18:18 +01:00
Christian Hesse
97b99316b2
netwatch-notify: increase timeout...
...
... as a timeout of one second expires immediately. 🤨
2025-03-12 10:31:11 +01:00
Christian Hesse
788400c458
fw-addr-lists: raw.githubusercontent.com requires 'USERTrust RSA Certification Authority' now
2025-03-11 15:51:25 +01:00
Christian Hesse
eb59dd21ca
check-routeros-update: check perpetual license...
...
... as these have to be renewed and can expire.
2025-03-11 15:51:25 +01:00
Christian Hesse
79a4b369cb
Merge branch 'fw-addr-lists' into next
2025-03-11 15:51:25 +01:00
Christian Hesse
f0e6cbcfe1
fw-addr-lists: get branch from calculated checksum
...
The addresses were spread very uneven before.
Let's calculate a checksum, and take the first two characters of that.
The addresses are now spread evenly on 256 branches (0x00 to 0xff).
2025-03-11 15:51:10 +01:00
Christian Hesse
d71ea804b0
fw-addr-lists: two characters for branch
...
Using one character for IPv4 is ok (1 to 9), but IPv6 global unicase
(2000::/3) results in just two different characters (2 and 3).
So let's use first two characters...
2025-03-11 14:20:50 +01:00
Christian Hesse
e148df9e57
fw-addr-lists: put addresses into "branches"...
...
... effectively adding another layer and some complexity, but:
The addresses are sorted inside the array, and sorting less addresses in
a branch saves a lot of processing power. So this is a lot faster now...
2025-03-11 14:20:44 +01:00
Christian Hesse
2f55bfaf00
fw-addr-lists: strip cidr for host addresses
...
This makes sure the addresses match later when we read them from
address-list for renew.
2025-03-11 14:19:10 +01:00
Christian Hesse
ea6de35699
fw-addr-lists: do not clean up
...
Cleanup is important on renew (so the script does not attempt to re-add),
but we do not care here.
2025-03-11 14:13:55 +01:00
Christian Hesse
fb343c99e3
fw-addr-lists: put timeout into variable
2025-03-06 22:59:31 +01:00
Christian Hesse
7be26a0712
DEBUG: add info on $LogPrintVerbose
2025-03-06 15:59:44 +01:00
Christian Hesse
6d718ec987
fw-addr-lists: use $LogPrintVerbose ...
...
... to reduce debug output and speed up execution.
2025-03-06 15:59:44 +01:00
Christian Hesse
e341e1c30c
global-functions: introduce $LogPrintVerbose ...
...
... which is a declared function, but has no code, intentionally. It can be
called as a no-op by default.
If you want this output set the function to be the same as $LogPrint:
:set LogPrintVerbose $LogPrint;
2025-03-06 15:59:11 +01:00
Christian Hesse
b43b1b3955
Merge branch 'checksums' into next
2025-03-06 10:43:15 +01:00
Christian Hesse
1b46a5fd9b
global-functions: $ScriptInstallUpdate: checksum only for same source
...
So ignore if script is fetched from different base or with different
suffix.
2025-03-06 10:43:13 +01:00
Christian Hesse
b13360e4b8
global-functions: $ScriptInstallUpdate: simplify check
...
This one should suffice...
2025-03-06 10:42:52 +01:00
Christian Hesse
c9de6d8579
global-functions: $ScriptInstallUpdate: put checksum into variable
2025-03-06 10:42:27 +01:00
Christian Hesse
10374afc18
global-functions: $ScriptInstallUpdate: support checksums for CRLF scripts
2025-03-06 10:42:00 +01:00
Christian Hesse
0c1d96f89d
global-functions: $ScriptInstallUpdate: get and compare checksums
...
The file 'checksums.json' is generated when deploying to my web
server... This should speed up the update a lot as it reduces downloads
to a minimum. 🎉 😁
2025-03-06 10:41:28 +01:00
Christian Hesse
3ccaafd1b3
global-functions: $ScriptInstallUpdate: move code into block
2025-03-05 01:15:22 +01:00
Christian Hesse
469f783a92
ipv6-update: check for availability of both variables
2025-03-03 09:12:43 +01:00
Christian Hesse
33c02e0609
ipv6-update: ignore if prefix is no longer valid
2025-03-03 09:10:54 +01:00
Christian Hesse
6331505dbe
Merge branch 'quote-file-name' into next
...
This is required with RouterOS 7.18 now...
Well, probably the change was introduced with one of the
beta versions...
2025-02-27 10:52:52 +01:00
Christian Hesse
0c4fb42616
mod/notification-telegram: $GetTelegramChatId: give thead id...
...
... if message was sent to group's topic.
2025-02-27 10:52:52 +01:00
Christian Hesse
f5189b8bd7
INITIAL-COMMANDS: quote the certificate file name
2025-02-27 10:52:52 +01:00
Christian Hesse
e2fe653035
mod/notification-telegram: $GetTelegramChatId: use last message
2025-02-27 10:52:52 +01:00
Christian Hesse
b11be59b08
README: quote the certificate file name
2025-02-27 10:52:52 +01:00
Christian Hesse
24de060904
Merge branch 'check-certificates' into next
2025-02-27 10:52:19 +01:00
Christian Hesse
14195c51ca
check-certificates: try PKCS#12 before PEM...
...
... as that is more likely to have a private key.
Is that true? 🤨
2025-02-26 18:25:58 +01:00
Christian Hesse
e833dfcf25
check-certificates: simplify return from function...
...
... and also break earch on success.
2025-02-26 18:05:32 +01:00
Christian Hesse
512c54bd59
check-certificates: ... and even more
2025-02-26 18:05:32 +01:00
Christian Hesse
3d40b4419d
check-certificates: add more debug output
2025-02-26 18:03:45 +01:00
Christian Hesse
a6d4e7e82c
check-certificates: drop dot from type...
...
... and add it in file name.
2025-02-26 18:03:17 +01:00
Christian Hesse
f6c2225f68
check-certificates: catch and ignore import error
...
Hmm... 🤨 When was that runtime error introduced? I *think* it
worked before.
2025-02-26 13:57:51 +01:00
Christian Hesse
53b13b295a
mod/notification-telegram: introduce $GetTelegramChatId
2025-02-25 22:37:30 +01:00
Christian Hesse
4eafcaa3ac
telegram-chat: say hello when awaiting commands
2025-02-25 22:16:48 +01:00
Christian Hesse
c33eb41c9c
global-functions: $DeviceInfo: add license level, re-order
2025-02-25 17:55:26 +01:00
Christian Hesse
78f9687558
Merge branch 'telegram-topics' into next
2025-02-25 17:55:26 +01:00
Christian Hesse
e5de9de391
notify on support for Telegram group topics
2025-02-25 17:55:26 +01:00
Christian Hesse
7928c5f054
telegram-chat: support reply in group's topic
2025-02-25 17:55:26 +01:00
Christian Hesse
757fa60e6f
telegram-chat: make $IsReply a boolean...
...
... and check for correct data type.
We need this for a group with topic feature enabled, as that variable is
set there, but is is an array.
2025-02-25 17:55:26 +01:00
Christian Hesse
a22b62f588
mod/notification-telegram: support sending to group's topic...
...
... when a group has enabled the "Topics" feature.
2025-02-25 17:55:12 +01:00
Christian Hesse
cad104879c
mod/notification-telegram: simplify the queue...
...
... and pass http-data as a complete sting.
2025-02-24 15:18:53 +01:00
Christian Hesse
58da92e36a
global-functions: $WaitForFile: drop the warning on file handling breakage...
...
... but keep the workaround for now - just to be sure.
2025-02-19 22:21:03 +01:00
Christian Hesse
2c92c78b46
global-functions: $ScriptInstallUpdate: also show commit info
2025-02-17 13:55:44 +01:00
Christian Hesse
75633872aa
global-functions: $DeviceInfo: also show commit info
2025-02-17 13:55:36 +01:00
Christian Hesse
dafcc1a0cb
global-functions: $RmFile: fix type safeguard
...
Ups... 🫣
The type is not just literal 'file' - but what ever type the file is,
like 'backup', 'package', 'script', '.conf file', ...
So let's match those types we do *not* want to remove.
Fixes: https://github.com/eworm-de/routeros-scripts/issues/90
2025-02-13 17:58:48 +01:00
Christian Hesse
0199ea8884
global-functions: $ScriptInstallUpdate: show commit id (if available)
2025-02-13 09:50:22 +01:00
Christian Hesse
584e507fd1
global-functions: $DeviceInfo: show commit id (if available)
2025-02-13 09:03:05 +01:00
Christian Hesse
5715bc7b57
mod/scriptrunonce: always give proper return code
2025-02-12 17:40:27 +01:00
Christian Hesse
1c957dbc6d
mod/scriptrunonce: resolve nested conditions
2025-02-12 17:40:27 +01:00
Christian Hesse
b7b3b43f3b
mod/scriptrunonce: use $FetchHuge
2025-02-12 17:40:27 +01:00
Christian Hesse
df631b987d
fw-addr-lists: add a collective list in default configuration
2025-02-12 17:40:27 +01:00
Christian Hesse
c8759381e9
global-functions: $WaitForFile: check that we can get properties
...
Looks like RouterOS 7.18beta2 brings more breakage. Having a file
available in listing is just the first step now. We also need to make
sure that the file properties are accessible... 🤪
I have seen this taking several tens of seconds at least... 🤪 🤪 So
let's just try until we have properties available, or the file vanishes.
Reported as SUP-179200. 🤞
2025-02-12 10:49:38 +01:00
Christian Hesse
d41f758550
introduce DEBUG info
2025-02-12 10:49:34 +01:00
Christian Hesse
e1c561dd91
global-functions: $MkDir: add debug output
2025-02-11 14:56:43 +01:00
Christian Hesse
4d0b4a1ff4
fw-addr-lists: these lists are deprecated and discontinued
...
Any alternatives around?
2025-02-11 14:30:14 +01:00
Christian Hesse
8af67af462
doc/log-forward: mention ntfy
2025-02-10 15:31:20 +01:00
Christian Hesse
da280586b5
doc/log-forward: add a hint on defaults
2025-02-10 15:31:20 +01:00
Christian Hesse
2e42f7963c
mod/notification-ntfy: use empty strings as default...
...
... which should be fine now that the credentials are not passed with
fetch's properties, but as properly formatted authentication header.
2025-02-10 15:23:50 +01:00
Christian Hesse
fc3beac83b
log-forward: make empty string a special meaning
2025-02-10 15:23:50 +01:00
Christian Hesse
fefe11d1e8
Merge branch 'rmdir-rmfile' into next
...
RouterOS 7.18beta2 comes with some severe issues in file handling,
probably racy conditions. Let's move file (and directory) removal to
functions, so errors can be caught and ignored 🤪 from a central place.
2025-02-10 15:23:50 +01:00
Christian Hesse
b156fc43cf
telegram-chat: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
0fea300fea
mod/ssh-keys-import: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
6570a84904
check-certificates: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
63db96bdcc
capsman-download-packages: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
88ff031368
backup-upload: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
81ba47a07d
backup-upload: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
d748b69142
backup-cloud: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
f5f00b70e3
global-functions: $MkDir: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
4760515add
global-functions: $FetchHuge: use $RmDir
2025-02-10 15:23:50 +01:00
Christian Hesse
d19b90df08
global-functions: $FetchHuge: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
ea8ec6b580
global-functions: $DownloadPackage: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
dbdf295244
global-functions: $CertificateDownload: use $RmFile
2025-02-10 15:23:50 +01:00
Christian Hesse
82020ddd73
global-functions: $RmDir: fail on wrong type
2025-02-10 15:23:50 +01:00
Christian Hesse
a8e5b5226b
global-functions: $RmFile: fail on wrong type
2025-02-10 15:23:50 +01:00
Christian Hesse
4bfb591fa0
bump required RouterOS version for all scripts
2025-02-07 17:44:41 +01:00
Christian Hesse
49d9fb1ffd
global-functions: $RmDir: add debug output
2025-02-07 17:44:41 +01:00
Christian Hesse
7233dea5bb
global-functions: $RmFile: add debug output
2025-02-07 17:44:41 +01:00
Christian Hesse
727495d9c4
global-functions: introduce $RmDir
2025-02-07 17:44:41 +01:00
Christian Hesse
4542c2b19e
global-functions: introduce $RmFile
2025-02-07 17:44:41 +01:00
Christian Hesse
0fb5fd0323
global-functions: $MkDir: create directory directly...
...
... instead of file inside directory. This requires RouterOS 7.15, so
bumping requirement.
2025-02-07 17:44:32 +01:00
Christian Hesse
dbdc3e4718
packages-update: ignore available packages
...
This was introduced with RouterOS 7.18beta2 to list and install available
packages. We do not want to install all of them. 😝
2025-02-07 17:16:37 +01:00
Christian Hesse
dafd95d44a
packages-update: disable random delay for backup
2025-02-06 21:26:39 +01:00
Christian Hesse
7b660d0952
packages-update: move configuration variables up
2025-02-06 21:24:20 +01:00
Christian Hesse
23d38927bc
check-health: split off plugins...
...
... from 'check-health', so the script works on all devices to monitor
CPU and RAM. The supported plugins for sensors in hardware are installed
automatically.
2025-02-05 14:39:59 +01:00
Christian Hesse
84ba3a463a
doc/netwatch-dns: warn on different certificate...
...
... based on indicated server name.
Currently this is true for 8.8.8.8 (GTS Root R1) and dns.google (GTS Root R4).
2025-02-05 10:00:26 +01:00
Christian Hesse
27c92b4382
doc/netwatch-dns: switch exmample to cloudflare-dns.com
2025-02-05 10:00:26 +01:00
Christian Hesse
6501c98c82
certs: dns.google switched to 'GTS Root R4'
...
Note that 8.8.8.8 is still at 'GTS Root R1'...
2025-02-05 10:00:26 +01:00
Christian Hesse
bfe5f20920
check-health: remove trailing whitespaces
2025-02-04 22:20:18 +01:00
Christian Hesse
3024b246b5
check-health: remove extra line break
2025-02-04 12:03:24 +01:00
Christian Hesse
61f3c26199
doc/check-health: highligh note on bad initial state
2025-02-03 14:36:25 +01:00
Christian Hesse
3ad7ccd3d6
check-certificates: check to characters for star-dot
2025-02-03 10:05:35 +01:00
Christian Hesse
eabe3f6e95
check-certificates: pass real and modified name into function
2025-01-31 21:40:51 +01:00
Christian Hesse
75e5ddec52
check-certificates: do not rename the wrong certificate
2025-01-31 13:09:22 +01:00
Christian Hesse
44d0c852f1
check-certificates: try with "star." for renewal with wildcards
2025-01-31 12:14:05 +01:00
Christian Hesse
0eb91b6bfa
update list of contributors
2025-01-30 22:50:07 +01:00
Christian Hesse
87fb70534f
certs: support checking ipv4 or ipv6 only
...
Just run for IPv4 only:
make NOIPV6=1
... or for IPv6 only:
make NOIPV4=1
2025-01-30 22:50:07 +01:00
Christian Hesse
fcb5347e33
certs: split checks for dual, ipv4 & ipv6...
...
... and check both if available.
2025-01-30 22:50:07 +01:00
Miquel Bonastre
aa294b4c67
certs: fix curl false positives...
...
... when default capath contains system certs
If curl has a default capath (debian 12 capath=/etc/ssl/certs)
it will add those certs and return ok to any valid https url,
defeating the intended use of the cacert option in the Makefile
that validates sites and certs.
To avoid that, adding option "--capath /dev/null" overrides
the default value, if any.
Closes: https://github.com/eworm-de/routeros-scripts/pull/88
2025-01-30 22:49:02 +01:00
Christian Hesse
414c83ef81
global-functions: $ScriptInstallUpdate: resolve more nested conditions
...
Just like the previous one.
2025-01-30 09:00:02 +01:00
Christian Hesse
8b19e74736
global-functions: $ScriptInstallUpdate: resolve nested conditions...
...
... and check one after another in a do-block. This uses `:error` as
poor man's continue. 🤪
2025-01-30 09:00:02 +01:00
Christian Hesse
3c8ec5169f
Merge branch 'device-mode' into next
2025-01-30 09:00:02 +01:00
Christian Hesse
d921af9a6b
update-tunnelbroker: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
9421566352
unattended-lte-firmware-upgrade: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
ef48b8d39e
telegram-chat: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
8dc1e1ea6b
packages-update: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
3ef4588601
netwatch-dns: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
59c9d0ce4b
mod/scriptrunonce: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
378a8978df
mod/notification-telegram: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
9f2f54b479
mod/notification-ntfy: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
9a12934202
mod/notification-matrix: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
370e81321f
mod/notification-email: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
56e74268b0
mode-button: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
5f1cbe6de5
ipsec-to-dns: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
1ad4d05be8
hotspot-to-wpa-cleanup: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
e29ef31eb8
hotspot-to-wpa: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
bc0227c49b
gps-track: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
43f6c0b975
check-routeros-update: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
95b675f67e
check-certificates: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
d81a786e82
backup-upload: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
aebc4e37da
backup-partition: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
b177e298d7
global-functions: $ScriptInstallUpdate: support checking for device-mode features
2025-01-30 09:00:02 +01:00
Christian Hesse
106a9bddef
README: give hint on device mode
2025-01-29 22:20:41 +01:00
Christian Hesse
546e3cdab6
Merge branch 'rsc-eworm-de' into next
2025-01-29 22:20:14 +01:00
Christian Hesse
c04ee5aadf
update-tunnelbroker: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
49aef0606b
update-gre-address: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
32ac10e6ef
unattended-lte-firmware-upgrade: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
e3ca37ad9a
telegram-chat: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
dd2854e983
super-mario-theme: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
7addf2e53a
sms-forward: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
1f5aea9fca
sms-action: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
867e504c94
ppp-on-up: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
90a148a9d8
packages-update: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
3b0ea3a238
ospf-to-leds: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
719079c5c1
news-and-changes: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
563aeb8f71
netwatch-notify: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
299b34883f
netwatch-dns: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
ed18444578
mod/ssh-keys-import: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
66ab2a8511
mod/scriptrunonce: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
27144a428a
mod/notification-telegram: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
6e7f311269
mod/notification-ntfy: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
6567a94a4f
mod/notification-matrix: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
631f63836b
mod/notification-email: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
828f68be3c
mod/ipcalc: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
078d5368fb
mod/inspectvar: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
18fcecd211
mode-button: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
d5a50d824f
mod/bridge-port-vlan: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
6920842d15
mod/bridge-port-to: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
b8841a7135
log-forward: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
b75a35417a
leds-toggle-mode: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
bf11489d11
leds-night-mode: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
5e60d2e1b7
leds-day-mode: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
5ead61cb62
lease-script: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
71316f7377
ipv6-update: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
02cc581aff
ipsec-to-dns: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
453d80a121
ip-addr-bridge: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
9474102c62
hotspot-to-wpa: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
996602bfe9
hotspot-to-wpa-cleanup: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
72db13c0ab
gps-track: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
0431b02324
global-wait: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
7be415d0ed
global-functions: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
b7923485bd
global-config: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
ac62b8f24f
global-config-overlay: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
39c5aeda13
fw-addr-lists: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
7b760d9fa4
firmware-upgrade-reboot: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
632d294a98
dhcp-to-dns: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
61dee21776
dhcp-lease-comment: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
96fa76f07d
daily-psk.template: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
f8058eaf71
collect-wireless-mac: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
36c87c91ea
check-routeros-update: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
7484663b92
check-lte-firmware-upgrade: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
231be730ae
check-health: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
1239ac3104
check-certificates: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
1b7458ac95
certificate-renew-issued: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
26dbf5805a
capsman-rolling-upgrade: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
b938847030
capsman-download-packages: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
38b5fbab9c
backup-upload: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
c70b6a8eb3
backup-partition: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
08ff07d037
backup-email: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
5281b4ba02
backup-cloud: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
1dda59034e
accesslist-duplicates: use short url rsc.eworm.de
2025-01-29 14:14:26 +01:00
Christian Hesse
500054535c
unattended-lte-firmware-upgrade: require RouterOS
2025-01-29 14:09:06 +01:00
Christian Hesse
a446f31262
fw-addr-lists: use my static mirror
2025-01-24 11:20:31 +01:00
Christian Hesse
d4acc5aa59
BRANCHES: adopt new default url
2025-01-24 11:20:31 +01:00
Christian Hesse
ccf17a438c
global-config: download scripts from rsc.eworm.de
...
Currently AI bots are crawling website all around the world. For a
website hosting git content this adds a lot of extra load and traffic:
The site has lots of sections, repositories have a lot of files,
branches, tags, commit ids, etc...
Multiply that and you have a nearly unlimited number of unique urls. The
bots try to get each and every of these.
To speed up the learing process on their side a swarm of hundreds,
thousands or more ip addresses is active at the same time, ultimately
DDOS'ing the websites, making it inaccessible. 😳 🤬
Well, there is one single file all of these AI bots are not interested
in: robots.txt 🤬 🤬
On top some use random user agent strings, making filtering impossible.
🤬 🤬 🤬
For a short term sulution I deploy the repository content as static
files, hopefully making these accessible at least. We will see.
2025-01-24 11:20:24 +01:00
Christian Hesse
e8b1e19b28
fw-addr-lists: spamhaus.org returned to 'GTS Root R4'
2025-01-22 12:33:46 +01:00
Christian Hesse
98791f48fd
ppp-on-up: release only bound ipv6 dhcp clients
2025-01-09 13:20:45 +01:00
Christian Hesse
ce2d090e99
packages-update: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
665516b33d
check-routeros-update: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
d9693f4d5f
backup-upload: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
6c990079a6
backup-partition: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
303c393900
backup-email: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
db508ddcd1
backup-cloud: refuse when running from backup partition
2025-01-06 09:31:38 +01:00
Christian Hesse
9e3729c279
update copyright for 2025
2025-01-02 00:04:06 +01:00
Christian Hesse
b98b245714
global-functions: $WaitForFile: drop the first workaround
...
This reverts commit 8231c3e833 .
Truned out this workaround was not sufficient, see the follow-up in
commit 191cc1b952 for details.
But possibly the second one does it on its own? Reverting this for
a test run.
2024-12-30 20:22:51 +01:00
Christian Hesse
191cc1b952
global-functions: $FetchHuge: another workaround for complete file
...
Turns out the workaround in $WaitForFile (commit
8231c3e833 ) is not sufficient. It helps
sometimes, but not always. Possibly depends on CPU speed and bandwidth
of internet connection... Who knows!? 🤪
But! Reading the file goes beyond the known file size. That's suspicious
and indicates this exact issue. So add a delay, and keep reading until
sizes are equal.
2024-12-30 20:09:46 +01:00
Christian Hesse
3ada3055ff
fw-addr-lists: spamhaus.org returned to 'ISRG Root X1'
...
This reverts commit 4d8dce9769 .
2024-12-30 19:51:42 +01:00
Christian Hesse
ef3ce7cc6c
global-functions: $ParseKeyValueStore: support JSON as input
...
This used to require a key=value store, separated with commas. An
example for `netwatch-notify` is:
/tool/netwatch/add comment="notify, name=example.com" host=93.184.215.14;
Now JSON is supported as well, so you could use:
/tool/netwatch/add comment="{\"notify\":true,\"name\":\"example.com\"}" host=93.184.215.14;
Looks more clumsy here, but may be of help in more complex setups...
2024-12-25 23:04:50 +01:00
Christian Hesse
8212bd6c95
global-functions: $ParseKeyValueStore: properly return boolean values
2024-12-25 23:04:48 +01:00
Christian Hesse
ba39c29648
global-functions: $ParseKeyValueStore: split key and value...
...
... into separate variables.
2024-12-25 23:04:28 +01:00
Christian Hesse
6bee467550
mod/notification-ntfy: add basic authentication in headers
...
This makes it a bit easier and straight forward as we pass the
headers anyway.
2024-12-17 13:21:59 +01:00
Christian Hesse
d1b9b1b410
mod/notification-ntfy: support authentication with bearer token
...
Closes: https://github.com/eworm-de/routeros-scripts/issues/86
2024-12-17 13:21:19 +01:00
Christian Hesse
a7878d664f
fw-addr-lists: do not fail on invalid json data
2024-12-17 13:21:19 +01:00
Christian Hesse
b66332eb46
mod/notification-email: $FlushEmailQueue: just return on empty queue
2024-12-17 13:21:14 +01:00
Christian Hesse
8c8c75ca66
mod/notification-email: $FlushEmailQueue: move the check up...
...
... as this needs to be done before creating a scheduler. 😜
Also remove the scheduler and return.
2024-12-17 11:20:09 +01:00
Christian Hesse
1e2ca3d214
mod/notification-email: $FlushEmailQueue: create scheduler if missing...
...
... as it is required to be modified several times below.
2024-12-17 11:20:09 +01:00
Christian Hesse
5310673152
mod/notification-email: $FlushEmailQueue: return on purge
2024-12-17 11:20:09 +01:00
Christian Hesse
009a6bd762
mod/notification-email: $FlushEmailQueue: return on success
2024-12-17 11:20:09 +01:00
Christian Hesse
8231c3e833
global-functions: $WaitForFile: delay until "complete"...
...
Well, turns out that waiting for existence of a file is not sufficient.
Chances are that a file is available just partly, so wait until the size
no longer changes... Let's hope that works as expected. 🤞
2024-12-17 11:20:09 +01:00
Christian Hesse
d70efe910a
mode-button: support led toggle without extra script
2024-12-17 11:20:09 +01:00
Christian Hesse
c311e58d99
leds-toggle-mode: toggle in one call...
...
... and drop the condition.
2024-12-17 11:20:09 +01:00
Christian Hesse
42bcc63d29
mod/notification-email: increase retry interval on failure
2024-12-17 11:20:09 +01:00
Christian Hesse
bceabebf9c
mod/notification-email: drop useless safeguard
...
Guess it was useful back in the day. Now the function exits early if the
queue is empty... So this can never be zero.
2024-12-17 11:19:57 +01:00
Christian Hesse
519cb85e28
Merge branch 'func-exit-error' into next
2024-12-09 11:49:50 +01:00
Christian Hesse
e51191035b
mode-button: $ModeButtonScheduler: explicitly name the variable
2024-12-09 11:49:50 +01:00
Christian Hesse
210ef26b93
mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
f8a55860af
check-routeros-update: pass script name to local function
2024-12-09 11:49:50 +01:00
Christian Hesse
1788c05998
mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
3866ea1923
Merge branch 'exit-error' into next
2024-12-09 11:49:50 +01:00
Christian Hesse
73e0ac75f1
mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
48bcf8ee6e
global-functions: $FetchHuge: passing boolean to function is still broken... 🤨
2024-12-09 11:49:50 +01:00
Christian Hesse
ee030740cb
update-tunnelbroker: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
4968b79fc1
mod/notification-telegram: $SendTelegram: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
d4ea0e18a7
update-gre-address: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
e89867be15
mod/notification-telegram: $FlushTelegramQueue: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
adbefca0e4
telegram-chat: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
e76ae11b02
mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
a78fe98fd0
sms-forward: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
aac723e2a1
mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
ede351f47e
sms-action: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
de9dee83be
mod/notification-matrix: $SendMatrix: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
be05480071
ppp-on-up: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
1994b23e46
mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
81f59f9894
packages-update: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
1927dc505a
mod/notification-email: $SendEMail: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
eeb76c227c
ospf-to-leds: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
5450618723
mod/notification-email: $FlushEmailQueue: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
bdc15eaefb
netwatch-notify: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
34172e4c78
mod/ipcalc: $IPCalc: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
d89a369485
netwatch-dns: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
05cb87f475
mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
b7ce6aee71
mode-button: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
495232b299
mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
da7a031081
log-forward: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
5db686a15c
mod/bridge-port-to: $BridgePortTo: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
177a1e798a
lease-script: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
1fe90a6e9a
mode-button: $ModeButtonScheduler: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
82de8bd935
ipv6-update: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
5b9031ccca
global-functions: $SendNotification: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
a6fd6bd80c
ipsec-to-dns: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
8c5bd8f5e2
global-functions: $ScriptInstallUpdate: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
8e12453058
hotspot-to-wpa: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
ff00c27f99
global-functions: $ExitError: give matching message for functions
2024-12-09 11:49:50 +01:00
Christian Hesse
f7b96aa3e9
hotspot-to-wpa-cleanup: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
90cfa83d95
gps-track: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
923a6385bf
fw-addr-lists: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
590030d391
firmware-upgrade-reboot: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
c8d423c7d5
dhcp-to-dns: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
87cde2cc2f
dhcp-lease-comment: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
f9a6916827
daily-psk.capsman: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
bf322781d1
collect-wireless-mac: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
9d17beef03
check-routeros-update: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
91c8d30655
check-lte-firmware-upgrade: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
451df78dd8
check-health: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
00487f93d4
check-certificates: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
dc7642c1fd
certificate-renew-issued: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
172d43288e
capsman-rolling-upgrade: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
c909bef613
capsman-download-packages: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
268743ef6b
backup-upload: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
95030b9b74
backup-partition: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
2c4053cff5
accesslist-duplicates: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
52b5490bab
backup-email: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
36b81fab94
backup-cloud: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
ed6739b8bc
global-functions: $ExitError: give script name in message
2024-12-09 11:49:50 +01:00
Christian Hesse
0d69f8952c
global-functions: introduce $ExitError...
...
... as a simple macro to print error message on unintentional error.
2024-12-09 11:49:50 +01:00
Christian Hesse
09e8b1d219
netwatch-dns: explicitly expect type=A...
...
... which is provided since 7.16beta7 (but require next stable release
7.16 as that is available meanwhile).
2024-11-27 11:56:44 +01:00
Christian Hesse
6548f83ef4
dhcp-to-dns: explicitly expect type=A...
...
... which is provided since 7.16beta7 (but require next stable release
7.16 as that is available meanwhile).
I had this on my wishlist for a long time, and opened an issue in
March 2023 about it (SUP-111312).
Back then I changed the code to support both, see commit
779b3b8872 .
2024-11-27 11:56:44 +01:00
Christian Hesse
e851cd5ad0
mod/ssh-keys-import: require RouterOS 7.16
...
Actually the requirement bumped with the change in commits:
* 9c945b1a32
mod/ssh-keys-import: $SSHKeysImportFile: simplify looping lines
* 1f526b3561
mod/ssh-keys-import: $SSHKeysImport: split with `:deserialize`
2024-11-27 11:56:09 +01:00
Christian Hesse
794525b706
fw-addr-lists: require RouterOS 7.16
...
Actually the requirement bumped with the change in commit:
* 084c246ef0
fw-addr-lists: simplify looping lines
2024-11-27 10:00:27 +01:00
Christian Hesse
4d8dce9769
fw-addr-lists: spamhaus.org returned to 'GTS Root R4'
2024-11-22 14:06:22 +01:00
Christian Hesse
08ad4e5194
mode-button: do not act on disabled LED
2024-11-15 23:09:24 +01:00
Christian Hesse
53b6f7720e
mode-button: catch runtime errors in executed code
2024-11-15 23:09:24 +01:00
Christian Hesse
1beda3aa7c
mode-button: fix the caller parameter to $LogPrint
...
This is inside a function, so use just $0 here.
2024-11-15 23:01:22 +01:00
Christian Hesse
5b09469cc6
packages-update: drop check for device-mode downgrade...
...
... as things have been revised and this specific setting was removed.
2024-11-14 21:03:07 +01:00
Christian Hesse
a224fbc424
hotspot-to-wpa-cleanup: revert display of timeout value...
...
... as the timeout is a time value, and showing "4w00:00:00" (with lots
of zeros) is not any better. 😜
This reverts commit f1533b8962 .
2024-11-13 08:59:30 +01:00
Christian Hesse
e5c3aeb5cd
hotspot-to-wpa-cleanup: prepare real timeout value in variable...
...
... to make sure it is not re-calculated for every single lease.
2024-11-13 08:57:05 +01:00
Christian Hesse
ae655646ba
hotspot-to-wpa-cleanup: clean up daily only
2024-11-12 18:02:26 +01:00
Christian Hesse
f1533b8962
hotspot-to-wpa-cleanup: use the timeout in message...
...
... not the actual value.
2024-11-12 17:53:30 +01:00
Christian Hesse
a545d0d39e
check-routeros-update: always exit early if up to date...
...
... and just make the output and log dependent on terminal.
2024-11-12 17:46:02 +01:00
Christian Hesse
04172f0438
check-routeros-update: make invalid version string a warning
2024-11-12 17:42:54 +01:00
Christian Hesse
d97f63fa5a
check-routeros-update: add specific message for empty version string
2024-11-12 17:41:54 +01:00
Christian Hesse
6c8fa8e639
check-routeros-update: replace hard-coded version
2024-11-12 17:40:05 +01:00
Christian Hesse
1f526b3561
mod/ssh-keys-import: $SSHKeysImport: split with :deserialize
2024-11-08 09:16:25 +01:00
Christian Hesse
0837391c38
mod/ssh-keys-import: $SSHKeysImportFile: let :deserialize split the fields
2024-11-08 09:16:18 +01:00
Christian Hesse
9c945b1a32
mod/ssh-keys-import: $SSHKeysImportFile: simplify looping lines
2024-11-08 09:15:45 +01:00
Christian Hesse
084c246ef0
fw-addr-lists: simplify looping lines
...
With `:deserialize` the **record** separator is always a new line. The
property `delimiter=` is a **field** reparator, so you can parse a lines
into an array.
We do not want (or need) that, so use new line as field separator. This
will result in an array with just one element, and we use that.
Also convert the data to line feed explicitly, just to be sure.
2024-11-06 22:42:40 +01:00
Christian Hesse
31dfdf7e62
doc/netwatch-dns: link to 'certificate name from browser'
2024-11-02 21:23:04 +01:00
Christian Hesse
d213369e73
doc/fw-addr-lists: link to 'certificate name from browser'
2024-11-02 21:23:04 +01:00
Christian Hesse
c5740c2328
doc/mod/notification-ntfy: link to 'certificate name from browser'
2024-11-02 21:23:04 +01:00
Christian Hesse
af942d90d3
doc/mod/notification-matrix: link to 'certificate name from browser'
2024-11-02 21:23:04 +01:00
Christian Hesse
3c0852d6b8
introduce CERTIFICATES, guide to find root certificate
2024-11-02 21:23:04 +01:00
Christian Hesse
3506f71071
global-functions: $CertificateAvailable: fail without CommonName
2024-10-30 22:49:48 +01:00
Christian Hesse
a6584170c3
certs: check cert for matrix.org
2024-10-29 15:00:26 +01:00
Christian Hesse
3169270dbd
doc/mod/notification-matrix: better document certificate import
2024-10-29 15:00:26 +01:00
Christian Hesse
e803f8b3c0
ipv6-update: create a dynamic address-list entry only
...
This should make sure that the script runs once after reboot, even if
the prefix does not change.
An existing static entry needs to be removed to make this work!
https://github.com/eworm-de/routeros-scripts/issues/85
2024-10-25 18:20:17 +02:00
Christian Hesse
d022c87651
ipv6-update: ignore if address was acquired
...
https://github.com/eworm-de/routeros-scripts/issues/85
2024-10-23 21:55:34 +02:00
Christian Hesse
7229c756af
fw-addr-lists: spamhaus.org requires 'ISRG Root X1' now
2024-10-23 20:17:44 +02:00
Christian Hesse
07c9576377
packages-update: check for explicit state...
...
... as all device-mode properties are given since RouterOS 7.14beta4.
Let's assume we do not have to care about RouterOS 7.14beta2 any more...
As older versions will not match the check we can now merge right away.
2024-10-23 20:17:44 +02:00
Christian Hesse
435f70999c
backup-partition: drop warning on lock in device-mode
...
... as switching partitions is possible again in RouterOS 7.17beta4.
2024-10-22 19:32:19 +02:00
Christian Hesse
71c58c6afb
doc/netwatch-notify: fix typo(s)
2024-10-10 22:32:46 +02:00
Christian Hesse
f7f50a9d45
doc/netwatch-notify: give an extra example for resolving AAAA records
2024-10-10 22:24:56 +02:00
Christian Hesse
82e3e7a9fc
doc/netwatch-notify: always give a host...
...
... as that is a required property. Any ip address is fine, it is
changed anyway.
2024-10-10 22:20:31 +02:00
Christian Hesse
85a7a16c15
backup-partition: log the warning just once
2024-10-09 14:30:29 +02:00
Christian Hesse
c955c94098
update list of contributors
2024-10-02 14:02:29 +02:00
Christian Hesse
98e62e3eac
update list of contributors
2024-10-01 21:42:20 +02:00
Ignacio Serrano
5135e836b8
mod/notification-ntfy: fix ntfy overrides
2024-10-01 20:32:37 +02:00
Christian Hesse
f75e701be3
log-forward: get last message from log...
...
... not only from matched massages.
2024-09-30 21:51:31 +02:00
Christian Hesse
f2576cf558
packages-update: give warning on lock in device-mode
...
RouterOS 7.17beta2 introduced some extra security measures, including
some to prevent downgrade attacks for the installation. Detect early
and exit with message and error.
https://help.mikrotik.com/docs/display/ROS/Device-mode
2024-09-30 16:23:50 +02:00
Christian Hesse
1776b8f50b
backup-partition: give warning on lock in device-mode
...
RouterOS 7.17beta2 introduced some extra security measures, including
some to prevent downgrade attacks for the installation. Thus switching
partitions (which can hold quite old installations) is denied by
device-mode now by default. Warn about that...
https://help.mikrotik.com/docs/display/ROS/Device-mode
2024-09-30 16:23:43 +02:00
Christian Hesse
c2c72818de
global-functions: $CertificateDownload: add another check...
...
... that the certificate is really available.
Turns out that mkcert.org ships certificates where OU or whatever
matches - that's not what we want.
2024-09-26 15:24:05 +02:00
Christian Hesse
60aa553219
hotspot-to-wpa-cleanup: only match access-list with mac-address
2024-09-25 11:01:40 +02:00
Christian Hesse
c708832b69
check-routeros-update: use $VersionToNum to calculate bitmask
2024-09-16 11:54:02 +02:00
Christian Hesse
734a80ba82
backup-partition: use $VersionToNum to calculate bitmask
2024-09-13 10:29:06 +02:00
Christian Hesse
41b19b045a
global-functions: $VersionToNum: support "zero"...
...
... to have a clean way to generate bitmasks.
[admin@mikrotik] > :put [ $VersionToNum 0.255zero0 ]
16711680
[admin@mikrotik] > :put 0x00ff0000
16711680
Once implemented everywhere the internal calculation could be
changed easily.
2024-09-13 10:22:06 +02:00
Christian Hesse
fe52bd4a0a
fw-addr-lists: use lists in JSON format for spamhaus.org
2024-09-11 10:49:04 +02:00
Christian Hesse
d23d05f2ea
fw-addr-lists: handle JSON format from spamhaus.org
...
Closes: https://github.com/eworm-de/routeros-scripts/issues/79
2024-09-11 10:48:45 +02:00
Christian Hesse
09dcd51feb
netwatch-dns: give warning on CRL use
2024-09-05 09:54:35 +02:00
Christian Hesse
9737bfa46a
certs: add poor man's check 😜
2024-09-04 11:55:02 +02:00
Christian Hesse
21fa46fdf6
certs: drop 'Baltimore CyberTrust Root'
2024-08-28 17:59:44 +02:00
Christian Hesse
f4c97559b3
fw-addr-lists: drop edrop.txt, which does no longer exist
2024-08-28 17:56:48 +02:00
Christian Hesse
917be4b425
fw-addr-lists: spamhaus.org requires 'GTS Root R4' now
...
Fixes: https://github.com/eworm-de/routeros-scripts/issues/78
2024-08-28 17:55:28 +02:00
Christian Hesse
48fd281c1d
certs: drop 'DigiCert Global Root CA'
2024-08-27 16:43:35 +02:00
Christian Hesse
90632f223a
doc/netwatch-dns: 'DigiCert Global Root G3' for Quad9
2024-08-27 10:59:51 +02:00
Christian Hesse
3e9a7ea75a
certs: add 'DigiCert Global Root G3'...
...
... for quad9.net which can be used for DoH:
$CertificateAvailable "DigiCert Global Root G3";
/ip/dns/set use-doh-server=https://9.9.9.9/dns-query verify-doh-cert=yes;
2024-08-27 09:38:13 +02:00
Christian Hesse
f17502d3d0
check-routeros-update: support switching to stable channel...
...
... with a feature update in testing channel.
2024-08-20 11:08:05 +02:00
Christian Hesse
d360cc05be
netwatch-dns: disable DoH if time not sync...
...
... as it is possible that time is off, DNS via DoH fails (cert invalid),
and finally syncing time fails due to failing DNS.
2024-08-19 15:10:37 +02:00
Christian Hesse
f952ea73e6
INITIAL-COMMANDS: match the certificate file name from Let's Encrypt website...
...
... and our README. 😜
2024-08-19 15:10:16 +02:00
Christian Hesse
342d459436
README: match the certificate file name from Let's Encrypt website...
...
... so import from manually downloaded and transferred file works
out of the box as well.
2024-08-19 15:06:32 +02:00
Christian Hesse
c28574b8f4
README: make the QR code a link
2024-08-19 10:35:37 +02:00
Christian Hesse
32474c751f
telegram-chat: drop extra conversion
...
The JSON parser was actually fixed in RouterOS 7.15beta4, but let's bump
the required version to next stable release instead.
2024-07-25 09:15:41 +02:00
Christian Hesse
a017f24224
daily-psk: drop workaround for old RouterOS
2024-07-25 09:15:41 +02:00
Christian Hesse
209c37664b
netwatch-notify: do not switch type when resolving
...
This requires RouterOS 7.15beta4, but let's bump the required version
to next stable release instead.
2024-07-25 09:15:41 +02:00
Christian Hesse
8f43b802bc
INITIAL-COMMANDS: drop command to remove certificate file...
...
... as this is done automatically with RouterOS 7.15rc1 and later.
2024-07-25 09:11:26 +02:00
Christian Hesse
22d93d0708
README: drop command to remove certificate file...
...
... as this is done automatically with RouterOS 7.15rc1 and later.
Not bumping the required RouterOS version (badge) here... Worst thing
that can happen is a stale certificate file left on storage.
2024-07-25 09:11:26 +02:00
Christian Hesse
511184a4a7
global-functions: $EitherOr: revert...
...
... but leave a comment.
2024-07-22 21:14:03 +02:00
Christian Hesse
8ea7805541
global-functions: $EitherOr: pass boolean value
...
Note that literal "true" or "false" (even without quotes) is converted
to string. So you may have to enclose it in parentheses for a boolean
value:
> :put [ :typeof [ $EitherOr true false ] ];
str
> :put [ :typeof [ $EitherOr (true) (false) ] ];
bool
2024-07-22 18:28:56 +02:00
Christian Hesse
380b3b3137
Merge branch 'line-breaks' into next
2024-07-16 14:19:17 +02:00
Christian Hesse
6fbafe76ba
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.14 anyway.
2024-07-16 13:50:22 +02:00
Christian Hesse
075a9bd6c4
mod/ipcalc: use :tocrlf
2024-07-16 13:50:22 +02:00
Christian Hesse
2b758b83fd
mod/inspectvar: use :tocrlf
2024-07-16 13:50:22 +02:00
Christian Hesse
2fd0d27447
global-functions: $Unix2Dos: use :tocrlf
2024-07-16 13:50:22 +02:00
Christian Hesse
8f75d542f3
global-functions: $PrettyPrint: use :tocrlf
2024-07-16 13:50:22 +02:00
Christian Hesse
8074305b92
global-functions: $Dos2Unix: use :tolf
2024-07-16 13:50:22 +02:00
Christian Hesse
f2ca62aed0
global-functions: $ScriptInstallUpdate: support storing with CRLF
...
Adding this in `global-config-overlay` make the scripts being stored
with CRLF line breaks:
:global ScriptUpdatesCRLF true;
Handle with care, I do not recommend it. Thus it's just a hidden
setting.
2024-07-16 13:50:22 +02:00
Christian Hesse
a26f78329a
ppp-on-up: support scripts with CRLF line breaks
2024-07-16 13:50:22 +02:00
Christian Hesse
ee928605df
news-and-changes: support scripts with CRLF line breaks
2024-07-16 13:50:22 +02:00
Christian Hesse
7cf0c5b205
capsman-download-packages: support scripts with CRLF line breaks
2024-07-16 13:50:22 +02:00
Christian Hesse
68f61ae622
global-functions: $ScriptInstallUpdate: allow CRLF on device
2024-07-16 13:50:22 +02:00
Christian Hesse
2d42fed621
global-functions: $ScriptInstallUpdate: forcibly convert to LF...
...
... to make sure we do not have unintended CRLF line breaks.
2024-07-16 13:50:22 +02:00
Christian Hesse
0101b56bff
README: use :tocrlf to convert global-config-overlay
2024-07-16 13:50:22 +02:00
Christian Hesse
f09fa83105
doc/mod/ssh-keys-import: drop hint on older RouterOS
2024-07-16 13:49:54 +02:00
Christian Hesse
3fd1896ad6
capsman-download-packages: support running several scripts...
...
... as it is possible to have more than just one providing
the functionality.
2024-07-11 08:57:09 +02:00
Christian Hesse
78dfc568c1
capsman-{download-packages,rolling-upgrade}: run matching script
...
It is possible to run old and new CAPsMAN on one system simultaneously
(... since RouterOS 7.13?). Thus it may make sense to have both variants
of these scripts installed, and we have to make sure to run the correct
one.
2024-07-11 08:45:53 +02:00
Christian Hesse
35d3c058b8
update list of contributors
2024-07-10 11:02:53 +02:00
Christian Hesse
25135b64e5
backup-partition: check that target is inactive
2024-07-08 10:05:11 +02:00
Christian Hesse
235737c232
backup-partition: check the fallback partition actually exists...
...
... and use its id for actions.
2024-07-08 10:04:57 +02:00
Christian Hesse
1bc6f9c45c
backup-partition: rename variable
2024-07-05 15:19:11 +02:00
Christian Hesse
64bc9f73f7
packages-update: run backups before package download
...
This reduces memory pressure, especially on device with very limited RAM
like mAP with its 64 MB.
2024-07-04 15:31:43 +02:00
Christian Hesse
eab9b28cd2
global-functions: $MkDir: enable tmpfs if disabled
2024-07-04 15:31:43 +02:00
Christian Hesse
ce1b635eb2
global-functions: $GetMacVendor: cert 'GTS Root R4'
2024-07-02 21:29:14 +02:00
Christian Hesse
f3f7d3edc0
check-certificates: limit scope for $CertNew...
...
... into block where certificate is replaced.
This should unbreak renewing with a certificate updated in place.
2024-06-25 07:58:10 +02:00
Christian Hesse
cdb553d39b
global-functions: $CertificateDownload: try fallback to mkcert.org
...
There's a nice API that allows to download certificate by exact common
name. Let's use that, as a fallback at least.
https://mkcert.org/
2024-06-21 16:04:05 +02:00
Christian Hesse
b35c7b6703
Merge branch 'root-certificates' into next
2024-06-21 15:57:04 +02:00
Christian Hesse
1a6812ef79
notify on changes regarding certificates
2024-06-21 15:57:04 +02:00
Christian Hesse
c4e8d01de1
certs: DigiCert TLS Hybrid ECC SHA384 2020 CA1 -> DigiCert Global Root CA
...
This is used by Cloudflare DNS Quard9 (9.9.9.9).
$CertificateAvailable "DigiCert Global Root CA";
/ip/dns/set use-doh-server=https://9.9.9.9/dns-query verify-doh-cert=yes;
2024-06-21 15:57:04 +02:00
Christian Hesse
a05efdc07f
certs: DigiCert Global G2 TLS RSA SHA256 2020 CA1 -> DigiCert Global Root G2
...
This is used by Cloudflare DNS (1.1.1.1).
$CertificateAvailable "DigiCert Global Root G2";
/ip/dns/set use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes;
2024-06-21 15:57:04 +02:00
Christian Hesse
588dacb5af
certs: Go Daddy Secure Certificate Authority - G2 -> Go Daddy Root Certificate Authority - G2
2024-06-21 15:57:04 +02:00
Christian Hesse
0ae3d31c58
certs: GTS CA 1C3 / GTS CA 1P5 -> GTS Root R1
2024-06-21 15:57:04 +02:00
Christian Hesse
a744508d4f
certs: Starfield Secure Certificate Authority - G2 -> Starfield Root Certificate Authority - G2
2024-06-21 15:57:04 +02:00
Christian Hesse
7553870f2a
certs: Cloudflare Inc ECC CA-3 -> Baltimore CyberTrust Root
2024-06-21 15:57:04 +02:00
Christian Hesse
944e125ef9
certs: Certum Domain Validation CA SHA2 -> Certum Trusted Network CA
2024-06-21 15:57:04 +02:00
Christian Hesse
b875d64724
certs: GlobalSign Atlas R3 DV TLS CA 2022 Q3 -> GlobalSign
2024-06-21 15:57:04 +02:00
Christian Hesse
3f51ebc125
certs: R3 / R10 -> ISRG Root X1
2024-06-21 15:57:04 +02:00
Christian Hesse
d1693a241b
certs: E1 / E5 -> ISRG Root X2
...
In the beginning of Let's Encrypt their root certificate ISRG Root X1
was not widely trusted, at least some older and/or mobile platforms were
missing that certificate in their root certificate store.
At that time Let's Encrypt was using an alternative chain of trust,
where a certificate was cross-signed with DST Root CA X3.
To make sure a valid chain of trust is available under all circumstances
a set of all certificates had to be supplied: both root vertificates
ISRG Root X1 & DST Root CA X3, and an intermediate certificate.
This was still true after DST Root CA X3 expired, as it could still be
used as a root anchor and was shipped by Let's Encrypt when requested. 🤪
This time is finally over, and we have a clean chain for trust ending in
ISRG Root X1 (or ISRG Root X2).
Well, actually it is the other way round... Let's Encrypt signs with
different tantamount intermediate certificates. There is not only E5, but
also E6 - and we can not know beforehand which one is used on renew.
So let's jetzt drop the intermediate certificates now, and rely on root
certificates only. We are perfectly fine with this these days.
Follow-up commits will do the same for *all* certificates.
The certificate is downloaded with:
curl -d '["ISRG Root X2"]' https://mkcert.org/generate/ | grep -v '^$' > certs/ISRG-Root-X2.pem
2024-06-21 15:55:45 +02:00
Christian Hesse
35f4ec0b1d
doc/mod/notification-matrix: drop certificate hint...
...
... as matrix.org switched to Let's Encrypt with ISRG Root X2.
2024-06-20 10:45:03 +02:00
Christian Hesse
76dd069fa6
Let's Encrypt changed their intermediate certificates
...
https://letsencrypt.org/2024/03/19/new-intermediate-certificates
https://letsencrypt.org/certificates/
But let's keep the old ones around for now, as some sites are still
using the old intermediate.
2024-06-19 09:29:23 +02:00
Christian Hesse
d01362dbaa
unattended-lte-firmware-upgrade: check on valid version first
2024-06-11 21:14:05 +02:00
Christian Hesse
1e1c9be945
unattended-lte-firmware-upgrade: drop the AT reset
...
The AT command to reset is specific to modem. So this worked for some
only... Let's just drop it, and update the log message.
2024-06-11 21:09:06 +02:00
Christian Hesse
2166f262c8
unattended-lte-firmware-upgrade: omit just another once
2024-06-11 21:07:17 +02:00
Christian Hesse
9c899f871d
backup-cloud: remove trailing spaces
...
How did I produce these!? 😳
2024-06-10 18:11:37 +02:00
netravnen
c2dd9de9b1
unattended-lte-firmware-upgrade: omit once
...
Omit `once` from the `/interface/lte/firmware-upgrade` command to make
sure it does acutally return a valid result.
Fixes #69
2024-06-10 12:20:24 +02:00
netravnen
0a085e6610
check-lte-firmware-upgrade: omit once
...
Omit `once` from the `/interface/lte/firmware-upgrade` command to make
sure it does acutally return a valid result.
2024-06-10 12:20:24 +02:00
Christian Hesse
cd4ac2c088
backup-cloud: log note on previous connection errors
2024-06-05 15:05:43 +02:00
Christian Hesse
e35ba4b06c
global-functions: $CleanName: no exception for dash...
...
... as we still want to deduplicate it when it is inside the input
string. This also unbreak certificate import for "Go Daddy Secure
Certificate Authority - G2" (and more)...
2024-06-01 23:06:24 +02:00
Christian Hesse
a97820d12a
telegram-chat: drop extra parenthesis
2024-05-25 19:55:13 +02:00
Christian Hesse
d664856326
telegram-chat: convert the message (command) to string
...
RouterOS 7.15beta4 fixed a bug in JSON parser:
*) console - do not convert string to array in ":deserialize" command;
Before that change commands with a comma caused very crazy issues. Let's
convert the message to a string. This does not give exactly the expected
result, but mitigates telegram-chat to explode.
A command like...
/ip/address/print proplist=address,network;
... is converted to...
/ip/address/print proplist=address;network;
... and results in:
Columns: ADDRESS
# ADDRESS
0 10.0.0.1/24
1 127.0.0.1/8
bad command name network (line 1 column 36)
2024-05-24 20:30:55 +02:00
Christian Hesse
96ea39b7cd
Merge branch 'backup-partition' into next
2024-05-23 12:52:33 +02:00
Christian Hesse
33a495beb7
backup-partition: news on support for copy-over
2024-05-23 12:27:23 +02:00
Christian Hesse
0a46fb536f
doc/backup-upload: fix link for backup-partition
2024-05-23 12:11:41 +02:00
Christian Hesse
affa118161
backup-partition: support copy before feature update
2024-05-23 12:11:41 +02:00
Christian Hesse
16831aa1e8
doc/backup-email: fix link for backup-partition
2024-05-23 12:11:41 +02:00
Christian Hesse
6cbe13a135
backup-partition: move code to a local function
2024-05-23 12:11:41 +02:00
Christian Hesse
c26e44ae46
doc/backup-cloud: fix link for backup-partition
2024-05-23 12:11:41 +02:00
Christian Hesse
51331ea2ac
backup-partition: support RouterOS copy-over...
...
... when run interactively from CLI.
2024-05-23 12:11:41 +02:00
Christian Hesse
787ae4440c
daily-psk: quote ssid and passphrase
2024-05-15 15:54:12 +02:00
Christian Hesse
169c1ab6e1
daily-psk: decrease indention in notification
2024-05-15 15:52:28 +02:00
Christian Hesse
ca7a592dfd
daily-psk: adopt syntax changes
...
RouterOS 7.15beta8 came with this change:
*) wifi - show inherited properties with "print" command (replaces "actual-configuration") and added "print config" for showing only configured values;
While the old code is bad syntax with RouterOS 7.15, the new code is
valid for older RouterOS, but produces different (and more or less
unexpected) results. 🥴
Let's use the new code, and add a check on the RouterOS version.
With old RouterOS this now sends the notification even if the interface
is disabled.
2024-05-15 15:52:28 +02:00
Christian Hesse
545fb5583a
global-functions: $IsTimeSync: initialize with uptime...
...
... to make sure the warning is not issued too early.
2024-05-15 15:52:28 +02:00
Christian Hesse
c87a7519fe
fw-addr-lists: add 'strongips' list from blocklist.de
2024-05-14 11:36:58 +02:00
Christian Hesse
2745597b93
global-functions: $IsTimeSync: add (one time) warning on failed ntp sync
2024-05-08 14:25:31 +02:00
Christian Hesse
fb7170f312
global-functions: $IsTimeSync: log just once
2024-05-08 12:30:13 +02:00
Christian Hesse
eae8dbbb37
global-functions: $WaitForFile: drop extra conversion
2024-04-29 23:02:48 +02:00
Christian Hesse
517ed7bf8c
global-functions: $WaitForFile: respect minimum delay
2024-04-29 23:02:48 +02:00
Christian Hesse
52ec6b7ea1
global-functions: $WaitForFile: use fewer steps
2024-04-29 23:02:48 +02:00
Christian Hesse
6ba1faca4c
telegram-chat: shorten the message
2024-04-29 23:02:48 +02:00
Christian Hesse
40f13b6ca4
mod/notification-telegram: format percentage italic
2024-04-29 23:02:48 +02:00
Christian Hesse
0fd1e506ba
mod/notification-telegram: format date & time italic
2024-04-29 23:02:48 +02:00
Christian Hesse
f8856ae742
mod/notification-telegram: support excluding characters from escaping...
...
... to support formatting in plain text.
Handle with care, this can break the request if done wrong!
2024-04-29 23:02:48 +02:00
Christian Hesse
4b6cd7ba29
mod/notification-telegram: use proper variable naming...
...
... in local escaping function.
2024-04-29 23:02:48 +02:00
Christian Hesse
d6e315580b
mod/notification-telegram: capitalize Telegram in message
2024-04-29 23:02:48 +02:00
Christian Hesse
e7cdb2d7f4
mod/notification-matrix: format date & time italic
2024-04-29 23:02:48 +02:00
Christian Hesse
755db5d66d
global-functions: $CleanName: do not start with a dash
2024-04-29 23:02:48 +02:00
Christian Hesse
b0f58696f3
mod/ssh-keys-import: remove temporary directory
2024-04-29 23:02:48 +02:00
Christian Hesse
f1ad808734
mod/ssh-keys-import: create directory later
2024-04-29 23:02:48 +02:00
Christian Hesse
4006d07222
global-functions: $FetchHuge: remove temporary directory
2024-04-29 23:02:48 +02:00
Christian Hesse
57ebcfb41c
backup-cloud: retry on error...
...
Let's see if brute force helps. 🤪
2024-04-29 23:02:48 +02:00
Christian Hesse
5f1656b7ce
backup-cloud: clean up and simplify code
2024-04-29 18:03:40 +02:00
Christian Hesse
505074e6d3
backup-cloud: no early exit...
...
... as we want to make sure the directory (and its content) is removed.
2024-04-29 18:03:40 +02:00
Christian Hesse
b3b7643661
backup-upload: no early exit...
2024-04-29 18:03:40 +02:00
Christian Hesse
db1faf1091
backup-upload: remove temporary directory
2024-04-23 14:22:24 +02:00
Christian Hesse
63786b7814
netwatch-notify: log to debug...
...
... instead of discarding the message completely.
2024-04-23 10:44:59 +02:00
Christian Hesse
b0e4449e4f
README: show fingerprints in output
...
This is not scrictly necessary, as we filter by fingerprint already...
But it gives better overview and feeling.
2024-04-19 13:17:09 +02:00
Christian Hesse
de8da38a0c
README: remove left over certificate file
...
But use find as RouterOS 7.15rc1 removes it automatically.
2024-04-19 13:17:09 +02:00
Christian Hesse
e42f8843bd
INITIAL-COMMANDS: remove the certificate file with find
...
Required as RouterOS 7.15rc1 removes it automatically.
2024-04-19 13:17:01 +02:00
Christian Hesse
0f2a4aedab
global-functions: $CertificateDownload: remove with find...
...
... to make sure this does not break when the file does no longer
exist. Starting with RouterOS 7.15rc1 the file is automatically
removed on import.
2024-04-19 11:46:17 +02:00
Christian Hesse
b0cd53f813
netwatch-notify: allow to suppress resolve failure
2024-04-19 11:25:18 +02:00
Christian Hesse
ee54956a69
mod/notification-telegram: string protocol for display
2024-04-19 09:09:13 +02:00
Christian Hesse
8cd03167ca
mod/notification-matrix: string protocol for display
2024-04-19 09:04:08 +02:00
Christian Hesse
6fd0becf64
global-functions: introduce $ProtocolStrip
2024-04-19 08:59:51 +02:00
Christian Hesse
b50a5b294a
mod/notification-matrix: ... and more double escaping
2024-04-18 21:47:50 +02:00
Christian Hesse
3a36db6de8
mod/notification-matrix: fix double escaping
...
That was introduced with 2a232ad2f5 when
switching to :serialize...
2024-04-18 09:04:34 +02:00
Christian Hesse
8c1543a402
certificate-renew-issued: use single quotes
2024-04-15 09:11:25 +02:00
Christian Hesse
e1781fb805
global-functions: $CertificateDownload: use single quotes
2024-04-15 09:11:25 +02:00
Christian Hesse
7aa5059f6d
global-functions: $CertificateAvailable: use single quotes
2024-04-15 09:11:25 +02:00
Christian Hesse
5736ecebc5
gps-track: use custom user agent string
2024-04-15 09:11:25 +02:00
Christian Hesse
d31afc9ec3
gps-track: generate JSON with :serialize
2024-04-15 09:11:25 +02:00
Christian Hesse
2a232ad2f5
mod/notification-matrix: generate JSON with :serialize
2024-04-15 09:11:25 +02:00
Christian Hesse
9dfa11eac5
mod/notification-matrix: use custom user agent string
2024-04-15 09:11:25 +02:00
Christian Hesse
fb865ba114
mod/notification-ntfy: use custom user agent string
2024-04-15 09:11:25 +02:00
Christian Hesse
ca2e5f2a01
mod/notification-ntfy: support basic auth
...
Closes #59
2024-04-15 09:11:17 +02:00
Christian Hesse
5f76c245b0
global-functions: $ScriptFromTerminal: check multiple invocations...
...
... and return false.
We can not tell which job is us... So better safe than sorry.
2024-04-11 14:03:43 +02:00
Christian Hesse
6db3355858
global-functions: $ScriptLock: break long lines
2024-04-11 13:41:49 +02:00
Christian Hesse
e53c31e9e6
global-functions: $ScriptLock: degrade message to debug
2024-04-11 13:41:49 +02:00
Christian Hesse
9e4749a5b7
mod/notification-telegram: $SendTelegram: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
9e2b72ccdc
mod/notification-ntfy: $SendNtfy: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
a9b9f853ff
mod/notification-matrix: $SendMatrix: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
012d259ca1
mod/notification-email: $SendEMail: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
c5a5fb5836
global-functions: $SendNotification: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
3015743b19
global-functions: $HumanReadableNum: indicate binary base...
...
... and update scripts to match the change.
2024-04-07 22:51:24 +02:00
Christian Hesse
36cf4d028b
global-functions: drop $LogPrintExit2
2024-04-07 22:51:24 +02:00
Christian Hesse
009674b5bc
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse
d430d32a30
Merge branch 'fw-addr-lists' into next
2024-04-07 22:51:24 +02:00
Christian Hesse
c4d2ea19dd
fw-addr-lists: break long lines
2024-04-07 22:51:24 +02:00
Christian Hesse
19c52ed2a7
fw-addr-lists: show count of active addresses
2024-04-07 22:51:24 +02:00
Christian Hesse
491d85000d
fw-addr-lists: human readable numbers for counts
2024-04-07 22:45:54 +02:00
Christian Hesse
70cc1ff53b
fw-addr-lists: rework log messages, always include list name
2024-04-07 22:45:34 +02:00
Christian Hesse
af6556bdba
fw-addr-lists: add debug message on successful download
2024-04-07 22:44:34 +02:00
Christian Hesse
4b6d0c02f1
fw-addr-lists: try with less regexp matches
2024-04-07 22:21:10 +02:00
Christian Hesse
c3809f240d
fw-addr-lists: use $FetchHuge
2024-04-07 22:21:10 +02:00
Christian Hesse
fadc59c562
Merge branch 'FetchHuge' into next
2024-04-06 01:13:27 +02:00
Christian Hesse
402f847db2
global-functions: $FetchHuge: remove file on failed download
2024-04-06 00:47:21 +02:00
Christian Hesse
61ee5cbd6c
global-functions: $FetchHuge: make sure to work with clean file names
2024-04-06 00:47:21 +02:00
Christian Hesse
2edf983698
global-functions: $FetchHuge: control check-certificate with parameter
2024-04-06 00:47:16 +02:00
Christian Hesse
ab6fd88558
global-functions: $FetchHuge: use custom user agent string
2024-04-06 00:45:50 +02:00
Christian Hesse
5323052290
global-functions: introduce $FetchHuge
2024-04-06 00:43:39 +02:00
Christian Hesse
86d0f71acb
README: update screenshot on lease script setup
2024-04-04 21:15:07 +02:00
Christian Hesse
d86b7dcfcc
update list of contributors
2024-04-04 21:13:37 +02:00
netravnen
1d8347d8ea
README: add start-time & change interval in scheduler example
...
Set the interval to once a day, Instead of every 1 hour.
Add start-time to start-up. Thereby introducing randomization based on when
the user last rebooted there device. As the interval is counted based on last
boot time.
2024-04-04 21:13:37 +02:00
Christian Hesse
444f56f9b4
update list of contributors
2024-04-04 19:11:09 +02:00
Christian Hesse
6f68406803
mod/notification-matrix: add new configuration snippet...
...
... instead of appending to global-config-overlay.
2024-04-02 00:14:39 +02:00
Christian Hesse
e107247c16
Merge branch 'deserialize' into next
2024-04-02 00:08:44 +02:00
Christian Hesse
4db91ec16e
global-functions: drop $ParseJson
2024-04-02 00:08:44 +02:00
Christian Hesse
c01a424f4f
telegram-chat: read file content...
...
... instead of getting it. This lifts the size limit, though we are
still limited by Telegram message size.
This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse
bb237dcef3
mod/notification-matrix: use :deserialize ...
...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse
29bcbc4db9
mod/notification-telegram: use :deserialize ...
...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse
7e5010a608
telegram-chat: use :deserialize ...
...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse
15ca80fbf7
Merge branch 'aprils-fool'
2024-03-31 23:06:26 +02:00
Christian Hesse
1e47c909f0
news on April's Fool! 🥳 ️
2024-03-31 23:05:33 +02:00
Christian Hesse
bdcf5b3275
news on charge and fees
2024-03-31 21:48:47 +02:00
Christian Hesse
4df1468e25
global-functions: rename $FetchUserAgent -> $FetchUserAgentStr
...
... to make sure the function does not clash with the variable we had before,
as this causes issue with news and changes notification.
2024-03-29 11:11:17 +01:00
Christian Hesse
bbdc9c65f5
global-functions: $HumanReadableNum: set declared function only
2024-03-27 23:02:38 +01:00
Christian Hesse
acf8e88db2
global-functions: $AlignRight: set declared function only
2024-03-27 23:02:38 +01:00
Christian Hesse
1d816d94f6
global-functions: $FetchUserAgent: set declared function only
2024-03-27 23:02:22 +01:00
Christian Hesse
7212d8bd23
packages-update: do not reboot when scheduled
2024-03-27 22:17:06 +01:00
Christian Hesse
43ecec854f
global-functions: $LogPrintOnce: detect and warn on possible crash
2024-03-27 08:32:49 +01:00
Christian Hesse
bd2301a28c
global-functions: $LogPrintOnce: indicate action via return
2024-03-26 13:59:03 +01:00
Christian Hesse
9ec8b9c03f
fw-addr-lists: one more interation on download failure...
...
... with even more delay. This script is called with long interval from
scheduler, so should not be an issue.
2024-03-26 08:37:07 +01:00
Christian Hesse
f72aadfc59
telegram-chat: note active state when answering broadcast
2024-03-21 21:11:38 +01:00
Christian Hesse
cc81e55649
telegram-chat: improve readability with symbols
2024-03-21 14:28:23 +01:00
Christian Hesse
6628d9f966
netwatch-notify: pass script name into local functions
2024-03-20 13:59:44 +01:00
Christian Hesse
81f1d9aa99
check-certificates: pass script name into local function
2024-03-20 13:55:55 +01:00
Christian Hesse
6845eb69b3
global-config: put example fw-addr-lists into repository
2024-03-20 13:34:37 +01:00
Christian Hesse
be231ce4f3
global-config: prepare a (commented) address-list for Mikrotik
...
This is AS51894: https://bgp.he.net/AS51894
2024-03-18 13:46:46 +01:00
Christian Hesse
079249f3d7
check-routeros-update: use custom user agent string
2024-03-18 09:31:40 +01:00
Christian Hesse
cd371b69a6
global-functions: $CertificateDownload: download via clean name...
...
... and rename certificates in repository.
2024-03-16 23:34:33 +01:00
Christian Hesse
eb7919c1d8
global-functions: generate user agent string in function...
...
... and add the caller and my shortened url.
2024-03-16 23:10:47 +01:00
Christian Hesse
576a2c97cf
global-functions: $LogPrintExit2: add deprecation warning
2024-03-15 14:42:50 +01:00
Christian Hesse
2cf4f333d4
README: add QR code with (shortened) upstream url
2024-03-15 11:26:44 +01:00
Christian Hesse
eb03a4608b
global-functions: $ScriptInstallUpdate: use shorter url
2024-03-15 10:05:32 +01:00
Christian Hesse
9b4e5ce369
global-functions: $SymbolByUnicodeName: add these for later use
2024-03-14 22:12:03 +01:00
Christian Hesse
3d4a14d449
netwatch-notify: pass link to notification
...
This is pass verbatim below the notification text.
2024-03-13 09:02:04 +01:00
Christian Hesse
ccfbabde5e
mod/notification-email: clean name for display name
2024-03-12 22:36:29 +01:00
Christian Hesse
c016a6ef47
mod/notification-email: add display name with identity (if not given)
2024-03-12 22:36:29 +01:00
Christian Hesse
44fc69e82d
packages-update: drop RouterOS version check...
...
... and allow all updates again. This requires RouterOS 7.13.
2024-03-12 21:39:38 +01:00
Christian Hesse
b829ec1fc9
mod/ssh-keys-import: do not exit with error
2024-03-12 20:37:57 +01:00
Christian Hesse
0e2e7efdb2
mod/scriptrunonce: do not exit with error
2024-03-12 20:37:57 +01:00
Christian Hesse
c2dc8a0837
mod/notification-matrix: do not exit with error
2024-03-12 20:37:57 +01:00
Christian Hesse
525e4325da
mod/bridge-port-vlan: do not exit with error
2024-03-12 20:37:57 +01:00
Christian Hesse
39dd1f2a63
mod/bridge-port-to: do not exit with error
2024-03-12 20:37:57 +01:00
Christian Hesse
ba2df80f07
Merge branch 'LogPrint' into next
2024-03-12 20:37:57 +01:00
Christian Hesse
19802c0b69
global-functions: $LogPrintOnce: drop support for exit
...
This is not widely adopted or used, so let's just drop it - no
compatibility.
2024-03-12 20:37:57 +01:00
Christian Hesse
242ecef012
update-tunnelbroker: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
76f65c13d7
global-functions: add architecture in user-agent string
2024-03-12 20:37:57 +01:00
Christian Hesse
9a21f4d3e3
update-gre-address: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
1c61547284
global-config: merge loading overlay and snippets
2024-03-12 20:37:57 +01:00
Christian Hesse
19fb5c5801
telegram-chat: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
be1aeccbe5
sms-forward: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
5a487d15c2
sms-action: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
88d4c0aff8
ppp-on-up: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
8444e5f270
packages-update: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
ad65b62c1c
ospf-to-leds: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
030105cc2e
netwatch-notify: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
8ea24540c4
netwatch-dns: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
e3d55819ee
mode-button: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
eedf092930
mod/ssh-keys-import: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
8c62c31604
mod/scriptrunonce: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
699f09c282
mod/notification-telegram: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
fb88521ed5
mod/notification-ntfy: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
279993e965
mod/notification-matrix: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
9b8d3f7970
mod/notification-email: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
bdcf43a6f6
mod/bridge-port-vlan: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
b7983d18c4
mod/bridge-port-to: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
f8c79abd38
log-forward: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
29a72e54dc
lease-script: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
1f938efcaf
ipv6-update: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
56e39123b9
ipsec-to-dns: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
369af47374
hotspot-to-wpa: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
d93ffb9cb2
hotspot-to-wpa-cleanup: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
5c567604ff
gps-track: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
9dd1b768ee
global-functions: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
6715696ba1
fw-addr-lists: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
c8e4cb0526
firmware-upgrade-reboot: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
5c775fdb3f
dhcp-to-dns: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
5638bdcc2d
dhcp-lease-comment: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
4ab8dbd774
daily-psk: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
5016f4d28c
collect-wireless-mac: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
a996bdac2a
check-routeros-update: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
7f154a178b
check-lte-firmware-upgrade: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
463393647f
check-health: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
3625808749
check-certificates: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
7c38b9a35c
certificate-renew-issued: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
12435ff1c5
capsman-rolling-upgrade: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
e40da1e7e4
capsman-download-packages: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
ca822e1358
backup-upload: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
b879f8fef2
backup-partition: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
4b69144ee4
backup-email: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
ac3b755fdc
backup-cloud: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
1feeed145d
global-functions: introduce $LogPrint, deprecate $LogPrintExit2
2024-03-12 20:37:57 +01:00
Christian Hesse
a7cb3e520a
global-config: support loading snippets
...
This adds support for loading snippets, which need a name starting with
"global-config-overlay.d/". This allows to split off configuration if
desired.
2024-03-12 20:36:21 +01:00
Christian Hesse
e39e8a0083
backup-upload: pass failure to packages-update
2024-03-12 15:27:15 +01:00
Christian Hesse
51b00181cf
backup-partition: pass failure to packages-update
2024-03-12 15:27:15 +01:00
Christian Hesse
5f41bd1c1e
backup-email: pass failure to packages-update
2024-03-12 15:27:15 +01:00
Christian Hesse
c82f776632
backup-cloud: pass failure to packages-update
2024-03-12 15:27:15 +01:00
Christian Hesse
3fcdd395fe
packages-update: support passing backup failure
2024-03-12 15:27:15 +01:00
Christian Hesse
ffa31c7ad7
packages-update: increate log severity on canceled non-interactive update
2024-03-12 15:27:15 +01:00
Christian Hesse
6fd39bd3c5
Merge branch 'do-with-on-error' into next
2024-03-12 15:27:15 +01:00
Christian Hesse
b86d631486
doc/telegram-chat: show usage of persistent ids
2024-03-12 15:27:15 +01:00
Christian Hesse
f0856c264e
update-tunnelbroker: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
a0a2046373
Merge branch 'doc-badges' into next
2024-03-12 15:27:15 +01:00
Christian Hesse
febd13af13
update-gre-address: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
09393d3ef5
check-certificates: handle formatting of self signed cert
2024-03-12 15:27:15 +01:00
Christian Hesse
4061661a20
doc/update-tunnelbroker: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
738dd11929
telegram-chat: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
53ff8fbf97
check-certificates: exit block on failed import
2024-03-12 15:27:15 +01:00
Christian Hesse
a0a964fa18
doc/update-gre-address: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
ac38e16944
sms-forward: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
a7cd7d9500
Merge branch 'drop-wifiwave2' into next
2024-03-12 15:27:15 +01:00
Christian Hesse
11832a7651
doc/unattended-lte-firmware-upgrade: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
e19a48682e
sms-action: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
050ccd490e
backup-cloud: add a short delay
...
Not sure it helps, but chances are...
2024-03-12 15:27:15 +01:00
Christian Hesse
83dbcfecd5
news on wifiwave2 EOL
2024-03-12 15:27:15 +01:00
Christian Hesse
2ac18b1cdf
doc/telegram-chat: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
1db1a943e2
ppp-on-up: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
955ee8499b
backup-cloud: catch error with :execute workaround
...
Catching a runtime error here fails... So let's try a workaround
with :execute...
2024-03-12 15:27:15 +01:00
Christian Hesse
d513ea61cf
hotspot-to-wpa-cleanup: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
8a439ea15c
doc/super-mario-theme: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
1012d9fc51
packages-update: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
010bea56dc
telegram-chat: error when making directory fails
2024-03-12 15:27:15 +01:00
Christian Hesse
0385c032e2
hotspot-to-wpa: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
3995e85ccf
doc/sms-forward: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
850e8db975
ospf-to-leds: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
ed790dea6e
mod/notification-email: remove extra spaces
2024-03-12 15:27:15 +01:00
Christian Hesse
074e70ee51
dhcp-lease-comment: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
42d8fed577
doc/sms-action: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
18ed12e3f7
netwatch-notify: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
4e1362aacc
mod/inspectvar: remove extra spaces
2024-03-12 15:27:15 +01:00
Christian Hesse
decb8fb17a
daily-psk: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
2038480b00
doc/ppp-on-up: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
8fcb8efbea
netwatch-dns: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
0d35a18c71
global-wait: drop unused variable
2024-03-12 15:27:15 +01:00
Christian Hesse
b414608329
collect-wireless-mac: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
4ff543e629
doc/packages-update: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
4dd6bdef31
mode-button: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
c462c0b598
Merge branch 'no-error-on-exit' into next
2024-03-12 15:27:15 +01:00
Christian Hesse
e8c5585cc7
capsman-rolling-upgrade: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
6786fbb292
doc/ospf-to-leds: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
52f54baea0
log-forward: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
ada9153636
global-functions: $ScriptLock: fix wording...
...
... as this does (no longer) abort.
2024-03-12 15:27:15 +01:00
Christian Hesse
34620ba53c
capsman-download-packages: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
cdc0db3b81
doc/netwatch-notify: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
6546e7f085
lease-script: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
1e8918fdaa
global-functions: $ScriptLock: do not exit from global function
2024-03-12 15:27:15 +01:00
Christian Hesse
9ecc3c4c49
accesslist-duplicates: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
fe83328a57
doc/netwatch-dns: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
6f91c97b7f
ipv6-update: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
56e97dd60c
global-functions: $DownloadPackage: do not exit from global function
2024-03-12 15:27:15 +01:00
Christian Hesse
d799edfc17
Makefile: drop support for wifiwave2
2024-03-12 15:27:15 +01:00
Christian Hesse
2170505beb
doc/mode-button: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
341e84682c
ipsec-to-dns: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
4004d713aa
sms-forward: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
1934c63512
doc/mod/ssh-keys-import: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
54638924e4
hotspot-to-wpa: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
ec90695e8f
packages-update: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
564a288c4c
doc/mod/scriptrunonce: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
b622f47d65
hotspot-to-wpa-cleanup: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
c6639518bc
lease-script: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
4313de6c68
doc/mod/notification-telegram: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
47b67af226
gps-track: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
3acdebad04
hotspot-to-wpa: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
db211a9804
doc/mod/notification-ntfy: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
c1362f54e5
fw-addr-lists: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
ab0b2e27c3
firmware-upgrade-reboot: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
4a08c09129
doc/mod/notification-matrix: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
894c36fc15
firmware-upgrade-reboot: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
184a769eeb
check-routeros-update: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
e2823d8746
doc/mod/notification-email: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
ef5972e9f0
dhcp-to-dns: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
5af8b95444
netwatch-dns: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
732b86bb86
doc/mod/ipcalc: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
0d1c4cece2
dhcp-lease-comment: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
6712cc101d
check-health: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
73d56b3d5f
doc/mod/inspectvar: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
f79206a9b8
daily-psk: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
7fa03ab70e
log-forward: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
9cd84ddffe
doc/mod/bridge-port-vlan: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
4ada2e7678
collect-wireless-mac: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
202096c610
doc/mod/bridge-port-to: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
7110b29cba
check-routeros-update: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
b6983c8615
doc/log-forward: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
b78556ca41
check-lte-firmware-upgrade: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
91e94c6e38
doc/leds-mode: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
7bf36fa8a5
check-health: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
fd1cb3131d
doc/lease-script: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
b1e37c2734
check-certificates: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
8b5c919d8c
doc/ipv6-update: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
78f65ead59
certificate-renew-issued: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
c645ab5100
doc/ipsec-to-dns: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
25c9bff6f3
capsman-rolling-upgrade: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
ac51956c3f
doc/ip-addr-bridge: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
03309d4fdb
capsman-download-packages: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
b45b7606a9
doc/hotspot-to-wpa: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
8d020a4de8
backup-upload: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
e2f6401a15
doc/gps-track: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
b8bd64bac5
backup-partition: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
8ab1df5960
doc/global-wait: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
3eb8fad5ae
backup-email: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
900e868caf
doc/fw-addr-lists: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
15c68c5660
backup-cloud: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
2bd2b9b6e3
doc/firmware-upgrade-reboot: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
d0af9d62ea
accesslist-duplicates: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
b178e47d6d
doc/dhcp-to-dns: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
16b318832a
doc/dhcp-lease-comment: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
d1549712ab
doc/daily-psk: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
6737c291ca
doc/collect-wireless-mac: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
b9b1197c1a
doc/check-routeros-update: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
a2afb1d5dc
doc/check-lte-firmware-upgrade: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
f68ee9bc00
doc/check-health: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
71ce8709ca
doc/check-certificates: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
0c46668e2e
doc/certificate-renew-issued: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
50694ec512
doc/capsman-rolling-upgrade: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
9deaed7350
doc/capsman-download-packages: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
a92715ea31
doc/backup-upload: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
acc8cdf8ca
doc/backup-partition: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
7b527840b1
doc/backup-email: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
4af1092272
doc/backup-cloud: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
f9fb61ec49
doc/accesslist-duplicates: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
13d0075a48
INITIAL-COMMANDS: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
120d4780fd
CONTRIBUTIONS: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
4f3cf3656c
BRANCHES: add badges
2024-03-12 15:27:15 +01:00
Christian Hesse
d46156ad92
global-functions: use variable name $ScriptName
2024-03-12 15:27:14 +01:00
Christian Hesse
771ca341b0
Merge branch 'main-function' into next
2024-03-04 21:40:34 +01:00
Christian Hesse
698360f037
update-tunnelbroker: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
ad623f069e
update-gre-address: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
6fd745fc0f
telegram-chat: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
6b1c6a7119
sms-forward: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
721b6c783b
sms-action: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
d6077025b2
ppp-on-up: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
492edb4263
packages-update: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
09ea05d989
ospf-to-leds: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
3c76738915
netwatch-notify: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
458fd1fdcd
netwatch-dns: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
400516295e
mode-button: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
50e1c45880
log-forward: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
49650d8b14
lease-script: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
d6ea66ccd3
ipv6-update: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
85dbe3a868
ipsec-to-dns: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
a36ec397d6
hotspot-to-wpa: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
2bf02cf085
hotspot-to-wpa-cleanup: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
a0fc6c30ef
gps-track: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
480ad0c196
fw-addr-lists: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
cf986caf8d
firmware-upgrade-reboot: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
29f544d18d
dhcp-to-dns: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
82ec11f2fc
dhcp-lease-comment: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
31da6b8bd5
daily-psk: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
e2b87c8634
collect-wireless-mac: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
22eb74cb3a
check-routeros-update: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
450ea2fa48
check-lte-firmware-upgrade: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
80180b432d
check-health: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
fc3fad5e87
check-certificates: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
2d112c0b33
certificate-renew-issued: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
4cbf9fab74
capsman-rolling-upgrade: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
c2df671d6f
capsman-download-packages: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
1c26dde356
backup-upload: move code into function
2024-03-04 16:34:01 +01:00
Christian Hesse
0ded98c9e2
backup-partition: move code into function
2024-03-04 16:33:57 +01:00
Christian Hesse
19fb7b61ea
backup-email: move code into function
2024-03-04 16:33:54 +01:00
Christian Hesse
33d129496c
backup-cloud: move code into function
2024-03-04 16:33:51 +01:00
Christian Hesse
efc2e75f01
accesslist-duplicates: move code into function
2024-03-04 16:33:45 +01:00
Christian Hesse
64aa6ef124
netwatch-notify: check one after another
...
This can bring an extra delay, but saves a check in most cases.
2024-03-03 20:32:23 +01:00
Christian Hesse
4869d74edf
netwatch-notify: handle IPv6 / AAAA resolving
2024-03-02 22:08:40 +01:00
Christian Hesse
50a6914907
netwatch-notify: (mis-)use firewall address-list for lookup...
...
... and drop the racy code querying dns cache. 😁
2024-03-01 12:30:18 +01:00
Christian Hesse
20d1ad17d7
Merge branch 'fw-addr-lists' into next
2024-02-29 14:22:07 +01:00
Christian Hesse
62790ae091
fw-addr-lists: add support for IPv6
2024-02-29 14:21:58 +01:00
Christian Hesse
0125f102b4
fw-addr-lists: rename variable
2024-02-29 14:21:58 +01:00
Christian Hesse
31966479dc
fw-addr-lists: update wording
2024-02-29 14:21:58 +01:00
Christian Hesse
1687e2780f
fw-addr-lists: get timeout from loop
2024-02-29 14:21:58 +01:00
Christian Hesse
b9e0ffac1d
Merge branch 'netwatch-notify' into next
2024-02-29 14:21:46 +01:00
Christian Hesse
a924de274c
netwatch-notify: handle CNAME to multiple records
2024-02-28 23:01:43 +01:00
Christian Hesse
6f29c640e4
netwatch-notify: move check in DNS cache to local function
2024-02-28 23:01:43 +01:00
Christian Hesse
01d2c3ea7e
netwatch-notify: try another workaround
...
The last one did not make it... Perhaps the cache just needs
a moment to settle?
2024-02-28 23:01:43 +01:00
Christian Hesse
93bed1b081
netwatch-notify: work around race condition
...
This used to crash every now and then with:
> script;error script error: no such item (4)
I guess this is caused by querying the dns cache just exactly when a
record expires. The chance is maximized: The script is started by
scheduler every minute, and the record's ttl is a multiple of a minute.
Let's query records that are not about to expire immediately, and
try again.
2024-02-28 23:01:43 +01:00
Christian Hesse
c2f5272f18
netwatch-notify: restore the check 🥴
...
This reverts commit 28da1da49e275fef6089a103edf6c158bbff317f.
Chances are that we have to resolve a CNAME, that does not match when
querying the cache.
How to handle CNAME do multiple A records? 🤨
2024-02-28 23:01:43 +01:00
Christian Hesse
45875ad68e
netwatch-notify: simplify the check
2024-02-28 23:01:43 +01:00
Christian Hesse
b1199ca50a
netwatch-notify: ... and switch state to "unknown" on host update
2024-02-28 23:01:43 +01:00
Christian Hesse
1344694708
netwatch-notify: handle status "down" in its own condition...
...
... instead of else-branch.
This makes sure to skip hosts that just became "unknown".
(Possible soon!)
2024-02-28 23:01:43 +01:00
Christian Hesse
1c2048628d
netwatch-notify: use logical operator, no literal "and"
...
Just like we do everywhere else.
2024-02-28 23:01:43 +01:00
Christian Hesse
471e0ead05
doc/netwatch-notify: update for multiple records
2024-02-28 23:01:00 +01:00
Christian Hesse
b286cb6803
netwatch-notify: do not update with record in cache
...
Using `:resolve` we have just one address, but chances are several
records do exist. These end up in cache, so we are happy to find them
there - no need to update then.
2024-02-19 11:03:17 +01:00
Christian Hesse
872abbea7d
doc/unattended-lte-firmware-upgrade: more devices supported...
2024-02-08 21:02:06 +01:00
Christian Hesse
860acffbdb
unattended-lte-firmware-upgrade: add error handling
2024-02-08 21:02:06 +01:00
Christian Hesse
e83154c9c3
check-lte-firmware-upgrade: give more detailed infos on modem
2024-02-08 20:54:02 +01:00
Christian Hesse
643f15a0b9
introduce BRANCHES info
2024-02-02 21:06:11 +01:00
Christian Hesse
53b09529a8
doc/backup-partition: add warning about RouterOS version
2024-02-02 12:53:45 +01:00
Christian Hesse
c21da0454b
backup-partition: make sure to remove the scheduler on failure
2024-02-02 12:53:45 +01:00
Christian Hesse
7b30af90b7
backup-partition: get the actual real name...
...
... to prevent confusion after restore.
2024-02-02 12:53:45 +01:00
Christian Hesse
0694d9af3e
backup-partition: add a scheduler in backup...
...
... that logs a warning when backup is booted.
2024-02-02 12:53:45 +01:00
Christian Hesse
77ef9b2c95
backup-partition: use plain variable for name
2024-02-02 10:40:59 +01:00
Christian Hesse
ed00c0877f
INITIAL-COMMANDS: link initial commands above
2024-02-01 15:39:39 +01:00
Christian Hesse
64e53a7d32
packages-update: schedule reboot at pre-calculated time
2024-01-31 23:16:41 +01:00
Christian Hesse
461f7b6e76
packages-update: move output and logging to local function...
...
... and pass script name for clean logging.
2024-01-31 23:10:15 +01:00
Christian Hesse
237dcd7261
packages-update: prepare message and mention time zone
2024-01-31 23:10:15 +01:00
Christian Hesse
c1568a33dd
backup-upload: use $CleanName
2024-01-31 23:10:15 +01:00
Christian Hesse
d0ff07b3cc
backup-email: use $CleanName
2024-01-31 23:10:15 +01:00
Christian Hesse
c5714e5dc8
dhcp-to-dns: use $CleanName
2024-01-31 23:10:15 +01:00
Christian Hesse
821dd02e5e
global-functions: $CertificateNameByCN: use $CleanName
2024-01-31 23:10:15 +01:00
Christian Hesse
09988d9892
global-functions: introduce $CleanName
2024-01-31 23:10:15 +01:00
Christian Hesse
b548ffee59
global-functions: $MkDir: drop declaration of unused functions
2024-01-31 23:10:15 +01:00
Christian Hesse
ed28ade712
global-functions: $IsDNSResolving: drop declaration of unused function
2024-01-31 23:10:15 +01:00
Christian Hesse
fb463419fe
check-certificates: always quote the certificate name
2024-01-30 15:00:31 +01:00
Christian Hesse
5b6ed4216e
global-functions: $ScriptInstallUpdate: warn just once...
...
... for every script on required RouterOS version.
2024-01-30 07:18:38 +01:00
Christian Hesse
07cdeadf43
log-forward: use $MAX
2024-01-30 07:10:51 +01:00
Christian Hesse
777b2ba7a2
Merge branch 'jobname' into next
2024-01-30 00:52:21 +01:00
Christian Hesse
b679eefcf7
update-tunnelbroker: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
af7031cc56
update-gre-address: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
24b681761b
telegram-chat: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
6e54c7c30b
sms-forward: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
58748eea3c
sms-action: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
791b04bbe4
ppp-on-up: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
322466fd00
packages-update: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
cbdfa98576
ospf-to-leds: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
45fda69d3b
netwatch-notify: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
80f587ddb5
netwatch-dns: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
5d40075e44
mode-button: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
4653c94f3f
log-forward: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
b4d666ef1d
lease-script: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
19e759d8fb
ipv6-update: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
aca18f9cc2
ipsec-to-dns: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
79660f10db
hotspot-to-wpa-cleanup: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
9cf536f891
hotspot-to-wpa: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
7d47963c7a
gps-track: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
8afbd5bff5
global-wait: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
4b791b7769
global-functions: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
afd779c0bb
fw-addr-lists: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
c9fcd3419f
firmware-upgrade-reboot: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
6c52bd692b
dhcp-to-dns: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
492d3a65a7
dhcp-lease-comment: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
3f8d680fe8
daily-psk.capsman: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
02d8455a87
collect-wireless-mac: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
3412ab771f
check-routeros-update: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
08bd884810
check-lte-firmware-upgrade: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
5319577035
check-health: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
a43202326b
check-certificates: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
60b2186287
certificate-renew-issued: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
dfeb6b6d61
capsman-rolling-upgrade: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
111cb59509
capsman-download-packages: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
b4ac193789
backup-upload: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
994d3ef05a
backup-partition: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
26dd16d3b9
backup-email: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
72a03c4dbb
backup-cloud: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
1d4f4d0017
accesslist-duplicates: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
35b468b827
Merge branch 'bump' into next
2024-01-30 00:49:29 +01:00
Christian Hesse
5ac89bad04
mod/ssh-keys-import: bump RouterOS version dependency
2024-01-30 00:31:36 +01:00
Christian Hesse
f6f557d80f
accesslist-duplicates: bump RouterOS version dependency
2024-01-30 00:31:30 +01:00
Christian Hesse
1bebac2a64
hotspot-to-wpa-cleanup: bump RouterOS version dependency
2024-01-30 00:31:22 +01:00
Christian Hesse
6ad7ca2c1a
mod/notification-email: drop support for old property name
2024-01-30 00:30:32 +01:00
Christian Hesse
ccd7e6d1ed
README: note on required hardware and limitations by storage
2024-01-30 00:02:08 +01:00
Christian Hesse
693b203457
README: make required software a paragraph
2024-01-30 00:02:08 +01:00
Christian Hesse
2a4e2e0c07
send a warning on storage size
2024-01-30 00:02:08 +01:00
Christian Hesse
62f33d7b19
packages-update: support deferred reboot on auto-update
...
Closes #56
2024-01-30 00:02:08 +01:00
Christian Hesse
98f26989f5
packages-update: schedule from local function
2024-01-30 00:02:08 +01:00
Christian Hesse
abfc8e9191
telegram-chat: add (and increase) random delay on error
...
Chances are that two devices schedule the script (nearly) simultaneously.
Causing a lot of failures from fetch. Instead of forcing a retry on
*every* invocating we add (and increase) a random delay, that is
slowly decreasd on success. This should minimize failures...
2024-01-30 00:02:08 +01:00
Christian Hesse
b6367b5df3
telegram-chat: fix concatenation (and retry with delay)
...
Ups... 😳
2024-01-30 00:02:08 +01:00
Christian Hesse
a1abfedccd
global-functions: $RandomDelay: always scale to ms...
...
... to randomize in friction of unit.
This requires :tonsec from RouterOS 7.12.
2024-01-30 00:02:08 +01:00
Christian Hesse
16898ae997
global-functions: $RandomDelay: allow zero time, return immediately
2024-01-29 22:50:02 +01:00
Christian Hesse
e636d4194c
global-functions: $RandomDelay: name the parameters
2024-01-29 22:50:02 +01:00
Christian Hesse
64abe7430a
update list of contributors
2024-01-25 09:38:11 +01:00
Christian Hesse
3ca51f4699
INITIAL-COMMANDS: fix existing installation
2024-01-25 09:38:11 +01:00
Christian Hesse
7db94b5f3f
doc/check-certificates: initial certificate import
2024-01-24 17:24:23 +01:00
Christian Hesse
7baf69e67c
doc/check-certificates: add paragraph
2024-01-24 17:24:23 +01:00
Christian Hesse
468b5a18f3
check-certificates: unbreak certificate download
...
This was borked with a2749b2760 . 😳
2024-01-24 16:13:44 +01:00
Christian Hesse
20c337d6ba
INITIAL-COMMANDS: ... but rename the configuration overlay!
...
This should not ultimately destroy user's configuration.
2024-01-24 15:52:58 +01:00
Christian Hesse
49a83682c3
INITIAL-COMMANDS: remove before adding...
...
... to make sure it does not fail on (partly) installed scripts. This
should work to fix borked base installation now.
2024-01-24 11:47:26 +01:00
Christian Hesse
f015f5f012
mod/notification-telegram: apply url encoding when sending
2024-01-22 16:10:48 +01:00
Christian Hesse
c2fe7e4cd7
mod/notification-matrix: drop declaration of unused function
2024-01-22 16:08:34 +01:00
Christian Hesse
75a39ffaf1
global-functions: $SymbolByUnicodeName: log warning on missing name
2024-01-20 00:11:22 +01:00
Christian Hesse
86a0700efd
global-functions: $SymbolByUnicodeName: name the parameter
2024-01-20 00:09:54 +01:00
Christian Hesse
21cf6d49bb
backup-upload: fix the upload symbol...
...
... which broke with commit 080bef89a9 .
2024-01-19 17:08:55 +01:00
Christian Hesse
4b8854946d
fw-addr-lists: use prepared user-agent string with fetch
2024-01-19 13:25:22 +01:00
Christian Hesse
a2749b2760
check-certificates: use prepared user-agent string with fetch
2024-01-19 13:23:52 +01:00
Christian Hesse
0ad1a79d67
netwatch-dns: be move verbose on time to settle
2024-01-18 21:07:52 +01:00
Christian Hesse
8a0a4c355b
global-functions: log successful loading
2024-01-18 12:53:17 +01:00
Christian Hesse
bb0c82adb3
sms-forward: log warning just once
2024-01-18 10:19:22 +01:00
Christian Hesse
a7619a5119
global-functions: $LogPrintOnce: support exit
2024-01-18 10:19:22 +01:00
Christian Hesse
306269f919
doc/hotspot-to-wpa: reference as WPA only...
...
... as this works with WPA3 as well. 😜
2024-01-18 10:05:29 +01:00
Christian Hesse
abd1edcdc3
doc/hotspot-to-wpa: fix property name
2024-01-17 14:55:42 +01:00
Christian Hesse
29623a46ea
global-functions: $HexToNum: use :tonum
2024-01-16 22:24:50 +01:00
Christian Hesse
be4221264c
INITIAL-COMMANDS: set script owner on initial creation
2024-01-16 22:01:04 +01:00
Christian Hesse
60bd9d1abc
README: set script owner on initial creation
2024-01-16 22:00:13 +01:00
Christian Hesse
5fd8c8a760
netwatch-dns: check DoH server with fetch
...
This way we do not have to configure possibly non-functional servers to
check. The query is for doh-check.eworm.de of type TXT, the expected
answer is 'doh-check-OK'.
% dig TXT doh-check.eworm.de +https @1.1.1.1
; <<>> DiG 9.18.21 <<>> TXT doh-check.eworm.de +https @1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42226
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;doh-check.eworm.de. IN TXT
;; ANSWER SECTION:
doh-check.eworm.de. 63791 IN TXT "doh-check-OK"
;; Query time: 16 msec
;; SERVER: 1.1.1.1#443(1.1.1.1) (HTTPS)
;; WHEN: Mon Jan 15 13:55:36 CET 2024
;; MSG SIZE rcvd: 72
2024-01-15 14:07:38 +01:00
Christian Hesse
85aeeadcee
netwatch-dns: check DoH server functionality...
...
... and try all servers one after another.
2024-01-11 15:33:03 +01:00
Christian Hesse
80db12a3e9
netwatch-dns: enable DoH certificate verification...
...
... if a certificate is named in configuration.
2024-01-11 09:22:32 +01:00
Christian Hesse
44a8195c37
doc/netwatch-dns: use new certificate for Cloudflare
2024-01-09 23:01:22 +01:00
Christian Hesse
d6645e8157
certs: add new DigiCert certificates...
...
... used by Cloudflare.
2024-01-09 23:00:13 +01:00
Christian Hesse
4249ad61df
global-functions: $CertificateDownload: move delay up
...
We still had cases where fetch misbehaves... But this was permanent.
Perhaps we should not touch the certificate too early...
2024-01-08 00:29:18 +01:00
Christian Hesse
8c458592f5
check-lte-firmware-upgrade: unbreak terminal detectiono
...
This broke with commit 50d7e1fa41b8f8a6a1379de5521798346fd1ae9f... 🫣
2024-01-07 23:13:54 +01:00
Christian Hesse
0760ea9121
check-lte-firmware-upgrade: fail on empty version string
2024-01-05 17:05:34 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
777c388b43
global-functions: $GetMacVendor: get new certificate
...
The service now uses: GTS CA 1P5 -> GTS Root R1
2023-12-22 14:47:54 +01:00
Christian Hesse
1c26d08267
mod/ssh-keys-import: unbreak import from file
...
Looks like this broke in c3045f3723 where
a non-existent variable name was used.
2023-12-21 11:34:55 +01:00
Christian Hesse
0377064f65
capsman-download-packages: avaiable packages only...
...
... as things became more complicated with 'wifi-qcom*'.
2023-12-20 12:29:24 +01:00
Christian Hesse
5aaa24b507
capsman-download-packages: use default set for legacy capsman...
...
... as well - now that 'wireless' package has been split from 'routeros'
guessing kind of broke. It required several attempts and intermittent
errors in logs to get things right.
2023-12-20 12:11:12 +01:00
Christian Hesse
5fdc8d9e65
doc/mode-button: document required type of led
2023-12-14 08:54:04 +01:00
Christian Hesse
f9528f0ac5
fw-addr-lists: warn on possible truncation
...
... as fetch truncates data at about 64kB, reported in SUP-132297.
2023-12-13 15:57:28 +01:00
Christian Hesse
db5ff00b5a
doc/capsman-download-packages: mention package-path
2023-12-05 11:01:14 +01:00
Christian Hesse
69af869572
mention the donation hint...
2023-12-05 00:11:19 +01:00
Christian Hesse
52b8e67309
celebrating ✨ ⭐ 1.000 stars ⭐ ✨ on Github!
2023-12-05 00:11:19 +01:00
Christian Hesse
d3611cebbd
mod/notification-email: $NotificationFunctions->"email": support hook for signature
...
You can compose your own signature by creating a function:
:global NotificationEMailSignature do={
:global EitherOr;
:local RouterBoard [ /system/routerboard/get ];
:return ( \
[ $EitherOr ($RouterBoard->"board-name") ($RouterBoard->"model") ] . " s/n " . $RouterBoard->"serial-number" . " | " . \
"RouterOS " . [ /system/package/update/get installed-version ] . " | " . \
"IP " . [ /ip/cloud/get public-address ]);
}
2023-12-05 00:11:19 +01:00
Christian Hesse
9fb596135e
check-certificates: properly renew from template
2023-12-05 00:11:19 +01:00
Christian Hesse
a12ccba29e
check-certificates: improve wording
2023-12-05 00:11:19 +01:00
Christian Hesse
8de6995c4b
check-certificates: add workaround for broken certificates...
...
... where the issuer array is borked. Or is this a RouterOS issue?
[eworm@carpo] > $InspectVar [ $ParseKeyValueStore [ /certificate/get ISRG-Root-X2 issuer ] ]
-type-> array
-key-> C
-type-> str
-value-> US,O=Internet Security Research Group,CN=ISRG Root X2
A good certificate looks like this:
[eworm@carpo] > $InspectVar [ $ParseKeyValueStore [ /certificate/get [ find where name~"eworm.net" ] issuer ] ]
-type-> array
-key-> C
-type-> str
-value-> US
-key-> CN
-type-> str
-value-> E1
-key-> O
-type-> str
-value-> Let's Encrypt
2023-12-04 13:05:46 +01:00
Christian Hesse
a08df7bdec
check-certificates: prevent infinte loop
2023-12-04 13:05:46 +01:00
Christian Hesse
3df99b0ee0
check-certificates: give full certificate chain
2023-12-04 13:05:46 +01:00
Christian Hesse
94607496ae
check-certificates: fix typo and syntax
2023-12-04 12:15:10 +01:00
Christian Hesse
e4b10d4b76
mod/notification-email: $QuotedPrintable: also encode question mark
...
Following the RFC it is not required, but looks like Thunderbird has an
issue here...
https://datatracker.ietf.org/doc/html/rfc2045#section-6.7
2023-12-04 12:08:47 +01:00
Christian Hesse
84368ec6eb
mod/notification-email: $QuotedPrintable: minor rework
...
We have to encode all characters from 0x00 to 0x1f as well...
Also the equal sign is nothing special here, just adding to list.
2023-12-04 12:08:47 +01:00
Christian Hesse
1bb2871e0b
global-functions: $FormatLine: use $CharacterMultiply
2023-12-04 12:08:47 +01:00
Christian Hesse
5e2e65b252
global-functions: $AlignRight: use $CharacterMultiply
2023-12-04 12:08:47 +01:00
Christian Hesse
8f24b4c490
global-functions: introduce $CharacterMultiply
2023-12-04 11:22:36 +01:00
Christian Hesse
15e347303b
global-functions: $DeviceInfo: add SNMP location and contact
2023-12-04 09:33:24 +01:00
Christian Hesse
aba4770395
fw-addr-lists: support timeout per list
...
This works with something like this:
:global FwAddrLists {
"allow"={
{ url="https://eworm.de/ros/fw-addr-lists/allow ";
cert="E1"; timeout=1w };
};
...
}
All urls for one named list should have the same timeout! With different
timeout values and identical addresses the behavior is besically undefined,
depending on order.
2023-11-30 13:51:57 +01:00
Christian Hesse
c6bf722e49
global-functions: introduce $MIN
2023-11-30 13:51:57 +01:00
Christian Hesse
495eff48de
global-functions: introduce $MAX
2023-11-30 13:51:57 +01:00
Christian Hesse
080bef89a9
global-functions: $SymbolByUnicodeName: rename up-arrow -> arrow-up
...
... so arrows are grouped in case we add more.
2023-11-30 13:51:57 +01:00
Christian Hesse
4e1d54d733
global-functions: $SymbolForNotification: properly append space to alt text
2023-11-30 13:51:57 +01:00
Christian Hesse
81a86ee043
netwatch-dns: get doh host name from static dns
2023-11-27 18:21:47 +01:00
Christian Hesse
1cc0e3429b
global-functions: introduce $AlignRight
2023-11-23 14:41:46 +01:00
Christian Hesse
cae5f425a6
telegram-chat: get rid of '.txt' file extension
2023-11-22 21:20:44 +01:00
Christian Hesse
d1abbede75
backup-email: get rid of '.txt' file extension
2023-11-22 21:18:39 +01:00
Christian Hesse
b75b0bf6be
backup-upload: get rid of '.txt' file extension
2023-11-22 21:17:44 +01:00
Christian Hesse
11daef75f0
packages-update: refuse automatic update to RouterOS 7.13
...
... as migration to wireless or wifi package has to be done. Please
update manually by running:
/system/package/update/install
2023-11-21 13:14:51 +01:00
Christian Hesse
ab8c9d04ff
check-routeros-update: rename scheduler
...
This was missing for commit f7c72b6ed96e45bf1fbb54c46ce09e1fccc791be...
2023-11-16 13:18:10 +01:00
Christian Hesse
6384f6a239
drop old files left from migration
2023-11-15 15:10:49 +01:00
Christian Hesse
c7e2ff71e6
check-health: decrease indention in messages
2023-11-15 15:07:07 +01:00
Christian Hesse
23c5c461a6
check-health: use $HumanReadableNum for RAM utilization
2023-11-15 15:03:16 +01:00
Christian Hesse
5f457e5c37
backup-upload: build file info in a function
2023-11-15 14:35:18 +01:00
Christian Hesse
4d70b7fea4
backup-upload: give more info on files
2023-11-15 14:35:09 +01:00
Christian Hesse
180d6b8733
backup-cloud: use $HumanReadableNum for file size
2023-11-15 14:34:40 +01:00
Christian Hesse
890cd6c58d
global-functions: introduce $HumanReadableNum
2023-11-15 14:34:40 +01:00
Christian Hesse
a4b2da8087
Merge branch 'wifi' into next
2023-11-15 14:34:40 +01:00
Christian Hesse
4c3430fbb6
notify about parted scripts for wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
97383dfbfb
hotspot-to-wpa{,-cleanup}: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
fe1f438502
dhcp-lease-comment: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
53103be324
daily-psk: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
d598b2d70e
collect-wireless-mac: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
cf4f0c5c93
capsman-rolling-upgrade: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
5eb130f0fc
capsman-download-packages: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
ba406ae0fe
accesslist-duplicates: support new wifi package
2023-11-15 14:34:40 +01:00
Christian Hesse
448b44cde6
Makefile: support new wifi package...
...
... introduced with RouterOS 7.13beta1.
2023-11-15 14:34:33 +01:00
Christian Hesse
3aec5d70c6
Merge branch 'scheduler' into next
2023-11-14 22:36:58 +01:00
Christian Hesse
8c8f834179
mod/notification-telegram: rename scheduler
2023-11-14 22:35:38 +01:00
Christian Hesse
75c41501c2
mod/notification-ntfy: rename scheduler
2023-11-14 22:35:23 +01:00
Christian Hesse
5c2454be8b
mod/notification-matrix: rename scheduler
2023-11-14 22:35:06 +01:00
Christian Hesse
a5e2282d0f
mod/notification-email: rename scheduler
2023-11-14 22:34:45 +01:00
Christian Hesse
f7c72b6ed9
packages-update: rename scheduler
2023-11-14 22:27:15 +01:00
Christian Hesse
4f04fa73fc
mode-button: rename scheduler
2023-11-14 22:26:22 +01:00
Christian Hesse
0d530294f5
capsman-rolling-upgrade: update template comment
2023-11-14 17:34:26 +01:00
Christian Hesse
18360f92b3
capsman-download-packages: update template comment
2023-11-14 17:33:46 +01:00
Christian Hesse
690953e4c5
doc/collect-wireless-mac: fix copy-and-paste error
2023-11-14 15:13:12 +01:00
Christian Hesse
64bae1fd1b
doc/capsman-download-packages: hint on cleanup
2023-11-14 14:10:02 +01:00
Christian Hesse
dcca53e449
hotspot-to-wpa: drop dead code
2023-11-14 10:41:01 +01:00
Christian Hesse
e36ac19c8b
global-functions: drop $Read
...
... which is no longer required now that RouterOS 7.12beta1
provides /terminal/ask.
2023-11-09 15:42:07 +01:00
Christian Hesse
ebce360a4e
doc/accesslist-duplicates: reference stable version
2023-11-09 15:42:07 +01:00
Christian Hesse
5b047223d1
accesslist-duplicates: use /terminal/ask
...
This was introduced in RouterOS 7.12beta1.
2023-11-09 15:42:07 +01:00
Christian Hesse
2d7efd8d6c
mod/notification-matrix: introduce $SetupMatrix{Authenticate,JoinRoom} for setup
...
Well, now that we have a JSON parser... Let's improve the user
experience a bit.
2023-11-09 15:34:10 +01:00
Christian Hesse
59f8f30389
doc/mod/notification-telegram: end all commands with a semicolon
2023-11-09 15:34:10 +01:00
Christian Hesse
255fc531ad
doc/mod/notification-ntfy: end all commands with a semicolon
2023-11-09 15:34:10 +01:00
Christian Hesse
2acc0aba7e
doc/mod/notification-matrix: end all commands with a semicolon
2023-11-09 15:34:10 +01:00
Christian Hesse
0f3746c894
doc/mod/notification-email: end all commands with a semicolon
2023-11-09 15:34:10 +01:00
Christian Hesse
3cc41495bc
doc/mod/ssh-keys-import: reference stable version
2023-11-09 15:34:10 +01:00
Christian Hesse
98d7eee454
mod/ssh-keys-import: continue import after intermediate failure
2023-11-09 15:34:10 +01:00
Christian Hesse
b22dfbfc94
mod/ssh-keys-import: do not import twice
2023-11-09 15:34:10 +01:00
Christian Hesse
042ff1cfda
mod/ssh-keys-import: drop the version check for ed25519 keys...
...
... now that we require RouterOS 7.12beta1 anyway.
2023-11-09 15:18:09 +01:00
Christian Hesse
1265caca60
mod/ssh-keys-import: calculate fingerprint...
...
... and store it in key-owner, which is descriptive only.
This requires RouterOS 7.12beta1 for the 'transform' property
for ':convert' command.
2023-11-09 15:08:36 +01:00
Christian Hesse
c3045f3723
mod/ssh-keys-import: parse key into array
2023-11-07 14:31:59 +01:00
Christian Hesse
79f3002a38
README: print name with proplist for certificate verification
2023-11-07 14:31:59 +01:00
Christian Hesse
c2649ae832
README: reference stable version
2023-11-07 13:41:59 +01:00
Christian Hesse
fe2641ae0f
global-functions: $ParseDate: drop code for old format...
...
... and increase required RouterOS.
We should probably wait some time before merging this: Even current
versions have some hidden places with old format:
[admin@MikroTik] > /system/resource/print
[...]
version: 7.10.2 (stable)
build-time: Jul/12/2023 09:45:11
[...]
(Though this is written with capital letter and fails anyway...)
Something similar goes for `/ip/neighbor`, where format depends on
remote devices. Does anybody need to parse this?
2023-11-07 13:41:59 +01:00
Christian Hesse
4321d8fa54
netwatch-notify: match on word boundary
2023-10-27 22:55:40 +02:00
Christian Hesse
f60c72dc78
netwatch-dns: match on word boundary
2023-10-27 22:55:15 +02:00
Christian Hesse
a407332ea1
dhcp-to-dns: prepare string 'mac in server'
2023-10-27 22:46:47 +02:00
Christian Hesse
a769ed072b
dhcp-to-dns: prepare full names for A and CNAME records
2023-10-27 22:34:52 +02:00
Christian Hesse
576364f44a
dhcp-to-dns: info on mac address bound multiple time
2023-10-27 14:13:58 +02:00
Christian Hesse
c34599fe46
dhcp-to-dns: warn on duplicate names
2023-10-27 14:13:58 +02:00
Christian Hesse
3474b9a15c
dhcp-to-dns: allow multiple records for one mac address
...
Now that we can have differnt name suffixes via networks it makes sense
to allow multiple records for one mac address.
Also update the wording for messages...
2023-10-27 14:13:58 +02:00
Christian Hesse
72b4851255
global-functions: introduce $LogPrintOnce
...
This does work just like $LogPrintExit2, except it acts just *once* for
each message, until device is rebooted.
2023-10-27 08:42:32 +02:00
Christian Hesse
dce779250c
README: explain sensitive property
2023-10-26 22:15:10 +02:00
Christian Hesse
8f75c17e0b
global: switch eworm.de to new certificate chain (E1 / ISRG Root X2)
...
old chain: R3 / ISRG Root X1
new chain: E1 / ISRG Root X2
No user interaction or migration is required for existing installations
as we install 'E1' and 'ISRG Root X2' for some time already.
2023-10-26 22:15:05 +02:00
Christian Hesse
61834297d7
global-functions: $ParseJson: prevent infinite loop...
...
... which could happen on corrupted or truncated input.
2023-10-25 08:57:39 +02:00
Christian Hesse
ff35f0c87f
check-health: reverse logic for RAM (free -> utilization)...
...
... to bring it in sync with CPU utilization.
Also make the output more verbose, at least for the warning.
---- ✂️ ----
🗃️ 📈 ️ Health warning: RAM utilization
The RAM utilization on MikroTik is at 81%!
total: 64 MiB
used: 52 MiB
free: 11 MiB
---- ✂️ ----
🗃️ 📉 ️ Health recovery: RAM utilization
The RAM utilization on MikroTik decreased to 65%.
---- ✂️ ----
2023-10-24 17:03:12 +02:00
Christian Hesse
d4e5194a65
fw-addr-lists: rework the retry logic
...
... with increasing delay.
2023-10-19 21:17:03 +02:00
Christian Hesse
1f6040178f
telegram-chat: rework the retry logic
...
... with increasing delay.
2023-10-19 21:13:04 +02:00
Christian Hesse
92b4af7b90
log-forward: keep the warning in subject for higher severity
2023-10-19 12:36:19 +02:00
Christian Hesse
b81f3850ae
telegram-chat: log when sending notice
2023-10-19 09:19:34 +02:00
Christian Hesse
4c365c131d
telegram-chat: drop extra conversion
2023-10-19 08:42:29 +02:00
Christian Hesse
9138c17f8c
global-functions: $ParseJson: return array as ... array 😜
...
No need to assemble the string here, just to split it again later.
2023-10-19 08:42:29 +02:00
Christian Hesse
fffe0a3b50
telegram-chat: retry on fetch failure...
...
... and exit with a warning.
2023-10-17 21:37:13 +02:00
Christian Hesse
ab44377fb6
accesslist-duplicates: remove extra check
...
Why did we have that? Possibly for performance? Well, should not be a
problem now.
2023-10-17 14:05:03 +02:00
Christian Hesse
00e8766ce3
accesslist-duplicates: use another named array
2023-10-17 14:05:03 +02:00
Christian Hesse
8bfbc9dd7e
accesslist-duplicates: use named array
2023-10-17 14:05:03 +02:00
Christian Hesse
0e83d2e317
daily-psk: use named array
2023-10-17 14:05:03 +02:00
Christian Hesse
286e3d9cf9
global-functions: $ScriptInstallUpdate: use $EitherOr
2023-10-17 14:05:03 +02:00
Christian Hesse
2ab3468700
global-functions: $ScriptInstallUpdate: restore indention
...
No functional change.
2023-10-17 14:05:03 +02:00
Christian Hesse
382f928568
global-functions: $ScriptInstallUpdate: drop support for scripts from storage
...
Nobody ever used that, no?
(Well, except me - just before I implemented fetching. 😜 )
2023-10-17 14:05:03 +02:00
Christian Hesse
7a1ffb659c
global-functions: $ScriptInstallUpdate: rename variable
2023-10-17 14:05:03 +02:00
Christian Hesse
c0a734fa21
global-functions: $ScriptInstallUpdate: use pushpin as bullet
2023-10-17 14:05:03 +02:00
Christian Hesse
cfc8c4f1ea
global-functions: $SymbolForNotification: support fallback without symbols
2023-10-17 14:05:03 +02:00
Christian Hesse
d3992c13a0
mod/notification-ntfy: check for root certificate availability
...
... at least with default server.
2023-10-17 14:05:03 +02:00
Christian Hesse
5932586ee4
introduce mod/notification-ntfy...
...
... for sending notifications via Ntfy (https://ntfy.sh/ ).
TODO: use proper formatting once supported in Android app:
https://github.com/binwiederhier/ntfy/issues/889
2023-10-17 14:05:03 +02:00
Christian Hesse
5fbf584d4c
sms-forward: pass phone number and message to hook
...
These are available as $Phone and $Message in hook.
2023-10-17 14:05:03 +02:00
Christian Hesse
f6e65dd68c
log-forward: add 'packet' in default filter...
...
... which is used when logging raw packets from dns and ssh,
and possibly others.
2023-10-17 14:05:03 +02:00
Christian Hesse
24823441c3
log-forward: use colorful bullets to indicate severity
2023-10-17 14:05:03 +02:00
Christian Hesse
ef3b8f8ddd
gps-track: http-header-field expects an array
2023-10-17 14:05:03 +02:00
Christian Hesse
1b00f93fc6
global-functions: $ScriptInstallUpdate: http-header-field expects an array
2023-10-17 14:05:03 +02:00
Christian Hesse
da0a37802d
global-functions: $CertificateDownload: http-header-field expects an array
2023-10-17 14:05:03 +02:00
Christian Hesse
80c0e47649
Merge branch 'telegram' into next
2023-10-17 14:05:03 +02:00
Christian Hesse
bcc10c8285
telegram-chat: make messages silent...
...
... at least those not indicating an error.
2023-10-17 14:05:03 +02:00
Christian Hesse
73194b92cf
telegram-chat: use $ParseJson for all JSON
2023-10-16 23:43:58 +02:00
Christian Hesse
c0aab0fead
global-functions: $ParseJson: properly handle array
2023-10-16 23:43:58 +02:00
Christian Hesse
3b9df48721
global-functions: $ParseJson: prepare elif-workaround
2023-10-16 23:43:58 +02:00
Christian Hesse
140ec1a3a2
global-functions: $ParseJson: use temporary variables
2023-10-16 23:43:58 +02:00
Christian Hesse
fed7f2da46
mod/notification-telegram: drop support for non-fixed width font
2023-10-16 15:27:14 +02:00
Christian Hesse
c9233773b3
telegram-chat: do not act on foreign reply...
...
... even if active!
2023-10-16 15:27:14 +02:00
Christian Hesse
bc4839f611
telegram-chat: rename variable
2023-10-16 15:27:14 +02:00
Christian Hesse
1b62545d8c
telegram-chat: answer question mark with short notice
2023-10-16 15:27:14 +02:00
Christian Hesse
15873e2fdb
telegram-chat: restore indention
2023-10-16 15:27:14 +02:00
Christian Hesse
555461c612
telegram-chat: do not nest conditions
2023-10-16 15:27:14 +02:00
Christian Hesse
adca33cc5b
telegram-chat: act on reply without delay
2023-10-16 13:11:20 +02:00
Christian Hesse
399d952ac2
telegram-chat: act on reply from self
2023-10-16 13:11:20 +02:00
Christian Hesse
fd1263324d
doc/telegram-chat: update screenshots
2023-10-16 13:11:20 +02:00
Christian Hesse
8ecde47a78
mod/notification-telegram: remember ids of sent messages
2023-10-16 11:51:04 +02:00
Christian Hesse
7df4f9e78c
global-functions: $ParseJson: handle outher curly brackets
2023-10-16 11:51:04 +02:00
Christian Hesse
bb899b1fb0
global-functions: $ParseJson: drop superfluous substraction
2023-10-16 11:51:04 +02:00
Christian Hesse
080b3cbf9d
global-functions: make $ParseJson global
2023-10-16 11:51:04 +02:00
Christian Hesse
8e9734347e
telegram-chat: parse (one level of) JSON into array
2023-10-16 11:51:04 +02:00
Christian Hesse
4c51b2fe52
telegram-chat: do not cover existing variable
2023-10-16 11:51:04 +02:00
Christian Hesse
65d05a757b
update list of contributors
2023-10-16 11:50:10 +02:00
Christian Hesse
87b136f3a9
mod/notification-email: handle new property name...
...
... which changed in RouterOS 7.12rc1.
2023-10-06 21:42:00 +02:00
Christian Hesse
702abd2a5d
log-forward: add 'raw' in default filter...
...
... which is used when logging raw packets or commands.
2023-10-05 22:20:32 +02:00
Christian Hesse
fedda2a946
collect-wireless-mac: ignore remote aps...
...
... which are listed here in station mode.
2023-10-05 22:08:26 +02:00
Christian Hesse
eef0662aa7
netwatch-notify: allow to give different origin for hosts...
...
... to use differing notification settings.
Add an origin name in netwatch configuration:
/tool/netwatch/add comment="notify, name=dns-google, origin=netwatch-notify-google" address=8.8.8.8;
/tool/netwatch/add comment="notify, name=dns-cloudflare, origin=netwatch-notify-cloudflare" address=1.1.1.1;
Then configure the notification settings in `global-config-overlay`:
:global EmailGeneralToOverride {
"netwatch-notify-google"="google@example.com";
"netwatch-notify-cloudflare"="cloudflare@example.com";
}
I think it is best to handle this as a hidden setting...
Handle with care!
2023-09-29 14:15:41 +02:00
Christian Hesse
4c6c30550f
collect-wireless-mac: filter on dns type
2023-09-22 12:29:15 +02:00
Christian Hesse
57c5c3f704
collect-wireless-mac: add CNAME(s) in notification
2023-09-20 12:26:49 +02:00
Christian Hesse
4ddc6be585
global-functions: split off $FormatMultiLines ...
...
... to format multiple lines from an array.
2023-09-18 07:55:05 +02:00
Christian Hesse
557823c5c1
telegram-chat: create status files with /file/add
...
We have no content, thus no issues with file size.
2023-09-15 09:54:59 +02:00
Christian Hesse
66ebcf2bbd
telegram-chat: use the full command name :execute
2023-09-15 09:54:59 +02:00
Christian Hesse
5349c9b52e
global-functions: $EitherOr: properly handle time values
2023-09-15 09:54:59 +02:00
Christian Hesse
2a10f43acc
drop dummy scripts used for wifiwave2 migration
...
This now causes expected warnings on first run of $ScriptInstallUpdate.
2023-09-13 16:08:59 +02:00
Christian Hesse
110bb793b6
check-routeros-update: do not match the channel on neighbor update
...
While this works for stable, it does not for testing: The testing
channel can have "testing" in the string for rc releases, but also
"development" for beta releases... and possibly more.
Instead match on version string only, with word boundary.
2023-09-13 16:08:59 +02:00
Christian Hesse
46e48497d5
lease-script: match on word boundary
2023-09-13 16:08:59 +02:00
Christian Hesse
8b8bc7cf2d
packages-update: match on word boundary
2023-09-13 16:08:59 +02:00
Christian Hesse
5d80b63f36
doc/packages-update: mention and link all backup scripts
2023-09-13 16:08:59 +02:00
Christian Hesse
66813d83a0
packages-update: drop order from message
2023-09-13 16:08:59 +02:00
Christian Hesse
c3f9ad1df7
packages-update: implement backup script order
2023-09-13 01:14:27 +02:00
Christian Hesse
50429a0ad8
fw-addr-lists: no (mixed) capitalization in message
2023-09-06 11:35:02 +02:00
Christian Hesse
57027ceb26
check-routeros-update: show neighbor's identity in message and notification
2023-08-31 09:40:09 +02:00
Christian Hesse
7b47ed7ea5
check-routeros-update: support update from specific neighbor(s)
...
... by matching the identity property.
2023-08-31 09:40:09 +02:00
Christian Hesse
49d85c6def
backup-upload: revert changes, add comment with warning
...
Turned out that using `/file/add ...` introduced a regression. Accessing
(reading and writing) file contents is limited to 4095 bytes.
This limitation does not exist for `:execute script=... file=...`, so
keep the old code. Also add a comment with warning.
2023-08-30 09:30:25 +02:00
Christian Hesse
ce822a0276
backup-email: revert changes, add comment with warning
...
Turned out that using `/file/add ...` introduced a regression. Accessing
(reading and writing) file contents is limited to 4095 bytes.
This limitation does not exist for `:execute script=... file=...`, so
keep the old code. Also add a comment with warning.
2023-08-30 09:30:25 +02:00
Christian Hesse
f099c2c9ea
backup-upload: check configuration size before writing file
2023-08-30 09:30:25 +02:00
Christian Hesse
1e247542a5
backup-email: check configuration size before writing file
2023-08-30 09:30:25 +02:00
Christian Hesse
f86cf27aa3
backup-upload: detect failure creating config file
2023-08-29 08:58:50 +02:00
Christian Hesse
07c6f5836a
backup-email: detect failure creating config file
2023-08-29 08:58:50 +02:00
Christian Hesse
ffc7521a35
backup-email: support indication of failure
2023-08-29 08:58:50 +02:00
Christian Hesse
3c96db5824
backup-email: write config file directly
...
This functionality was added in RouterOS 7.9beta4...
2023-08-29 08:58:50 +02:00
Christian Hesse
1dd1c5b03c
backup-upload: write config file directly
...
This functionality was added in RouterOS 7.9beta4...
2023-08-29 08:58:50 +02:00
Christian Hesse
16844b935a
hotspot-to-wpa-cleanup: show last-seen, not timeout
2023-08-29 08:58:50 +02:00
Christian Hesse
5b5c91da84
hotspot-to-wpa-cleanup: require RouterOS for wifiwave2
...
RouterOS before version 7.12beta3 had a bug where getting comment from
registration-table is not possible. Require that version at least.
This was fixed in SUP-124500.
2023-08-24 08:35:07 +02:00
Christian Hesse
047c74a4b3
global-functions: prepare user-agent for fetch in global variable
2023-08-18 15:23:20 +02:00
Christian Hesse
53a80c81b1
mod/ssh-keys-import: $SSHKeysImport: add check for key type
2023-08-18 15:23:20 +02:00
Christian Hesse
ad6825571d
mod/ssh-keys-import: support ed25519 keys...
...
... with RouterOS 7.12beta1
2023-08-18 15:23:20 +02:00
Christian Hesse
413be6f504
doc/mod/ssh-keys-import: drop duplicate key type
...
Stupid copy'n'paste error... 🫣
2023-08-18 15:23:20 +02:00
Christian Hesse
25d40688f7
sms-forward: drop RouterOS version dependency
...
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse
c04bf2c9b7
netwatch-notify: drop RouterOS version dependency
...
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse
ddd5608b38
mod/ssh-keys-import: drop RouterOS version dependency
...
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse
2c3e077b8e
Merge branch 'wifiwave2' into next
2023-08-15 11:26:18 +02:00
Christian Hesse
92aca1aac0
news and migration for wifiwave2
2023-08-15 11:26:18 +02:00
Christian Hesse
6552b0c02d
hotspot-to-wpa: convert to template, split capsman & wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
8ce1683733
daily-psk: add support for wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
6d76704a97
dhcp-lease-comment: add support for wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
bac4a460f0
collect-wireless-mac: add support for wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
d086e4a05f
accesslist-duplicates: add support for wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
d0ab951e3f
capsman-download-packages: download a default set for wifiwave2
...
Well, AX devices can be arm or arm64... So let's just download packages
'routeros' and 'wifiwave2' - crossing fingers... 🤞
2023-08-09 16:30:18 +02:00
Christian Hesse
3cab917a61
capsman-download-packages: no download of missing package for wifiwave2
...
Sadly the log messages from wifiwave2 do not contain any hint what is
missing... So it's not possible to download missing files.
2023-08-09 16:30:18 +02:00
Christian Hesse
8428ba890d
Makefile: support excluding blocks from templates
2023-08-09 16:30:18 +02:00
Christian Hesse
e6964b4348
capsman-rolling-upgrade: convert to template, split capsman & wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
5e3d9d7460
capsman-download-packages: convert to template, split capsman & wifiwave2
2023-08-09 16:30:18 +02:00
Christian Hesse
5ea74968d9
capsman-download-packages: find script by code comment
2023-08-07 22:10:44 +02:00
Christian Hesse
0f787f9b03
Makefile: only regenerate existing scripts from templates
2023-08-07 22:10:44 +02:00
Christian Hesse
14dcea23b2
Makefile: support wifiwave2 in templates
2023-08-07 22:10:44 +02:00
Christian Hesse
b014eb76c6
collect-wireless-mac: move comment up
2023-08-07 22:10:44 +02:00
Christian Hesse
1b947f445b
Makefile: drop path rewriting, use pattern to filter
2023-08-07 22:10:44 +02:00
Christian Hesse
c37739c2f6
mod/notification-telegram: introduce $PurgeTelegramQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
0aeb34e5e9
mod/notification-matrix: introduce $PurgeMatrixQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
9a5d55da0d
mod/notification-email: introduce $PurgeEmailQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
5b789d298b
check-certificates: properly handle in place updates
...
This worked just kind of... The certification was updated, but script
aborted before the notification was sent.
2023-07-23 22:01:43 +02:00
Christian Hesse
be97de3627
check-routeros-update: also match platform for neighbors
2023-07-15 22:05:47 +02:00
Ben Harris
fbf55292a4
check-routeros-update: match version with date suffix
...
Neighbor version can have a date suffix. This changes to match only
on the beginning.
Closes: GH-45
Co-authored-by: Christian Hesse <mail@eworm.de>
2023-07-13 08:00:14 +02:00
Christian Hesse
313e026229
netwatch-dns: increase startup delay
...
In RouterOS 7.9 netwatch itself comes with a (default) startup-delay of five
minutes. Increase our delay to make sure netwatch is active.
2023-06-28 11:29:02 +02:00
Christian Hesse
6247b739a1
netwatch-notify: drop the delay on startup...
...
... now that in RouterOS 7.9 netwatch itself comes with a startup-delay.
Hosts in state 'unknown' are just ignored.
2023-06-28 11:29:02 +02:00
Christian Hesse
3ed124a013
README: reference stable version
2023-06-28 11:29:02 +02:00
Christian Hesse
08e9634154
global-functions: $MkDir: drop extra block, restore indention
...
We had this to make the previous commit cleaner. No functional change.
2023-06-28 11:29:02 +02:00
Christian Hesse
5db9a71802
global-functions: $MkDir: drop old code with smb workaround...
...
... and increase required RouterOS.
2023-06-28 11:29:02 +02:00
Christian Hesse
a030e2f946
Merge branch 'hotspot-to-wpa' into next
2023-06-28 11:26:51 +02:00
Christian Hesse
64ab9eec67
hotspot-to-wpa-cleanup: drop hard-coded timeout, get from comment
...
This keeps the default of four weeks, though.
2023-06-28 11:26:51 +02:00
Christian Hesse
16a551a0ee
hotspot-to-wpa-cleanup: drop hard-coded server name, find by comment
2023-06-28 11:26:51 +02:00
Christian Hesse
0c8bc60648
hotspot-to-wpa: reject for two seconds...
...
... to make the device send a new DHCP request after.
2023-06-28 11:04:13 +02:00
Christian Hesse
f8a2b88692
hotspot-to-wpa: support non-local users
...
This has some limitations, though: The password is not known and
additional configuration can not be given in user's comment.
2023-06-28 11:04:13 +02:00
Christian Hesse
5ba34c819a
doc/sms-forward: link the RouterOS button to changelog
2023-06-27 17:27:13 +02:00
Christian Hesse
edbb52d4e7
doc/mod/ssh-keys-import: link the RouterOS button to changelog
2023-06-27 17:27:13 +02:00
Christian Hesse
4e411728e6
README: link the RouterOS button to changelog
2023-06-27 17:27:13 +02:00
Christian Hesse
3bdaf6e45d
Merge branch 'no-escape-question-mark' into next
2023-06-27 09:14:36 +02:00
Christian Hesse
640b8fd401
global-functions: $IsTimeSync: calculate with uptime, drop scheduler
2023-06-27 09:14:36 +02:00
Christian Hesse
cc5820ed90
update-tunnelbroker: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
0502cf17c9
mod/scriptrunonce: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
a1b896a5d3
mod/notification-email: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
0af1fa4009
global-functions: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
29f0a14b7e
global-config: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
ec7adcf78e
update-tunnelbroker: rework the retry-loop
2023-06-23 09:49:34 +02:00
Christian Hesse
eb3b4d169e
fw-addr-lists: retry to download on failure
2023-06-23 09:49:34 +02:00
Christian Hesse
351c7d31ff
mode-button: add dollar sign in scheduler name
2023-06-22 22:45:32 +02:00
Christian Hesse
4a67155d05
packages-update: rename scheduler to match function name
2023-06-22 22:45:32 +02:00
Christian Hesse
6469825398
global-functions: $IsTimeSync: reset ntp client when "waiting"
...
Every now and then the ntp client stays in status "waiting" forever...
This happens if the server answers, but is not accurate enough. Unlike
with connection failure the address is not rotated. (SUP-120012)
Let's reset it... Should help with a pool address (like pool.ntp.org)
at least.
2023-06-22 22:45:32 +02:00
Christian Hesse
e7d9a94ad8
update list of contributors
2023-06-14 18:29:29 +02:00
Christian Hesse
3358dcb0e7
Merge branch 'fw-addr-lists' into next
2023-06-13 20:28:25 +02:00
Christian Hesse
94b07600ba
fw-addr-lists: support domain names in lists
2023-06-13 20:26:55 +02:00
Christian Hesse
458fe7c088
fw-addr-lists: prepare lists from spamhaus.org in config
2023-06-13 20:26:55 +02:00
Christian Hesse
3c61cf57c4
certs: add Cloudflare certificates...
...
... for later use.
2023-06-13 20:26:55 +02:00
Christian Hesse
53ad7b717d
fw-addr-lists: add lists from abuse.ch in config
2023-06-13 20:26:55 +02:00
Christian Hesse
589492621b
certs: add GlobalSign certificates...
...
... for later use.
2023-06-13 20:26:55 +02:00
Christian Hesse
e19e33d0a8
introduce fw-addr-lists
2023-06-13 20:26:55 +02:00
Christian Hesse
196fe1b010
global-functions: $CertificateDownload: add proper version in user agent
2023-06-13 12:53:38 +02:00
Christian Hesse
1e29eeb388
gps-track: add error handling
2023-06-13 09:28:32 +02:00
Christian Hesse
679c971ea6
gps-track: wait to be fully connected
2023-06-13 09:07:57 +02:00
Christian Hesse
db223429b7
Merge branch 'script-lock' into next
2023-06-13 09:07:57 +02:00
Christian Hesse
befa739e11
update-tunnelbroker: lock the script
2023-06-13 09:07:57 +02:00
Christian Hesse
2861610e5a
update-gre-address: lock the script
2023-06-13 09:07:57 +02:00
Christian Hesse
cc3a017507
ospf-to-leds: lock the script
2023-06-13 09:07:57 +02:00
Christian Hesse
de750f0559
ipv6-update: lock the script
2023-06-13 09:07:57 +02:00
Christian Hesse
878e1f66f2
ipsec-to-dns: lock the script
2023-06-13 09:07:57 +02:00
Christian Hesse
f375b7fbf7
gps-track: lock the script
2023-06-13 09:00:15 +02:00
Christian Hesse
4176fd058e
hotspot-to-wpa: lock the script
2023-06-13 08:58:32 +02:00
Christian Hesse
51ebbd46d9
firmware-upgrade-reboot: lock the script
2023-06-13 08:58:32 +02:00
Christian Hesse
497915b4a2
dhcp-lease-comment: lock the script
2023-06-13 08:58:32 +02:00
Christian Hesse
40f2953dde
daily-psk: lock the script
2023-06-13 08:58:32 +02:00
Christian Hesse
d2de9be439
check-lte-firmware-upgrade: lock the script
2023-06-13 08:58:32 +02:00
Christian Hesse
e0714bdfff
check-certificates: lock the script
2023-06-13 08:53:03 +02:00
Christian Hesse
4420c79e0c
certificate-renew-issued: lock the script
2023-06-13 08:53:03 +02:00
Christian Hesse
1167347ec0
backup-upload: lock the script
2023-06-12 19:04:23 +02:00
Christian Hesse
fa851a7838
backup-partition: lock the script
2023-06-12 19:04:23 +02:00
Christian Hesse
229e116999
backup-email: lock the script
2023-06-12 08:17:36 +02:00
Christian Hesse
4aaa144472
backup-cloud: lock the script
2023-06-12 08:17:36 +02:00
Christian Hesse
2f399f2a48
hotspot-to-wpa: fail on missing context
2023-06-11 23:03:17 +02:00
Christian Hesse
a4354d762f
Merge branch 'doc-copy-hint' into next
2023-06-11 22:45:30 +02:00
Christian Hesse
0b8588e6e8
global-config-overlay: link global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
9a1f2deb57
doc/mod/notification-telegram: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
4397869260
global-config-overlay: link 'editing-configuration' in README
2023-06-11 22:45:29 +02:00
Christian Hesse
9ebebcfa52
doc/mod/notification-matrix: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
9ac7cf5fc0
doc/mod/notification-email: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
a0dc721ea3
doc/mod/scriptrunonce: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
c8497d05c5
doc/telegram-chat: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
5c27024bc6
doc/sms-forward: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
b93126bc46
doc/sms-action: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
3fafed250e
doc/mode-button: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
601404a5db
doc/log-forward: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
4ab1a88a92
doc/ipsec-to-dns: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
8fa04fec15
doc/gps-track: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
a77e0bf0d5
doc/dhcp-to-dns: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
87318fddde
doc/daily-psk: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
dea07a7f0b
doc/check-routeros-update: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
d4e225f1b7
doc/check-health: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
2ba93f61ac
doc/check-certificates: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
e96b2e4853
doc/certificate-renew-issued: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
a65ea3fc26
doc/backup-upload: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
083fa82b13
doc/backup-email: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
5f28e928a1
doc/backup-cloud: hint to copy from global-config
2023-06-11 22:45:29 +02:00
Christian Hesse
964ec39a68
collect-wireless-mac: use 'active-' properties from lease
2023-06-08 21:58:32 +02:00
Christian Hesse
2593f6ba30
dhcp-lease-comment: use 'active-' properties from lease
2023-06-08 21:58:32 +02:00
Christian Hesse
9bfa303038
dhcp-to-dns: use 'active-' properties from lease
...
Turns out that address for static leases can be an address pool. Of
course that breaks the script as an ip address is expected. Use
'active-address' instead.
Also let's do the same for 'active-mac-address'...
Fixes GH-43
2023-06-08 21:58:29 +02:00
Christian Hesse
0b04f173c8
check-lte-firmware-upgrade: update formatting of notification
2023-06-07 09:28:51 +02:00
Christian Hesse
d2883e6f43
global-functions: $CertificateDownload: add a delay
...
For any reason the imported certificate(s) is/are not available for
fetch command immediately. Let's add a delay here... It should not hurt
as certificates are not imported that often.
2023-06-01 21:59:52 +02:00
Christian Hesse
0b8979e5b5
global-functions: $ScriptInstallUpdate: handle scripts with DOS line endings
...
If the script is converted to DOS line endings (\r\n) on the device it
was no longer handled by $ScriptInstallUpdate. Let's change that...
2023-06-01 21:59:52 +02:00
Christian Hesse
de8c534d41
doc/daily-psk: rename schedulers...
...
... to match other scripts.
2023-06-01 09:53:33 +02:00
Christian Hesse
95181fbef9
doc/check-certificates: move and rename schedule at startup
2023-06-01 09:53:33 +02:00
Christian Hesse
cfeddde173
doc/check-routeros-update: hint on schedule at startup
2023-06-01 09:53:33 +02:00
Christian Hesse
42c658e1d4
netwatch-dns: reorder variables
2023-06-01 09:53:33 +02:00
Christian Hesse
007d1ff7b8
netwatch-dns: handle status 'up' only
2023-06-01 09:53:33 +02:00
Christian Hesse
f416b0e59d
netwatch-notify: ignore status 'unknown'
2023-05-31 15:13:14 +02:00
Christian Hesse
1568df3b4f
global-config: end all (array) variables with a semicolon
2023-05-31 11:41:50 +02:00
Christian Hesse
8dc0475108
contrib/logo-color: support settings the background
2023-05-26 11:57:18 +02:00
Christian Hesse
51a7453e6c
contrib/notification: update the screenshot procedure
2023-05-26 10:07:37 +02:00
Christian Hesse
73564c74c0
contrib/logo-color: link to doc/mod/notification-telegram
2023-05-25 10:39:16 +02:00
Christian Hesse
80198dcfb5
doc/mod/notification-telegram: show how to set bot's profile photo
2023-05-25 10:39:16 +02:00
Christian Hesse
ccb0e468b4
contrib/logo-color: add screenshots from browser
2023-05-25 10:39:16 +02:00
Christian Hesse
5b869d5191
contrib/notification: fix the font families
2023-05-25 10:39:16 +02:00
Christian Hesse
871f30ad8e
contrib/logo-color: fix the font family
2023-05-25 10:39:16 +02:00
Christian Hesse
44e483ecb7
contrib/logo-color: scale up...
...
... to make BotFather happy, why asks for images with at
least 150x150 pixels.
2023-05-25 10:39:14 +02:00
Christian Hesse
6327348405
check-certificates: split validity output
2023-05-25 10:39:00 +02:00
Christian Hesse
5ae3cb336f
add a logo color changer
...
Generate a colored logo for your notifications!
2023-05-25 10:38:57 +02:00
Christian Hesse
c2e7567c13
logo: rename SVG ids
2023-05-23 11:25:43 +02:00
Christian Hesse
e9b7c7f7ed
doc/mod/notification-telegram: describe how to declare functions...
...
... to use them in own scripts.
2023-05-22 09:52:34 +02:00
Christian Hesse
c0aeee3d3e
doc/mod/notification-matrix: describe how to declare functions...
...
... to use them in own scripts.
2023-05-22 09:52:18 +02:00
Christian Hesse
8284035ad8
doc/mod/notification-email: describe how to declare functions...
...
... to use them in own scripts.
2023-05-22 09:51:23 +02:00
Christian Hesse
4254b01a32
mod/notification-telegram: fix copy-and-paste error
2023-05-15 21:43:18 +02:00
Christian Hesse
9069f71ee6
daily-psk: use $ParseDate
2023-05-10 20:02:44 +02:00
Christian Hesse
60f863871c
global-functions: $ParseDate: handle date in ISO standard format
...
This was introduced with RouterOS 7.10beta5...
https://xkcd.com/1179/ 😜
2023-05-10 20:02:44 +02:00
Christian Hesse
bafd71344d
global-functions: introduce $ParseDate
...
The extra indention is intended for a later change.
2023-05-10 20:02:44 +02:00
Christian Hesse
e7927e0eee
daily-psk: explicitly cast to num
2023-05-10 18:10:31 +02:00
Christian Hesse
d586a5ab19
daily-psk: simplify calculation
...
Use a named array, and drop the loop...
2023-05-10 18:10:31 +02:00
Christian Hesse
3fe66c8413
update list of contributors
2023-05-02 16:19:44 +02:00
Christian Hesse
1f1e76b822
sms-forward: drop workaround, add required RouterOS
2023-04-26 10:31:23 +02:00
Christian Hesse
c8500dddd0
mod/ssh-keys-import: make ssh-keys-import a module
2023-04-26 10:31:23 +02:00
Christian Hesse
a3a7e5be4b
global-config: restore variables still used in ipsec-to-dns (for now)
2023-04-26 10:31:23 +02:00
Christian Hesse
5c7a7723f3
global-config: be more verbose about domain
2023-04-26 10:30:10 +02:00
Christian Hesse
575c77d1a6
mod/bridge-port-to: increase the delay before re-enabling
...
Looks like two seconds is way too short... NetworkManager act after five
seconds - so let's delay that time at least.
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#carrier-wait-timeout
2023-04-25 09:45:46 +02:00
Christian Hesse
9dead9cc33
mod/bridge-port-vlan: increase the delay before re-enabling
...
Looks like two seconds is way too short... NetworkManager act after five
seconds - so let's delay that time at least.
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#carrier-wait-timeout
2023-04-25 09:43:50 +02:00
Christian Hesse
19eb8653af
Merge branch 'dhcp-to-dns' into next
2023-04-24 22:26:26 +02:00
Christian Hesse
83e57e6aab
Merge branch 'FormatLine' into next
2023-04-24 22:26:26 +02:00
Christian Hesse
ee94024dca
dhcp-to-dns: get domain from dhcp server's network definition
2023-04-24 22:26:26 +02:00
Christian Hesse
82b5ae174a
mod/ipcalc: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
ac5d84173f
dhcp-to-dns: rename variable to not clash with global one
2023-04-24 22:26:26 +02:00
Christian Hesse
944b2f5864
daily-psk: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
79cdefbd1e
dhcp-to-dns: handle change of domain
2023-04-24 22:26:26 +02:00
Christian Hesse
b705ceae59
collect-wireless-mac: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
517bb4ede8
dhcp-to-dns: get all values of dns record
2023-04-24 22:26:26 +02:00
Christian Hesse
3f9480f9f2
check-lte-firmware-upgrade: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
4c416cb39e
dhcp-to-dns: handle duplicate leases earlier
2023-04-24 22:26:26 +02:00
Christian Hesse
b1cb4cb10f
check-health: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
f3876b0637
dhcp-to-dns: handle dns record by comment and type
2023-04-24 22:26:26 +02:00
Christian Hesse
7ed70bdb26
check-certificates: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
bac6a72d51
backup-upload: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
637b5e21da
backup-email: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
31553f86a6
backup-cloud: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
fb12aabf3e
global-functions: $DeviceInfo: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
cb338c76a8
global-functions: introduce $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
fb9feea595
check-certificates: add certificate name in notification subject
2023-04-19 22:05:43 +02:00
Christian Hesse
be0bbe80d9
check-routeros-update: add version in notification subject
2023-04-19 22:05:43 +02:00
Christian Hesse
baf6b3ae17
README: make the screenshot match the example
2023-04-19 08:28:32 +02:00
Christian Hesse
69ea231efc
README: make the Telegram QR code a link
2023-04-18 23:14:37 +02:00
Christian Hesse
f7eb123f3d
README: add a donate button to badges
2023-04-18 23:14:37 +02:00
Christian Hesse
5324bffd84
README: generate a donate buttom from shields.io
2023-04-18 23:14:37 +02:00
Christian Hesse
b4fbd65f55
README: note about breaking changes
2023-04-17 11:00:52 +02:00
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
Christian Hesse
650c362ed9
netwatch-notify: support note in notification
2023-03-20 12:35:34 +01:00
Christian Hesse
3b5026ea8d
drop dummy scripts used for migration
...
This now causes expected warnings on first run of $ScriptInstallUpdate.
The migration still works, as we keep `global-config.changes` and
`global-functions`.
2023-03-10 09:58:01 +01:00
Christian Hesse
56ae457d77
global-functions: $ScriptInstallUpdate: add proper version in user agent
...
This allows me to identify what RouterOS versions are run on devices
fetching my scripts, which may helps to decide what incompatible changes
to push.
2023-03-10 09:46:16 +01:00
Christian Hesse
7912091f63
lease-script: make sure not to match self
2023-03-07 22:26:01 +01:00
Christian Hesse
e902e3fdd5
global-functions: $ScriptInstallUpdate: make sure not to match self
2023-03-07 22:26:01 +01:00
Christian Hesse
a832fd04ef
rename scripts and add file extension ".rsc"
...
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00
Christian Hesse
1e6e0646e2
add the notification generator
2023-03-06 21:07:58 +01:00
Christian Hesse
4ca8f83a52
... and update the logo in notifications
2023-03-06 21:07:58 +01:00
Christian Hesse
154a036c64
use a new logo
2023-03-06 21:07:58 +01:00
Christian Hesse
d2d913ec19
check-routeros-update: allow to install all updates automatically...
...
... but with extra hurdle for more awareness of danger.
Let's not send a new notification, intentionally. This feature is
dangerous, and we should not advertise it.
2023-03-06 21:06:48 +01:00
Christian Hesse
a9741336b8
doc/check-routeros-update: update wording and details
2023-03-03 14:08:48 +01:00
Christian Hesse
b0595e53a5
global-functions: $MkDir: drop the compatibility workaround
...
If you are still running RouterOS 7.6 or older add this in your
global-config-overlay:
:global ScriptUpdatesUrlSuffix "\?h=routeros-7.7~1";
... and remeber to revert that change once updated.
2023-02-26 22:27:14 +01:00
Christian Hesse
bfd1361f71
telegram-chat: get the uptime just once
2023-02-26 22:19:36 +01:00
Christian Hesse
02b447212d
telegram-chat: ignore new messages after reboot
...
This script supports multiple devices, and sending offset to discard
messages is delayed to third fetch to make sure all devices get the
message.
This can cause trouble, though: Sending a device a reboot command can
make that device reboot multiple times 🥴 or - even worse - make it
enter an infinite boot loop 😳 if it is the only device.
So let's ignore first messages after reboot.
2023-02-26 22:19:36 +01:00
Christian Hesse
5ea892662f
telegram-chat: send messages in reply
2023-02-26 22:19:30 +01:00
Christian Hesse
b963761874
mod/notification-telegram: support sending in reply
2023-02-24 12:13:44 +01:00
Christian Hesse
8213c5ed61
netwatch-notify: support sending silent notifications
2023-02-24 12:13:35 +01:00
Christian Hesse
fe0460ef6d
INITIAL-COMMANDS: link to new paragraphs
2023-02-17 12:27:47 +01:00
Christian Hesse
da46c42d4a
README: add a paragraph for scheduled automatic updates
2023-02-17 12:23:05 +01:00
Christian Hesse
c247fe5a96
README: move configuration down, make it a separate paragraph
2023-02-17 08:05:15 +01:00
Christian Hesse
49e89070a1
packages-update: put reboot into a function
...
Make the logic even simpler... Let's put the reboot code into a
function. That is volatile, so device does not reboot if it is
rebooted already.
2023-02-16 12:03:46 +01:00
Christian Hesse
7c2ac135e3
packages-update: check version before reboot from scheduler
...
Chances are that the device was rebooted manually... Do not reboot then.
2023-02-16 11:53:05 +01:00
Christian Hesse
95b8a47b81
telegram-chat: log command with failed syntax validation
2023-02-14 23:01:24 +01:00
Christian Hesse
f1ad240e59
telegram-chat: never decrease the local offset
2023-02-14 23:01:24 +01:00
Christian Hesse
77d26e02d4
telegram-chat: add debug message for handled updates
2023-02-14 23:01:16 +01:00
Christian Hesse
2a7576f4e4
telegram-chat: add updateid in log messages
2023-02-14 21:28:15 +01:00
Christian Hesse
c48509683c
check-health: wording: load -> utilization
...
The load is defined as something different...
https://en.wikipedia.org/wiki/Load_(computing)
So let's update the wording and use 'utilization' instead.
---- ✂️ ----
🧮 ️📈 ️ Health warning: CPU utilization
The average CPU utilization on MikroTik is at 76%!
---- ✂️ ----
🧮 ️📉 ️ Health recovery: CPU utilization
The average CPU utilization on MikroTik decreased to 64%.
---- ✂️ ----
2023-02-14 20:24:06 +01:00
Christian Hesse
e50e25c638
doc/check-health: make the voltage limit a separate point
2023-02-13 21:10:35 +01:00
Christian Hesse
b6d2cb44c1
doc/check-health: add line break between screenshots
2023-02-13 21:10:35 +01:00
Christian Hesse
ad75d6e031
README: give hint about converting line endings
2023-02-13 21:10:35 +01:00
Christian Hesse
f5d872a990
global-functions: $PrettyPrint: use $Unix2Dos
2023-02-13 10:36:56 +01:00
Christian Hesse
d54c46ab98
global-functions: introduce $Dos2Unix
2023-02-13 10:36:56 +01:00
Christian Hesse
7d3c4738d0
global-functions: introduce $Unix2Dos
2023-02-13 10:35:27 +01:00
Christian Hesse
62707dc549
ipv6-update: support host addresses in address-list
2023-02-10 11:36:12 +01:00
Christian Hesse
a34d5d7141
ipv6-update: accept a single prefix only
2023-02-09 22:43:09 +01:00
Christian Hesse
769edbcf61
ipv6-update: rename variable
2023-02-09 22:42:36 +01:00
Christian Hesse
c6245b3125
ipv6-update: use identical parameters to find address
2023-02-09 22:10:48 +01:00
Christian Hesse
15fc0b91e9
doc/backup-upload: new option $BackupSendGlobalConfig
2023-02-08 09:44:52 +01:00
Christian Hesse
f2f7d66b2d
doc/backup-email: new option $BackupSendGlobalConfig
2023-02-08 09:44:21 +01:00
Christian Hesse
818638d0f4
backup-upload: use :use inside :execute for global-config-overlay
2023-02-08 09:14:02 +01:00
Christian Hesse
b9eaab8e77
backup-email: use :use inside :execute for global-config-overlay
...
This will add carriage return and line feed, but works around the
limitation of reading just four kilobytes from file.
2023-02-08 09:14:02 +01:00
Christian Hesse
d63db7ea95
global-functions: $ScriptInstallUpdate: use complete property name
2023-02-07 21:20:49 +01:00
Christian Hesse
58a6fac3d9
telegram-chat: use complete property name
2023-02-07 21:19:57 +01:00
Christian Hesse
aee42d31e1
Merge branch 'backup-g-c-o' into next
2023-02-07 21:19:57 +01:00
Christian Hesse
ba730708f5
notify about backup for global-config-overlay
2023-02-07 21:19:57 +01:00
Christian Hesse
5d263ca11e
backup-upload: support uploading global-config-overlay
2023-02-07 21:19:57 +01:00
Christian Hesse
0527503c8e
backup-email: support sending global-config-overlay
2023-02-07 21:19:57 +01:00
Christian Hesse
48bf54644a
global-config: new option to backup global-config-overlay
2023-02-07 20:24:50 +01:00
Christian Hesse
9c066599e8
telegram-chat: handle exceeded file read size
2023-02-04 23:24:44 +01:00
Christian Hesse
600203797b
telegram-chat: no need to :put ...
...
... a simple change to root dir is sufficient.
2023-02-03 22:30:08 +01:00
Christian Hesse
04c26d3d2e
telegram-chat: log with severity debug only...
...
... as failed request are quite common.
2023-02-03 22:01:35 +01:00
Christian Hesse
8a900dce00
telegram-chat: delay confirmation of updates
...
Several devices can communicate with the same bot, and we want all of
them to receive their updates. However this can be tricky, as...
* ... sometimes internet connection can be unreliable or saturated.
* ... device can be busy with long running command.
* ... the Telegram bot api servers seem to implement what ever kind of
rate limiting. Anybody can give details?
So let's confirm the update id after third request only. 😁 This gives
delayed devices some extra chances to catch up.
2023-02-03 21:59:26 +01:00
Christian Hesse
4bc5b9cf5f
telegram-chat: log warning only when trying to activate
2023-02-03 09:56:30 +01:00
Christian Hesse
9d1cf87489
telegram-chat: handle missing username
2023-02-03 09:53:49 +01:00
Christian Hesse
490a738af1
backup-email: wait for the mail to be sent
2023-02-02 11:52:23 +01:00
Christian Hesse
c47c9a2906
telegram-chat: discard messages without text
2023-02-02 11:30:49 +01:00
Christian Hesse
82003bc7d1
telegram-chat: allow to modify the time to wait for command
...
For now this is a hidden settings... Do we want this to be documented?
2023-02-02 11:24:45 +01:00
Christian Hesse
978c03131a
global-functions: $WaitForFile: use delay instead of iterations
2023-02-02 11:20:14 +01:00
Christian Hesse
b794d98cbb
telegram-chat: reply with a hint when untrusted...
...
... but only when activating via identity.
2023-02-02 10:06:42 +01:00
Christian Hesse
08383daa5c
telegram-chat: always reply to origin chat
2023-02-02 10:06:42 +01:00
Christian Hesse
2cb74f0269
mod/notification-telegram: support sending to specific chatid
2023-02-02 09:11:34 +01:00
Christian Hesse
bf1af61d2d
doc/telegram-chat: give an example on how to work around command runtime
2023-02-01 17:28:45 +01:00
Christian Hesse
049a029170
doc/telegram-chat: add hint on output size
2023-02-01 14:30:52 +01:00
Christian Hesse
8dd53c80f5
telegram-chat: modify text if no output available
2023-02-01 14:26:28 +01:00
Christian Hesse
b5399099c6
telegram-chat: also give a hint on failed syntax validation
...
... and drop the warning in log instead.
2023-02-01 11:29:56 +01:00
Christian Hesse
a073835667
telegram-chat: ... and give a hint on failure
2023-02-01 11:29:56 +01:00
Christian Hesse
c2cf05e9e5
telegram-chat: handle error in command...
2023-02-01 11:29:56 +01:00
Christian Hesse
44c30efbcd
telegram-chat: give a hint if command is still running
2023-02-01 11:29:56 +01:00
Christian Hesse
7e7987afec
doc/telegram-chat: add hint on command runtime
2023-02-01 11:29:56 +01:00
Christian Hesse
8f47bc9836
doc/telegram-chat: warn about changing group id
2023-02-01 11:29:51 +01:00
Christian Hesse
8b488cb82f
doc/telegram-chat: allow bots to receive messages in a group
2023-01-31 18:11:22 +01:00
Christian Hesse
63de875129
daily-psk: make qr-code url configurable
2023-01-31 17:27:15 +01:00
Christian Hesse
cbc547332e
check-routeros-update: drop check for cap
...
This becomes complicated with legacy wireless and wifiwave2 package, old
and new CAPsMAN. Let's just drop the check.
2023-01-31 17:27:15 +01:00
Christian Hesse
819c7294c6
introduce telegram-chat
...
Druvis from Mikrotik produced a video "MikroTik Telegram bot - Chat with
your Router?". He shows his script to chat with a Router via Telegram
bot to send it commands: https://youtu.be/KLX6j3sLRIE
This script is kind of limited and has several issues... 🥴
Let's make it robust, usable, multi-device capable and just fun! 😁
(Sadly Mikrotik has a policy to not allow links in Youtube comments.
Thus my comment with several hints was removed immediately. If anybody
is in contact with Druvis... Please tell him about this script!)
2023-01-31 17:26:51 +01:00
Christian Hesse
f666d2f8ff
global-functions: $WaitForFile: allow to give iterations...
...
... to increase timeout. Every iteration is about 100ms.
2023-01-31 15:18:17 +01:00
Christian Hesse
f62328ee8d
check-certificates: handle decryption failures and warn
...
If a download succeeds at least one of the given passphrases is
expected to decrypt a key in the file.
2023-01-26 21:35:35 +01:00
Christian Hesse
b0d3e3d5f4
global-functions: $LogPrintExit2: always print the message...
...
... even on error. Not sure why and when this broke.
2023-01-26 21:04:59 +01:00
Christian Hesse
5c3585cd98
update list of contributors
2023-01-24 13:18:17 +01:00
Christian Hesse
555d0e8bfc
check-certificates: make the warning time configurable
2023-01-23 17:46:03 +01:00
Christian Hesse
36a8938dea
doc/check-certificates: document the renew time
2023-01-23 17:45:22 +01:00
Christian Hesse
f9839647d4
global-functions: $MkDir: catch error on creating tmpfs
2023-01-23 16:21:30 +01:00
Christian Hesse
c8dcd92e6b
global-functions: $MkDir: create with reasonable tmpfs-max-size
...
Giving no tmpfs-max-size breaks with RouterOS 7.8beta2, where a size
limit is enforced.
2023-01-23 16:21:02 +01:00
Christian Hesse
c7498c6397
daily-psk: fixes for CAPsMAN
2023-01-22 12:16:06 +01:00
Christian Hesse
e6c256cd4b
check-health: notify about new features
2023-01-20 23:20:53 +01:00
Christian Hesse
e9a426a798
check-health: silently exit without health readings...
...
... but after checking CPU load and free RAM.
2023-01-20 23:20:53 +01:00
Christian Hesse
6780e1a24c
check-health: monitor free RAM
...
---- ✂️ ----
🗃️ 📉 ️ Health warning: free RAM
The available free RAM on MikroTik is at 18% (47MiB)!
---- ✂️ ----
🗃️ 📈 ️ Health recovery: free RAM
The available free RAM on MikroTik increased to 65% (168MiB).
---- ✂️ ----
2023-01-20 23:20:53 +01:00
Christian Hesse
75bd14267e
check-health: monitor CPU load
...
---- ✂️ ----
🧮 ️📈 ️ Health warning: CPU load
The average CPU load on MikroTik is at 76%!
---- ✂️ ----
🧮 ️📉 ️ Health recovery: CPU load
The average CPU load on MikroTik decreased to 64%.
---- ✂️ ----
2023-01-20 23:13:27 +01:00
Christian Hesse
2694f8d2b1
global-functions: $RequiredRouterOS: check for valid version string
2023-01-20 11:26:53 +01:00
Christian Hesse
9033e16921
global-functions: use new functionality for version check
2023-01-20 11:26:53 +01:00
Christian Hesse
de9dde1b14
global-functions: $ScriptInstallUpdate: add a version check for scripts
...
New RouterOS releases bring new features, and thus new syntax.
Installing a new script on old RouterOS results in syntax errors. We
want to give clear warning messages, so by adding an extra comment into
the script...
# requires RouterOS, version=7.8beta3
... installing on unsupported RouterOS version is mitigated.
2023-01-20 11:26:53 +01:00
Christian Hesse
9887ab0849
lease-script: use $Grep
2023-01-20 11:26:53 +01:00
Christian Hesse
b834517baa
global-functions: implement $Grep...
...
... that returns the first line that matches a pattern.
2023-01-20 11:26:53 +01:00
Christian Hesse
072d349473
log-forward: cache the result of $LogForwardFilterLogForwarding
...
Looks like the function is called for every message to match otherwise. 😳
2023-01-20 11:26:53 +01:00
Christian Hesse
2294ac77a8
doc/log-forward: add tips and tricks
2023-01-20 00:34:27 +01:00
Christian Hesse
cfb31e840c
doc/log-forward: add some more details
2023-01-18 11:53:57 +01:00
Christian Hesse
03fb459ea4
ipsec-to-dns: handle "CN=" from peer's id
...
This was missing in commit bff6689b10 and
cause the dns entry to be delete and re-created over and over again.
2023-01-17 12:34:05 +01:00
Christian Hesse
23e5c01a42
global-functions: $MkDir: no early continue for dir "tmpfs"...
...
... as we want a RAM disk.
2023-01-12 23:43:38 +01:00
Christian Hesse
aabc6b22fe
doc/daily-psk: drop the start-date from scheduler
2023-01-12 23:28:37 +01:00
Christian Hesse
ab306ad3c7
doc/daily-psk: add missing bits for CAPsMAN
2023-01-12 23:26:23 +01:00
Christian Hesse
f67dc0218b
global-functions: $ScriptInstallUpdate: handle config version decrease...
...
... and log a warning.
2023-01-12 15:40:05 +01:00
Christian Hesse
47a657d25c
mod/notification-*: support extra text (or emojis 🚀 ) in notification tags
2023-01-12 15:40:05 +01:00
Christian Hesse
c8e22f33c2
mod/notification-email: split off generation of subject
2023-01-11 12:28:31 +01:00
Christian Hesse
a953a8fa59
mod/notification-email: move $QuotedPrintable (from global-functions)
...
This is used for e-mail only...
2023-01-11 12:28:31 +01:00
Christian Hesse
329bef94df
log-forward: do not declare unused function
2023-01-11 12:28:31 +01:00
Christian Hesse
868557a24a
log-forward: generate filter in mod/notification-email
2023-01-11 12:28:31 +01:00
Christian Hesse
34ed387343
use arrows with emoji representation
...
We had...
◀ Go back to main README
▲ Go back to top
... and switch to...
⬅️ Go back to main README
⬆️ Go back to top
2023-01-11 12:28:31 +01:00
Christian Hesse
a38272e15e
README: install custom script from routeros-scripts-custom
2023-01-11 12:28:31 +01:00
Christian Hesse
f211a8d099
README: add linked custom scripts & modules
2023-01-10 21:21:58 +01:00
Christian Hesse
80671e3803
doc/sms-forward: take care of harmful commands in hooks
2023-01-10 08:58:33 +01:00
Christian Hesse
1ea613e8a0
update list of contributors
2023-01-10 08:58:33 +01:00
Anatoly Bubenkov
ea09a18d3f
sms-forward: support hooks
2023-01-10 08:58:33 +01:00
Christian Hesse
88b34cfb39
doc/sms-forward: reorder configuration
2023-01-09 15:35:57 +01:00
Anatoly Bubenkov
03ca9464df
.gitignore: ignore folder settings file
2023-01-02 23:49:26 +01:00
Christian Hesse
84be9123ef
.gitignore: ignore files created by patch command
2023-01-02 23:49:26 +01:00
Christian Hesse
b730264d80
.gitignore: add comments
2023-01-02 23:49:26 +01:00
Christian Hesse
d1caf2bf10
backup-upload: keep floppy emoji for failure
2023-01-02 23:49:26 +01:00
Christian Hesse
4f931db1c3
backup-cloud: keep floppy emoji for failure
2023-01-02 23:49:26 +01:00
Christian Hesse
2f774f723d
update copyright for 2023
2023-01-02 23:49:26 +01:00
Christian Hesse
9983a69188
README: RouterOS v7 path syntax
...
Missed one in b6ddc5968e7a3393bb6e9b0c0ccf96379efc62b4...
2022-12-19 09:49:45 +01:00
Christian Hesse
a3e2822a0a
backup-upload: switch path to tmpfs
2022-12-13 21:50:32 +01:00
Christian Hesse
d3351bcf18
backup-email: switch path to tmpfs
2022-12-13 21:50:32 +01:00
Christian Hesse
f8258b90a7
backup-upload: create directory later
2022-12-13 21:50:32 +01:00
Christian Hesse
8b2571dc49
backup-email: create directory later
2022-12-13 21:50:32 +01:00
Christian Hesse
16bfe4de7e
global-functions: $MkDir: create a tmpfs (RAM disk)...
...
... if the path starts with "tmpfs/". This helps to mitigate flash wear.
2022-12-13 21:50:32 +01:00
Christian Hesse
1579330864
global-functions: $MkDir: create directories recursively
2022-12-13 21:25:07 +01:00
Christian Hesse
58f769ac00
global-functions: $MkDir: rename internal variable
2022-12-13 10:37:56 +01:00
Christian Hesse
446d5c89fc
global-functions: $MkDir: fail if non-directory path exists
2022-12-13 10:31:41 +01:00
Christian Hesse
9c42263988
global-functions: check RouterOS version before loading modules
2022-12-12 15:16:36 +01:00
Christian Hesse
7f7c3a7a70
global-functions: $SymbolByUnicodeName: append variation selector-16...
...
... to specify that the preceding character should be displayed with emoji
presentation.
https://unicode-table.com/en/FE0F/
2022-12-06 16:41:14 +01:00
Christian Hesse
8854d03ea2
global-functions: introduce $IsMacLocallyAdministered...
...
... and use it in $GetMacVendor.
2022-11-29 17:07:40 +01:00
Christian Hesse
0ad94b042d
netwatch-notify: support type https-get
...
... which was introduced in RouterOS 7.7beta8.
2022-11-25 08:39:07 +01:00
Christian Hesse
ad85f22540
global-functions: $IsTimeSync: no cloud on x86
2022-11-22 22:24:59 +01:00
Christian Hesse
ef7360453f
global-functions: $IsTimeSync: no cloud with CHR free license
2022-11-22 22:23:51 +01:00
Christian Hesse
a7bdebbfb0
doc/mod/notification-email: mention correct time
2022-11-22 21:49:34 +01:00
Christian Hesse
89c0fde465
mod/notification-email: put status in scheduler comment
2022-11-22 21:28:45 +01:00
Christian Hesse
03d1927067
mod/notification-email: set scheduler interval earlier
...
... to make sure the checks are not re-run every second.
2022-11-22 21:28:26 +01:00
Christian Hesse
ab3047ee82
mod/notification-email: reference scheduler from variable
2022-11-22 21:27:51 +01:00
Christian Hesse
c2a29da9f2
global-functions: $ScriptLock: use shorter random string
...
... but with all characters from alphabet with $GetRandom20CharAlNum.
2022-11-22 19:05:29 +01:00
Christian Hesse
3c4595e82b
global-functions: $MkDir: use shorter random string
...
... but with all characters from alphabet with $GetRandom20CharAlNum.
2022-11-22 19:05:02 +01:00
Christian Hesse
514d241969
README: link to Github pull requests
2022-11-17 23:02:02 +01:00
Christian Hesse
6f79eb996a
mod/notification-email: make sure the scheduler interval is never zero
2022-11-17 22:34:08 +01:00
Christian Hesse
b517b26517
mod/notification-email: check that attachment exists
2022-11-17 22:18:16 +01:00
Christian Hesse
71d1f2a781
mod/notification-email: convert to array earlier
2022-11-17 22:13:02 +01:00
Christian Hesse
9f02f04334
mod/notification-email: fix typo
2022-11-17 22:10:52 +01:00
Christian Hesse
7594345da8
README: copy *relevant* configuration only
2022-10-31 21:45:36 +01:00
Christian Hesse
6822e71564
netwatch-notify: cache the result
...
If this script runs from terminal this will not change... 😜
So cache the result.
Co-authored-by: Michael Gisbers <michael@gisbers.de>
2022-10-21 15:00:42 +02:00
Michael Gisbers
a0163aa487
netwatch-notify: always show messages when run from terminal
...
Co-authored-by: Christian Hesse <mail@eworm.de>
2022-10-21 15:00:41 +02:00
Christian Hesse
c3da4ed696
netwatch-notify: stop flooding the log after down notification
...
This will now log all messages before notification, and every two hours
(or scheduler interval * 120) after.
2022-10-21 15:00:39 +02:00
Christian Hesse
a1ef912ec7
Merge branch 'notifications' into next
...
These are generated with my 'RouterOS-Scripts Notification Generator':
https://eworm.de/ros/notification/
2022-10-20 11:37:35 +02:00
Christian Hesse
aef88e313b
doc/sms-forward: update notification
...
---- ✂️ ----
📨 SMS Forwarding from 7277
Received this message by MikroTik from 7277:
On oct/17/2022 13:44:10 GMT -0 type class-0:
Welcome to our network!
---- ✂️ ----
2022-10-20 11:37:09 +02:00
Christian Hesse
ee7836263f
doc/netwatch-notify: update notifications
...
---- ✂️ ----
❌ Netwatch Notify: example.com down
The host 'example.com' (93.184.216.34) is down since oct/19/2022 16:27:03.
---- ✂️ ----
✅ Netwatch Notify: example.com up
The host 'example.com' (93.184.216.34) is up since oct/19/2022 17:03:00.
It was down for 6 checks since oct/19/2022 16:27:03.
---- ✂️ ----
2022-10-20 11:37:05 +02:00
Christian Hesse
4f8a2bd8e2
doc/log-forward: update notification
...
---- ✂️ ----
⚠️ Log Forwarding
The log on MikroTik contains these 3 messages after 6d23:55:18 uptime.
● 13:24:02 script;error backup-cloud: Failed uploading backup for MikroTik to cloud!
● 13:24:17 system;info;account user admin logged in from 192.168.88.177 via ssh
● 13:24:57 system;info;account user admin logged out from 192.168.88.177 via ssh
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
694f4e2894
doc/daily-psk: update notification
...
---- ✂️ ----
📅 daily PSK Guest-Wifi
This is the daily PSK on MikroTik:
SSID: Guest-Wifi
PSK: S3cr3tStr1ng
Date: oct/18/2022
A client device specific rule must not exist!
🔗 https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi?scale=8&level=1&ssid=Guest-Wifi&pass=S3cr3tStr1ng
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
dddbd3da27
doc/collect-wireless-mac: update notification
...
---- ✂️ ----
📱 48:F1:7F:D0:E5:4E connected to Wifi
A device with unknown MAC address connected to Wifi on MikroTik.
Controller: MikroTik
Interface: wl5-wifi
SSID: Wifi
MAC: 48:F1:7F:D0:E5:4E
Vendor: Intel Corporate
Hostname: host-523c8e0e
Address: 192.168.20.254
DNS name: host-523c8e0e.dhcp.MikroTik.example.com
Date: oct/20/2022 09:21:56
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
6940f851b0
doc/check-routeros-update: update notification
...
---- ✂️ ----
✨ RouterOS update
A new RouterOS version 7.6 is available for MikroTik.
Hostname: MikroTik
Board name: CHR
Architecture: x86_64
RouterOS:
Channel: stable
Installed: 7.5
Available: 7.6
RouterOS-Scripts:
Version: 85
🔗 https://mikrotik.com/download/changelogs/stable-release-tree
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
863cf9cae0
doc/check-lte-firmware-upgrade: update notification
...
---- ✂️ ----
✨ LTE firmware upgrade
A new firmware version R11e-LTE6_V033 is available for LTE interface lte on MikroTik.
Interface: MikroTik R11e-LTE6
Installed: R11e-LTE6_V027
Available: R11e-LTE6_V033
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
692ed21262
doc/check-health: update notifications
...
---- ✂️ ----
⚡ 📉 Health warning: voltage
The voltage on MikroTik jumped more than 10%.
old value: 16.2V
new value: 12.4V
---- ✂️ ----
🔥 Health warning: temperature
The temperature on MikroTik is above threshold: 51°C
---- ✂️ ----
✅ Health recovery: temperature
The temperature on MikroTik dropped below threshold: 47°C
---- ✂️ ----
❌ Health warning: psu1-state
The power supply unit 'psu1-state' on MikroTik failed!
---- ✂️ ----
✅ Health recovery: psu1-state
The power supply unit 'psu1-state' on MikroTik recovered!
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
fadf4d5008
doc/check-certificates: update notification
...
---- ✂️ ----
🔏 Certificate renewed
A certificate on MikroTik has been renewed.
Name: example.com
CommonName: example.com
Private key: available
Fingerprint: cc54cdd01fcd7698ecb71213874be776906eb33d26cd57754d168632f14c4c8b
Issuer: R3
Validity: sep/08/2022 03:50:56 to dec/07/2022 03:50:55
Expires in: 8w 3d 12:03:30
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
98844d85d5
doc/backup-upload: update notification
...
---- ✂️ ----
💾 ⬆️ Backup & Config upload
Backup and config export upload for MikroTik.
Hostname: MikroTik
Board name: CHR
Architecture: x86_64
RouterOS:
Channel: stable
Installed: 7.6
RouterOS-Scripts:
Version: 85
Backup file: MikroTik_example_com.backup
Config file: MikroTik_example_com.rsc
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
3733e0a919
doc/backup-cloud: update notification
...
---- ✂️ ----
💾 ☁️ Cloud backup
Uploaded backup for MikroTik to cloud.
Hostname: MikroTik
Board name: CHR
Architecture: x86_64
RouterOS:
Channel: stable
Installed: 7.6
RouterOS-Scripts:
Version: 85
Name: cloud-20221020-092419
Size: 370767 B (362 KiB)
Download key: LLDBfPcWXxmSetWilqeJX5V
---- ✂️ ----
2022-10-20 11:28:09 +02:00
Christian Hesse
8c89fb0a4e
README: update notification
...
---- ✂️ ----
📌 News and configuration changes
The configuration version on MikroTik increased to 85, current configuration may need modification. Please review and update global-config-overlay, then re-run global-config.
Changes:
● Support for e-mail notifications moved to a module. It is installed automatically if required.
● Dropped 'netwatch-syslog', filtering in firewall is advised.
---- ✂️ ----
2022-10-20 10:01:04 +02:00
Christian Hesse
4106b199bf
mod/notification-telegram: drop 'Telegram' from wording
2022-10-19 22:46:23 +02:00
Christian Hesse
fe87e9551d
firmware-upgrade-reboot: update wording, give version
2022-10-19 11:57:52 +02:00
Christian Hesse
bff6689b10
ipsec-to-dns: strip "CN=" from peer's id
2022-10-19 08:54:11 +02:00
Christian Hesse
621154ab83
ipsec-to-dns: remove debug output
...
Oops... 😳
This sneaked in with initial commit 862417b8d3
("add 'ipsec-to-dns'").
2022-10-19 08:45:40 +02:00
Christian Hesse
2f8e8b7448
update-gre-address: strip "CN=" from peer's id
...
The prefix "CN=" is now added in RouterOS 7.6... Let's match with and
without the prefix in comment.
2022-10-18 22:43:42 +02:00
Christian Hesse
640cb81119
netwatch-notify: fix the count...
...
This broke in commit 6f772e92a6
("netwatch-notify: rename array element") where not only the array
element but also the option was renamed.
2022-10-14 22:39:21 +02:00
Christian Hesse
493d534706
update-tunnelbroker: drop extra detection, use response from update
...
Why hammer on another service? The tunnelbroker response contains the
address we need. So send the update every time, and use that
information.
2022-10-09 23:56:53 +02:00
Christian Hesse
e7995fa06b
update-tunnelbroker: get public address from website
...
This is a good condidate:
https://showipv6.de/
We can drop the cloud code, which seems to be unreliable in somd
situations.
2022-10-09 23:56:53 +02:00
Christian Hesse
c95cbdbc1e
doc/update-tunnelbroker: give more hints on expected config
2022-10-09 00:00:50 +02:00
Christian Hesse
16e93018ef
update-tunnelbroker: work around timing issue
...
Looks like fetch command has a timing issue with the tunnelbroker
endpoint... We have to try several times to work around this.
Consider the update failed on third error.
2022-10-08 23:06:22 +02:00
Christian Hesse
ebaa9b617d
update-tunnelbroker: add error handling for fetch command
2022-10-08 22:38:31 +02:00
Christian Hesse
dd22dfd26d
backup-email: check if dependency for sending e-mail is installed
2022-09-29 10:31:54 +02:00
Christian Hesse
10182949ea
global-functions: $ScriptInstallUpdate: disable notification only...
...
... if requested, but keep output and logs.
2022-09-28 09:17:32 +02:00
Christian Hesse
b18ca62dbd
global-functions: $ScriptInstallUpdate: drop dead code...
2022-09-28 09:17:12 +02:00
Christian Hesse
5120aa096f
global-functions: $ScriptInstallUpdate: drop code for permission workaround
...
This is no longer used as 'netwatch-syslog' is gone.
2022-09-25 22:18:44 +02:00
Christian Hesse
10bf3c758f
drop 'learn-mac-based-vlan' and 'manage-umts'
...
This was undocumented and scripts did never catch up with general
quality expectations, for example global-config and global functions
were not used.
If you need the code get it from git history. 😜
2022-09-25 22:18:44 +02:00