aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2019-05-02check-certificates: give issuer info on locally issued certificates•••Certificates issued locally do not have an 'issuer' property, but a 'ca' one. Looks like either of both is filled, so just concatenate. Gravatar Christian Hesse1-1/+2
2019-04-30global-functions: $CertificateAvailable: fetch by CommonName•••Now that we have a proper $UrlEncode function... Fetch certificates by CommonName. Also remove the PEM after import. Gravatar Christian Hesse7-11/+15
2019-04-30global-functions: add $WaitForFile, wait for file on fetch•••The fetch command is asynchronous, the file is not guaranteed to be available when command terminates. I opened an issue at Mikrotik support (Ticket#2019041722004999), their answer: > You should perform a check in a loop. > :delay until file exist > > That can happen also with any configuration not just files. So add a function to wait for a file with given name. I have not seen this with other configuration, though. Gravatar Christian Hesse5-4/+35
2019-04-16daily-psk-schedule: try to rotate ntp after five minutes uptimeGravatar Christian Hesse1-0/+3
2019-04-11check-certificates: make sure fingerprint is a string•••This makes sure the condition below works for certificate templates, which do not have a fingerprint. Gravatar Christian Hesse1-1/+1
2019-04-11check-certificates: do not send notification for templatesGravatar Christian Hesse1-1/+1
2019-04-11check-certificates: always return a string in $GetIssuerCNGravatar Christian Hesse1-0/+1
2019-04-10check-certificates: add url encoding for certificate downloadGravatar Christian Hesse1-4/+6
2019-04-10check-certificates: try to fetch PEM and P12 fileGravatar Christian Hesse1-4/+10
2019-04-10check-certificates: use full path...•••... to make sure syntax does not break if package is not installed. Gravatar Christian Hesse1-3/+3
2019-04-10check-certificates: just change certificates, no loopGravatar Christian Hesse1-12/+4
2019-04-09drop deprecated mode= for fetchGravatar Christian Hesse7-8/+8
2019-04-05sms-forward: group messages for same senderGravatar Christian Hesse1-15/+26
2019-04-05global-config: change duplicate word from daily pskGravatar Christian Hesse1-1/+1
2019-04-04ipv6-update: fix with prefix containing section(s) of zerosGravatar Christian Hesse1-3/+6
2019-04-03daily-psk: use the template systemGravatar Christian Hesse3-2/+8
2019-04-03always write warnings and errors to logGravatar Christian Hesse10-12/+25
2019-04-03script-updates: clear variable after useGravatar Christian Hesse1-0/+1
2019-04-03script-updates: send global-config changes notification just onceGravatar Christian Hesse2-2/+7
2019-04-02script-updates: add option to ignore global-config changeschange-4Gravatar Christian Hesse4-3/+6
2019-04-01check-certificates: support multiple passphraseschange-3Gravatar Christian Hesse4-4/+10
2019-04-01script-updates: add changelog for global configurationchange-2change-1Gravatar Christian Hesse2-1/+30
2019-04-01README: add hint on features for specific scriptsGravatar Christian Hesse1-0/+3
2019-04-01README: drop hint on old branch•••Now that release channel 'long-term' is at 6.43.x... Gravatar Christian Hesse1-3/+0
2019-03-29check-routeros-update: link to changelog in notificationGravatar Christian Hesse1-1/+2
2019-03-28check-certificates: show remaining timeGravatar Christian Hesse1-8/+16
2019-03-28global-functions: prevent infinite loopGravatar Christian Hesse1-2/+4
2019-03-25check-certificates: update certificates for ipsec identitiesGravatar Christian Hesse1-1/+12
2019-03-20global-functions: encode all non-alphanumeric charactersGravatar Christian Hesse1-2/+5
2019-03-16accesslist-duplicates: Read index from terminal inkeyGravatar Christian Hesse3-9/+9
2019-03-12link the presentation from MUM Europe 2019 in ViennaGravatar Christian Hesse1-0/+7
2019-03-06daily-psk: prepare for caps-man•••Signed-off-by: Christian Hesse <mail@eworm.de> Gravatar Michael Gisbers4-7/+190
2019-03-06daily-psk: encode ssid and pass in url•••Signed-off-by: Christian Hesse <mail@eworm.de> Gravatar Michael Gisbers1-1/+3
2019-03-06check-certificates: split loop for certificate renew and warning•••This allows to have differnt time values. Gravatar Christian Hesse1-20/+27
2019-02-28global-functions: remove extra check in $DownloadPackage•••Should be fixed in RouterOS 6.44rc1 with changelog: *) fetch - improved file downloading to slow memory; routeros-6.44rc1Gravatar Christian Hesse1-7/+0
2019-02-22check-routeros-update: default in capital letter•••Also use square brackets as RouterOS does. Gravatar Christian Hesse1-1/+1
2019-02-21collect-wireless-mac: use $ScriptLockGravatar Christian Hesse3-0/+9
2019-02-21global-functions: add $ScriptLockGravatar Christian Hesse1-0/+10
2019-02-21check-routeros-update: allow interactive update from terminalGravatar Christian Hesse1-6/+19
2019-02-21global-functions: drop $Read, use :return directlyGravatar Christian Hesse4-14/+3
2019-02-19check-routeros-update: give board name and modelGravatar Christian Hesse1-1/+3
2019-02-19check-routeros-update: use new script 'packages-update'Gravatar Christian Hesse1-4/+5
2019-02-19add script 'packages-update'Gravatar Christian Hesse1-0/+29
2019-02-19check-routeros-update: run installation without-pagingGravatar Christian Hesse1-1/+1
2019-02-14capsman-download-packages: split off capsman-rolling-upgradeGravatar Christian Hesse2-8/+25
2019-02-14global-functions: detect failed package downloadsGravatar Christian Hesse1-1/+9
2019-02-13capsman-download-packages: use $CleanFilePathGravatar Christian Hesse1-4/+2
2019-02-13global-functions: introduce and use $CleanFilePathGravatar Christian Hesse1-4/+21
2019-02-13global-functions: remove file on failed downloadGravatar Christian Hesse1-3/+9
2019-02-11gps-track: replace http-content-type with http-header-field•••This changed in 6.44beta75. routeros-6.44beta75-3Gravatar Christian Hesse1-1/+1
2019-02-11unattended-lte-firmware-upgrade: remove workaround•••This is fixed in 6.44beta75. routeros-6.44beta75-2Gravatar Christian Hesse1-2/+0
2019-02-11check-lte-firmware-upgrade: remove workaround•••This is fixed in 6.44beta75. routeros-6.44beta75-1Gravatar Christian Hesse1-2/+0
2019-02-11unattended-lte-firmware-upgrade: add missing colonGravatar Christian Hesse1-1/+1
2019-02-11global-functions: add missing colonGravatar Christian Hesse1-1/+1
2019-02-08global-functions: prevent infinite loop in $CharacterReplaceGravatar Christian Hesse1-0/+4
2019-02-08ipv6-update: simplify array accessGravatar Christian Hesse1-2/+2
2019-02-08dhcp-to-dns: rework, fix cleanup with mac-address and moreGravatar Christian Hesse1-37/+29
2019-02-08dhcp-to-dns: use mac-address if hostname is emptyGravatar Christian Hesse1-0/+3
2019-02-08dhcp-to-dns: use $CharacterReplaceGravatar Christian Hesse1-6/+3
2019-02-08global-functions: add $CharacterReplaceGravatar Christian Hesse1-0/+15
2019-02-07capsman-download-packages: upgrade CAPs one after another with delayGravatar Christian Hesse1-2/+9
2019-01-29gps-track: strip trailing binary zerosGravatar Christian Hesse1-0/+2
2019-01-29gps-track: log about coordinate-formatGravatar Christian Hesse1-1/+2
2019-01-18check-routeros-update: run email-backup on auto-updateGravatar Christian Hesse1-0/+3
2019-01-15email-backup: silence unwanted outputGravatar Christian Hesse1-1/+1
2019-01-15update-tunnelbroker: fix parsing idGravatar Christian Hesse1-1/+1
2019-01-15update-tunnelbroker: simplify array accessGravatar Christian Hesse1-3/+3
2019-01-15netwatch-syslog: simplify array accessGravatar Christian Hesse1-1/+1
2019-01-15collect-wireless-mac: simplify array accessGravatar Christian Hesse3-3/+3
2019-01-15dhcp-lease-comment: simplify array accessGravatar Christian Hesse3-3/+3
2019-01-15lease-script: split scripts for de/assign, add debug logGravatar Christian Hesse1-4/+18
2019-01-14email-backup: give board name and modelGravatar Christian Hesse1-1/+3
2019-01-12initial-commands: put into blocksGravatar Christian Hesse1-8/+14
2019-01-12check-certificates: strip prefix from issuer CNGravatar Christian Hesse1-1/+1
2019-01-12check-certificates: properly handle expired certificatesGravatar Christian Hesse1-4/+11
2019-01-09check-certificates: move conditions to loopGravatar Christian Hesse1-60/+50
2019-01-09check-certificates: shorten key for detailed infosGravatar Christian Hesse1-10/+10
2019-01-09check-certificates: show issuer CN onlyGravatar Christian Hesse1-2/+11
2019-01-09email-backup: be more verbose about attached files and secret keyGravatar Christian Hesse1-4/+9
2019-01-09check-certificates: include the issuer in notificationsGravatar Christian Hesse1-0/+4
2019-01-09check-certificates: update CommonName after renewalGravatar Christian Hesse1-0/+1
2019-01-09super-mario-theme: simplify array accessGravatar Christian Hesse1-1/+1
2019-01-09daily-psk: simplify algorithmGravatar Christian Hesse1-21/+13
2019-01-09check-certificates: use time functionality•••No need to calculate that... Gravatar Christian Hesse1-25/+10
2019-01-09check-certificates: send notification on renewalGravatar Christian Hesse1-8/+18
2019-01-09check-certificates: drop extra warning•••A sent notification implies that renewal failed. Gravatar Christian Hesse1-2/+0
2019-01-04ppp-on-up: just release ipv6 lease•••This should get a new lease immediately. Gravatar Christian Hesse1-6/+1
2019-01-04ppp-on-up: run scripts if availableGravatar Christian Hesse1-0/+11
2019-01-04update-tunnelbroker: get tunnelbroker config from interface commentGravatar Christian Hesse2-26/+20
2019-01-04email-backup: print to update from cloudGravatar Christian Hesse1-0/+3
2019-01-04ppp-on-up: fix variable handling•••The variable $interface is not a name but a reference... Basically this worked only because of the oddity - the filter did not work and *all* dhcp-clients were disabled and enabled. Gravatar Christian Hesse1-1/+3
2019-01-04global: variable names are CamelCase••• ___ _ ___ __ / _ )(_)__ _ / _/__ _/ /_ / _ / / _ `/ / _/ _ `/ __/ /____/_/\_, / /_/ \_,_/\__/ _ __ /___/ _ __ | | / /___ __________ (_)___ ____ _/ / | | /| / / __ `/ ___/ __ \/ / __ \/ __ `/ / | |/ |/ / /_/ / / / / / / / / / / /_/ /_/ |__/|__/\__,_/_/ /_/ /_/_/_/ /_/\__, (_) /____/ RouterOS has some odd behavior when it comes to variable names. Let's have a look at the interfaces: [admin@MikroTik] > / interface print where name=en1 Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU 0 RS en1 ether 1500 1598 That looks ok. Now we use a script: { :local interface "en1"; / interface print where name=$interface; } And the result... [admin@MikroTik] > { :local interface "en1"; {... / interface print where name=$interface; } Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU 0 RS en1 ether 1500 1598 ... still looks ok. We make a little modification to the script: { :local name "en1"; / interface print where name=$name; } And the result: [admin@MikroTik] > { :local name "en1"; {... / interface print where name=$name; } Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU 0 RS en1 ether 1500 1598 1 S en2 ether 1500 1598 2 S en3 ether 1500 1598 3 S en4 ether 1500 1598 4 S en5 ether 1500 1598 5 R br-local bridge 1500 1598 Ups! The filter has no effect! That happens whenever the variable name ($name) matches the property name (name=). And another modification: { :local type "en1"; / interface print where name=$type; } And the result: [admin@MikroTik] > { :local type "en1"; {... / interface print where name=$type; } Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU Ups! Nothing? Even if the variable name ($type) matches whatever property name (type=) things go wrong. The answer from MikroTik support (in Ticket#2019010222000454): > This is how scripting works in RouterOS and we will not fix it. To get around this we use variable names in CamelCase. Let's hope Mikrotik never ever introduces property names in CamelCase... *fingers crossed* Gravatar Christian Hesse41-782/+775
2019-01-03global-{config,functions}: move variables, make independentGravatar Christian Hesse4-9/+12
2019-01-03script-updates: add configuration versioningGravatar Christian Hesse3-0/+20
2019-01-03dhcp-to-dns: give time in short format•••Note that a unit is required to make it a time value! Gravatar Christian Hesse1-1/+1
2019-01-03daily-psk-schedule: give time in short format•••Note that a unit is required to make it a time value! Gravatar Christian Hesse1-1/+1
2019-01-02rename script 'check-lte-firmware-update' -> 'check-lte-firmware-upgrade'•••That's the correct wording from commands.. Gravatar Christian Hesse2-8/+8
2019-01-02add script 'unattended-lte-firmware-upgrade'Gravatar Christian Hesse1-0/+29
2019-01-02add template for script documentationGravatar Christian Hesse1-0/+47
2019-01-02README: add link to scroll upGravatar Christian Hesse1-0/+2