aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2025-01-29mod/ipcalc: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29mod/inspectvar: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29mode-button: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29mod/bridge-port-vlan: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29mod/bridge-port-to: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29log-forward: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29leds-toggle-mode: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29leds-night-mode: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29leds-day-mode: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29lease-script: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29ipv6-update: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29ipsec-to-dns: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29ip-addr-bridge: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29hotspot-to-wpa: use short url rsc.eworm.deGravatar Christian Hesse3-6/+6
2025-01-29hotspot-to-wpa-cleanup: use short url rsc.eworm.deGravatar Christian Hesse3-6/+6
2025-01-29gps-track: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29global-wait: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29global-functions: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29global-config: use short url rsc.eworm.deGravatar Christian Hesse1-3/+3
2025-01-29global-config-overlay: use short url rsc.eworm.deGravatar Christian Hesse1-3/+3
2025-01-29fw-addr-lists: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29firmware-upgrade-reboot: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29dhcp-to-dns: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29dhcp-lease-comment: use short url rsc.eworm.deGravatar Christian Hesse4-8/+8
2025-01-29daily-psk.template: use short url rsc.eworm.deGravatar Christian Hesse4-8/+8
2025-01-29collect-wireless-mac: use short url rsc.eworm.deGravatar Christian Hesse4-8/+8
2025-01-29check-routeros-update: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29check-lte-firmware-upgrade: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29check-health: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29check-certificates: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29certificate-renew-issued: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29capsman-rolling-upgrade: use short url rsc.eworm.deGravatar Christian Hesse3-6/+6
2025-01-29capsman-download-packages: use short url rsc.eworm.deGravatar Christian Hesse3-6/+6
2025-01-29backup-upload: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29backup-partition: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29backup-email: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29backup-cloud: use short url rsc.eworm.deGravatar Christian Hesse1-2/+2
2025-01-29accesslist-duplicates: use short url rsc.eworm.deGravatar Christian Hesse4-8/+8
2025-01-29unattended-lte-firmware-upgrade: require RouterOSGravatar Christian Hesse1-0/+2
2025-01-24fw-addr-lists: use my static mirrorGravatar Christian Hesse1-3/+3
2025-01-24BRANCHES: adopt new default urlGravatar Christian Hesse1-3/+3
2025-01-24global-config: download scripts from rsc.eworm.deGravatar Christian Hesse1-2/+4
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-22fw-addr-lists: spamhaus.org returned to 'GTS Root R4'Gravatar Christian Hesse2-3/+3
2025-01-09ppp-on-up: release only bound ipv6 dhcp clientsGravatar Christian Hesse1-1/+1
2025-01-06packages-update: refuse when running from backup partitionGravatar Christian Hesse1-0/+6
2025-01-06check-routeros-update: refuse when running from backup partitionGravatar Christian Hesse1-0/+7
2025-01-06backup-upload: refuse when running from backup partitionGravatar Christian Hesse1-0/+8
2025-01-06backup-partition: refuse when running from backup partitionGravatar Christian Hesse1-0/+7
2025-01-06backup-email: refuse when running from backup partitionGravatar Christian Hesse1-0/+8
2025-01-06backup-cloud: refuse when running from backup partitionGravatar Christian Hesse1-0/+8
2025-01-02update copyright for 2025Gravatar Christian Hesse77-77/+77
2024-12-30global-functions: $WaitForFile: drop the first workaroundGravatar Christian Hesse1-10/+0
This reverts commit 8231c3e833ee83a118f4d8395c097e6a9f312c2f. Truned out this workaround was not sufficient, see the follow-up in commit 191cc1b952b469c474b0181ebdee0ccfd47ae75b for details. But possibly the second one does it on its own? Reverting this for a test run.
2024-12-30global-functions: $FetchHuge: another workaround for complete fileGravatar Christian Hesse1-1/+5
Turns out the workaround in $WaitForFile (commit 8231c3e833ee83a118f4d8395c097e6a9f312c2f) 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-30fw-addr-lists: spamhaus.org returned to 'ISRG Root X1'Gravatar Christian Hesse2-3/+3
This reverts commit 4d8dce97691ad090091574a790449a7bd564023c.
2024-12-25global-functions: $ParseKeyValueStore: support JSON as inputGravatar Christian Hesse1-0/+7
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-25global-functions: $ParseKeyValueStore: properly return boolean valuesGravatar Christian Hesse1-0/+2
2024-12-25global-functions: $ParseKeyValueStore: split key and value...Gravatar Christian Hesse1-2/+3
... into separate variables.
2024-12-17mod/notification-ntfy: add basic authentication in headersGravatar Christian Hesse1-3/+6
This makes it a bit easier and straight forward as we pass the headers anyway.
2024-12-17mod/notification-ntfy: support authentication with bearer tokenGravatar Christian Hesse3-0/+9
Closes: https://github.com/eworm-de/routeros-scripts/issues/86
2024-12-17fw-addr-lists: do not fail on invalid json dataGravatar Christian Hesse1-1/+3
2024-12-17mod/notification-email: $FlushEmailQueue: just return on empty queueGravatar Christian Hesse1-0/+4
2024-12-17mod/notification-email: $FlushEmailQueue: move the check up...Gravatar Christian Hesse1-4/+6
... as this needs to be done before creating a scheduler. 😜 Also remove the scheduler and return.
2024-12-17mod/notification-email: $FlushEmailQueue: create scheduler if missing...Gravatar Christian Hesse1-2/+8
... as it is required to be modified several times below.
2024-12-17mod/notification-email: $FlushEmailQueue: return on purgeGravatar Christian Hesse1-0/+6
2024-12-17mod/notification-email: $FlushEmailQueue: return on successGravatar Christian Hesse1-3/+4
2024-12-17global-functions: $WaitForFile: delay until "complete"...Gravatar Christian Hesse1-0/+10
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-17mode-button: support led toggle without extra scriptGravatar Christian Hesse1-1/+1
2024-12-17leds-toggle-mode: toggle in one call...Gravatar Christian Hesse1-5/+1
... and drop the condition.
2024-12-17mod/notification-email: increase retry interval on failureGravatar Christian Hesse1-2/+4
2024-12-17mod/notification-email: drop useless safeguardGravatar Christian Hesse1-1/+1
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-09Merge branch 'func-exit-error' into nextGravatar Christian Hesse12-39/+77
2024-12-09mode-button: $ModeButtonScheduler: explicitly name the variableGravatar Christian Hesse1-4/+8
2024-12-09mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09check-routeros-update: pass script name to local functionGravatar Christian Hesse1-6/+8
2024-12-09mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09Merge branch 'exit-error' into nextGravatar Christian Hesse57-57/+359
2024-12-09mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional ↵Gravatar Christian Hesse1-2/+4
error
2024-12-09global-functions: $FetchHuge: passing boolean to function is still broken... ↵Gravatar Christian Hesse1-4/+4
🤨
2024-12-09update-tunnelbroker: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+7
2024-12-09mod/notification-telegram: $SendTelegram: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09update-gre-address: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-12-09mod/notification-telegram: $FlushTelegramQueue: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09telegram-chat: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+8
2024-12-09mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-2/+4
2024-12-09sms-forward: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+7
2024-12-09mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09sms-action: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-12-09mod/notification-matrix: $SendMatrix: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09ppp-on-up: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-12-09mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09packages-update: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+13
2024-12-09mod/notification-email: $SendEMail: use $ExitError to indicate unintentional ↵Gravatar Christian Hesse1-2/+4
error
2024-12-09ospf-to-leds: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-12-09mod/notification-email: $FlushEmailQueue: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error
2024-12-09netwatch-notify: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+5
2024-12-09mod/ipcalc: $IPCalc: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-2/+4
2024-12-09netwatch-dns: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+8
2024-12-09mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-2/+4
2024-12-09mode-button: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+4
2024-12-09mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate ↵Gravatar Christian Hesse1-2/+4
unintentional error