Compare commits
293 commits
routeros-7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3c815c2ca | ||
|
|
d8632ad370 | ||
|
|
68ed97205c | ||
|
|
d0f50142f5 | ||
|
|
3ee1978098 | ||
|
|
70ddc152de | ||
|
|
b62594279d | ||
|
|
3f8de22d2a | ||
|
|
ae30574e86 | ||
|
|
e359b3a176 | ||
|
|
baa8d6c974 | ||
|
|
a7be27aea9 | ||
|
|
8b3346ec7e | ||
|
|
a2298c2c76 | ||
|
|
70d743bcda | ||
|
|
4ec1da1c91 | ||
|
|
b74e40dde1 | ||
|
|
2dc434b332 | ||
|
|
609a296773 | ||
|
|
228ac39486 | ||
|
|
772f745480 | ||
|
|
334ff7162a | ||
|
|
20c904eea2 | ||
|
|
2a5ece122f | ||
|
|
7e4463473d | ||
|
|
bde26dc1a5 | ||
|
|
496bca336c | ||
|
|
44990958ea | ||
|
|
dd4421099f | ||
|
|
582b0f411e | ||
|
|
fe987304ea | ||
|
|
06fd89c55c | ||
|
|
e21495054b | ||
|
|
8492e3d7a1 | ||
|
|
a7217fa0cd | ||
|
|
b48523cc3d | ||
|
|
0393a783c9 | ||
|
|
57d820f454 | ||
|
|
f570b901a8 | ||
|
|
fe09981801 | ||
|
|
2030769216 | ||
|
|
ce2ae4fdf7 | ||
|
|
14b8768b41 | ||
|
|
f642b2f40d | ||
|
|
0f9476df28 | ||
|
|
e27aca0664 | ||
|
|
426da3e99c | ||
|
|
160a885e02 | ||
|
|
2d53e81292 | ||
|
|
f0b1ca8030 | ||
|
|
b7a5402be6 | ||
|
|
28b1297a43 | ||
|
|
72660f21a5 | ||
|
|
f1333087d2 | ||
|
|
e6542ba8cc | ||
|
|
883a442ff5 | ||
|
|
7716bb9d6c | ||
|
|
ced6bf2c11 | ||
|
|
6e8e841906 | ||
|
|
9919b9fe76 | ||
|
|
68a4ac942e | ||
|
|
244eceafee | ||
|
|
aebe7bd054 | ||
|
|
6468c24d61 | ||
|
|
fd4bf59bae | ||
|
|
b52936e946 | ||
|
|
92759fcca5 | ||
|
|
ad310e6573 | ||
|
|
c0c1c5521e | ||
|
|
0fffb5198e | ||
|
|
330a616406 | ||
|
|
0fee5cea3c | ||
|
|
d673f0956c | ||
|
|
ad455c8f1d | ||
|
|
b72a79824e | ||
|
|
156b0e4aaf | ||
|
|
302fc0bb82 | ||
|
|
df8d0370c5 | ||
|
|
cc56680206 | ||
|
|
6fd28bf8f7 | ||
|
|
2b8dfec2f7 | ||
|
|
45bcb80125 | ||
|
|
e7a16ad279 | ||
|
|
5481787869 | ||
|
|
54af7fd024 | ||
|
|
927edc639c | ||
|
|
377e196cb0 | ||
|
|
3c62536f87 | ||
|
|
0d71cd5b3b | ||
|
|
33061fea21 | ||
|
|
0ceedab5db | ||
|
|
6990084d98 | ||
|
|
7dc230cceb | ||
|
|
8878449b0b | ||
|
|
8fa17d4b3b | ||
|
|
8528ca376c | ||
|
|
4af18ced9e | ||
|
|
623f96d94a | ||
|
|
aa0b5a9ca2 | ||
|
|
ee9618014c | ||
|
|
0745f09a8a | ||
|
|
222404535b | ||
|
|
c697c321e6 | ||
|
|
96896c37e5 | ||
|
|
6e37bab481 | ||
|
|
28b00e23a1 | ||
|
|
830693df79 | ||
|
|
240decf419 | ||
|
|
c0678f0501 | ||
|
|
73350ff3f4 | ||
|
|
7caaa62321 | ||
|
|
1f11f72d18 | ||
|
|
daeb173dbc | ||
|
|
4acbd6449e | ||
|
|
9db7f4494c | ||
|
|
2d0c79160d | ||
|
|
b6e72f9a9f | ||
|
|
1b53b52ac6 | ||
|
|
f77cc07338 | ||
|
|
094215aec7 | ||
|
|
d60ee59e77 | ||
|
|
3926d12070 | ||
|
|
5dbd419d1a | ||
|
|
ac6aefd34c | ||
|
|
518a4c329f | ||
|
|
9ef3ba5479 | ||
|
|
84c49c0f7e | ||
|
|
bc174d7f1f | ||
|
|
678fc3307e | ||
|
|
1ac0147fce | ||
|
|
1f6c43d5ce | ||
|
|
544e8094de | ||
|
|
d4979146f9 | ||
|
|
ca487376d6 | ||
|
|
ea9e843ae9 | ||
|
|
94514a7c75 | ||
|
|
699be25b64 | ||
|
|
79c98a4b3a | ||
|
|
e49f68c1f2 | ||
|
|
2f4e83990a | ||
|
|
77dc0565a9 | ||
|
|
564c7f6bbc | ||
|
|
6718b90780 | ||
|
|
e6faf346c2 | ||
|
|
295fa3144a | ||
|
|
b65f3512d0 | ||
|
|
8a904dadf4 | ||
|
|
fa64e8906b | ||
|
|
2feaaf36b2 | ||
|
|
30743c0e87 | ||
|
|
725eb834f4 | ||
|
|
b97a434a9c | ||
|
|
70675a9fee | ||
|
|
e0b12a9050 | ||
|
|
a64e9bed80 | ||
|
|
e10455fb18 | ||
|
|
ed9dee3c5f | ||
|
|
4f778cb1c6 | ||
|
|
a61fbfb75c | ||
|
|
903a3f44a0 | ||
|
|
638258000b | ||
|
|
b285f2c5d2 | ||
|
|
93eb218589 | ||
|
|
45e2f7b0a8 | ||
|
|
b29f3535b6 | ||
|
|
fa9c4be576 | ||
|
|
ce37544bae | ||
|
|
aeca778284 | ||
|
|
af5f01a973 | ||
|
|
0b7528db99 | ||
|
|
54612e333f | ||
|
|
05f0838119 | ||
|
|
c6451c87f1 | ||
|
|
4935c81bd9 | ||
|
|
d12be8f1ac | ||
|
|
c4a060c3d4 | ||
|
|
f3afee3e4b | ||
|
|
82587ec589 | ||
|
|
edd51ca719 | ||
|
|
d1fa3facfd | ||
|
|
b4e6cc5b59 | ||
|
|
9287996b74 | ||
|
|
75692abf47 | ||
|
|
7b45bb5b46 | ||
|
|
165d7c60d4 | ||
|
|
b16c2f5b90 | ||
|
|
cbb0aba1b1 | ||
|
|
1ce3160933 | ||
|
|
607a608502 | ||
|
|
148d40e18d | ||
|
|
036c6ef682 | ||
|
|
5986894749 | ||
|
|
8d68f24095 | ||
|
|
eb89f8359b | ||
|
|
8faf4ab7cf | ||
|
|
ceb6f2353e | ||
|
|
719b662b76 | ||
|
|
cbb282746f | ||
|
|
2e0787afd1 | ||
|
|
a0399216fc | ||
|
|
2d6fdc355e | ||
|
|
fae8dbd8ea | ||
|
|
a2d6671cf0 | ||
|
|
d610bf3582 | ||
|
|
97b4a41f23 | ||
|
|
a2250a00e6 | ||
|
|
c6cc8b9a51 | ||
|
|
5075701958 | ||
|
|
8f6a38f299 | ||
|
|
cc5aea22b3 | ||
|
|
d002d1c0c0 | ||
|
|
737a872a5f | ||
|
|
298a43a871 | ||
|
|
335bfc0a88 | ||
|
|
20885c4620 | ||
|
|
5ccb0d07b1 | ||
|
|
7d701483d3 | ||
|
|
7772fbb22d | ||
|
|
83b164d511 | ||
|
|
f0910a4472 | ||
|
|
090f25a82d | ||
|
|
8ff34a2408 | ||
|
|
affb9b3baf | ||
|
|
87787eefe3 | ||
|
|
677b5b8069 | ||
|
|
876505c36d | ||
|
|
b5a0269667 | ||
|
|
f3e6e152bc | ||
|
|
8eb397f79f | ||
|
|
db0a5bf33c | ||
|
|
fbfeea3042 | ||
|
|
1a1399d302 | ||
|
|
335266f247 | ||
|
|
d100cac9ed | ||
|
|
c88953e44d | ||
|
|
20987221d9 | ||
|
|
ea4b5553c2 | ||
|
|
b80b872e55 | ||
|
|
ea05b69f7c | ||
|
|
d7a6eb1d00 | ||
|
|
6ad6f9aa08 | ||
|
|
c62f236251 | ||
|
|
47309e5c03 | ||
|
|
9fa11cb79a | ||
|
|
def540c965 | ||
|
|
025b492783 | ||
|
|
6630d35eea | ||
|
|
c81618b571 | ||
|
|
35b556f0b2 | ||
|
|
9ceed0926a | ||
|
|
5ffa85f8bf | ||
|
|
48d0f1f0b9 | ||
|
|
a931cb61a0 | ||
|
|
14b51d96b0 | ||
|
|
2c715096b9 | ||
|
|
2773fef9d8 | ||
|
|
6b0c9ab17d | ||
|
|
59dc7e6d0c | ||
|
|
22e6383e86 | ||
|
|
62ca30b5d3 | ||
|
|
907358cb85 | ||
|
|
2fed8f967b | ||
|
|
386ea2419f | ||
|
|
fe080c0d3d | ||
|
|
a856d309df | ||
|
|
721e786f68 | ||
|
|
4c2c7e817a | ||
|
|
89175e511f | ||
|
|
b068f86995 | ||
|
|
d46574b4fe | ||
|
|
c3010af4ed | ||
|
|
1307b8587e | ||
|
|
6415849850 | ||
|
|
95f8af6234 | ||
|
|
de2a90d841 | ||
|
|
e2d3f0f073 | ||
|
|
595b4aea9d | ||
|
|
0de6d006ae | ||
|
|
1f4bf9ee63 | ||
|
|
c3d3d61f92 | ||
|
|
6130c94cc1 | ||
|
|
15fd522d3d | ||
|
|
5b15c82bb1 | ||
|
|
30b80e903d | ||
|
|
80aed200fd | ||
|
|
2d81984aed | ||
|
|
e3284ca770 | ||
|
|
daee05dbd7 | ||
|
|
43bac7c33c | ||
|
|
a2f837be59 | ||
|
|
8353a8547f | ||
|
|
cb984a5e52 | ||
|
|
0e00a228d6 |
|
|
@ -4,7 +4,7 @@ Installing from branches
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Certificate name from browser
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ Import a certificate by CommonName
|
||||||
Running the function `$CertificateAvailable` with that name as parameter
|
Running the function `$CertificateAvailable` with that name as parameter
|
||||||
makes sure the certificate is available in the device's store:
|
makes sure the certificate is available in the device's store:
|
||||||
|
|
||||||
$CertificateAvailable "ISRG Root X2";
|
$CertificateAvailable "ISRG Root X2" "fetch";
|
||||||
|
|
||||||
If the certificate is actually available already nothing happens, and there
|
If the certificate is actually available already nothing happens, and there
|
||||||
is no output. Otherwise the certificate is downloaded and imported.
|
is no output. Otherwise the certificate is downloaded and imported.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Past Contributions
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
@ -35,8 +35,11 @@ Add yourself to the list,
|
||||||
[donate with PayPal ↗️](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)!
|
[donate with PayPal ↗️](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)!
|
||||||
|
|
||||||
* Abdul Mannan Abbasi
|
* Abdul Mannan Abbasi
|
||||||
|
* Alex Maier
|
||||||
* Andrea Ruffini Perico
|
* Andrea Ruffini Perico
|
||||||
* Andrew Cox
|
* Andrew Cox
|
||||||
|
* Benjamin Newman
|
||||||
|
* Christian Werner
|
||||||
* Christoph Boss (@Kampfwurst)
|
* Christoph Boss (@Kampfwurst)
|
||||||
* Daniel Ziegenberg (@ziegenberg)
|
* Daniel Ziegenberg (@ziegenberg)
|
||||||
* Devin Dean (@dd2594gh)
|
* Devin Dean (@dd2594gh)
|
||||||
|
|
@ -55,6 +58,7 @@ Add yourself to the list,
|
||||||
* Peter Ponzel
|
* Peter Ponzel
|
||||||
* Reiner Vehrenkamp
|
* Reiner Vehrenkamp
|
||||||
* Richard Österreicher
|
* Richard Österreicher
|
||||||
|
* Ruben Navarro Huedo
|
||||||
* Simon Hitzemann
|
* Simon Hitzemann
|
||||||
* Sunny Chu (@sunnychuchu)
|
* Sunny Chu (@sunnychuchu)
|
||||||
* Ulrich Wessendorf
|
* Ulrich Wessendorf
|
||||||
|
|
|
||||||
2
DEBUG.md
|
|
@ -4,7 +4,7 @@ Debug output and logs
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Initial commands
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
@ -17,13 +17,16 @@ Initial commands
|
||||||
Run the complete base installation:
|
Run the complete base installation:
|
||||||
|
|
||||||
{
|
{
|
||||||
:local BaseUrl "https://git.eworm.de/cgit/routeros-scripts/plain/";
|
:local BaseUrl "https://rsc.eworm.de/main/";
|
||||||
:local CertCommonName "ISRG Root X2";
|
:local CertCommonName "Root YE";
|
||||||
:local CertFileName "ISRG-Root-X2.pem";
|
:local CertFileName "Root-YE.pem";
|
||||||
:local CertFingerprint "69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
:local CertFingerprint "e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||||
|
|
||||||
:if (!(([ /certificate/settings/get ]->"builtin-trust-anchors") = "trusted" && \
|
:local CertSettings [ /certificate/settings/get ];
|
||||||
[[ :parse (":return [ :len [ /certificate/builtin/find where common-name=\"" . $CertCommonName . "\" ] ]") ]] > 0)) do={
|
:if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
||||||
|
($CertSettings->"builtin-trust-store") ~ "fetch" || \
|
||||||
|
($CertSettings->"builtin-trust-store") = "all") && \
|
||||||
|
[ :len [ /certificate/builtin/find where common-name=$CertCommonName ] ] > 0)) do={
|
||||||
:put "Importing certificate...";
|
:put "Importing certificate...";
|
||||||
/tool/fetch ($BaseUrl . "certs/" . $CertFileName) dst-path=$CertFileName as-value;
|
/tool/fetch ($BaseUrl . "certs/" . $CertFileName) dst-path=$CertFileName as-value;
|
||||||
:delay 1s;
|
:delay 1s;
|
||||||
|
|
@ -42,9 +45,6 @@ Run the complete base installation:
|
||||||
};
|
};
|
||||||
:put "Loading configuration and functions...";
|
:put "Loading configuration and functions...";
|
||||||
/system/script { run global-config; run global-functions; };
|
/system/script { run global-config; run global-functions; };
|
||||||
:put "Scheduling to load configuration and functions...";
|
|
||||||
/system/scheduler/remove [ find where name="global-scripts" ];
|
|
||||||
/system/scheduler/add name="global-scripts" start-time=startup on-event="/system/script { run global-config; run global-functions; }";
|
|
||||||
:if ([ :len [ /certificate/find where fingerprint=$CertFingerprint ] ] > 0) do={
|
:if ([ :len [ /certificate/find where fingerprint=$CertFingerprint ] ] > 0) do={
|
||||||
:put "Renaming certificate by its common-name...";
|
:put "Renaming certificate by its common-name...";
|
||||||
:global CertificateNameByCN;
|
:global CertificateNameByCN;
|
||||||
|
|
|
||||||
57
Makefile
|
|
@ -2,38 +2,45 @@
|
||||||
# template scripts -> final scripts
|
# template scripts -> final scripts
|
||||||
# markdown files -> html files
|
# markdown files -> html files
|
||||||
|
|
||||||
CAPSMAN = $(wildcard *.capsman.rsc)
|
ALL_RSC := $(wildcard *.rsc */*.rsc)
|
||||||
LOCAL = $(wildcard *.local.rsc)
|
GEN_RSC := $(wildcard *.capsman.rsc *.local.rsc *.wifi.rsc)
|
||||||
WIFI = $(wildcard *.wifi.rsc)
|
|
||||||
|
|
||||||
MARKDOWN = $(wildcard *.md doc/*.md doc/mod/*.md)
|
MARKDOWN := $(wildcard *.md doc/*.md doc/mod/*.md)
|
||||||
HTML = $(MARKDOWN:.md=.html)
|
HTML := $(MARKDOWN:.md=.html)
|
||||||
|
|
||||||
all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
|
DATE ?= $(shell date --rfc-email)
|
||||||
|
VERSION ?= $(shell git symbolic-ref --short HEAD 2>/dev/null)/$(shell git rev-list --count HEAD 2>/dev/null)/$(shell git rev-parse --short=8 HEAD 2>/dev/null)
|
||||||
|
export DATE VERSION
|
||||||
|
|
||||||
%.html: %.md Makefile
|
.PHONY: all checksums commitinfo docs rsc clean
|
||||||
markdown $< | sed 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' > $@
|
|
||||||
|
|
||||||
%.capsman.rsc: %.template.rsc Makefile
|
all: checksums docs rsc
|
||||||
sed -e '/\/interface\/wifi\//d' -e '/\/interface\/wireless\//d' -e 's|%TEMPL%|.capsman|' \
|
|
||||||
-e '/^# NOT \/caps-man\/ #$$/,/^# NOT \/caps-man\/ #$$/d' \
|
|
||||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
|
||||||
< $< > $@
|
|
||||||
|
|
||||||
%.local.rsc: %.template.rsc Makefile
|
checksums: checksums.json
|
||||||
sed -e '/\/caps-man\//d' -e '/\/interface\/wifi\//d' -e 's|%TEMPL%|.local|' \
|
|
||||||
-e '/^# NOT \/interface\/wireless\/ #$$/,/^# NOT \/interface\/wireless\/ #$$/d' \
|
|
||||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
|
||||||
< $< > $@
|
|
||||||
|
|
||||||
%.wifi.rsc: %.template.rsc Makefile
|
checksums.json: contrib/checksums.sh $(ALL_RSC)
|
||||||
sed -e '/\/caps-man\//d' -e '/\/interface\/wireless\//d' -e 's|%TEMPL%|.wifi|' \
|
contrib/checksums.sh > $@
|
||||||
-e '/^# NOT \/interface\/wifi\/ #$$/,/^# NOT \/interface\/wifi\/ #$$/d' \
|
|
||||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
|
||||||
< $< > $@
|
|
||||||
|
|
||||||
checksums.json: contrib/checksums.sh *.rsc */*.rsc
|
commitinfo: global-functions.rsc
|
||||||
contrib/checksums.sh
|
contrib/commitinfo.sh $< > $<~
|
||||||
|
mv $<~ $<
|
||||||
|
|
||||||
|
docs: $(HTML)
|
||||||
|
|
||||||
|
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html contrib/html.sh.d/foot.html
|
||||||
|
contrib/html.sh $< > $@
|
||||||
|
|
||||||
|
rsc: $(GEN_RSC)
|
||||||
|
|
||||||
|
%.capsman.rsc: %.template.rsc contrib/template-capsman.sh
|
||||||
|
contrib/template-capsman.sh $< > $@
|
||||||
|
|
||||||
|
%.local.rsc: %.template.rsc contrib/template-local.sh
|
||||||
|
contrib/template-local.sh $< > $@
|
||||||
|
|
||||||
|
%.wifi.rsc: %.template.rsc contrib/template-wifi.sh
|
||||||
|
contrib/template-wifi.sh $< > $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(HTML) checksums.json
|
rm -f $(HTML) checksums.json
|
||||||
|
make -C contrib/ clean
|
||||||
|
|
|
||||||
BIN
README.d/00-builtin-trust-store.avif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
BIN
README.d/05-run-scripts.avif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.5 KiB |
122
README.md
|
|
@ -4,10 +4,12 @@ RouterOS Scripts
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
**a collection of scripts for MikroTik RouterOS**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[RouterOS ↗️](https://mikrotik.com/software) is the operating system developed
|
[RouterOS ↗️](https://mikrotik.com/software) is the operating system developed
|
||||||
|
|
@ -25,21 +27,42 @@ Requirements
|
||||||
### Software (RouterOS)
|
### Software (RouterOS)
|
||||||
|
|
||||||
Latest version of the scripts require recent RouterOS to function properly.
|
Latest version of the scripts require recent RouterOS to function properly.
|
||||||
Make sure to install latest updates before you begin. If new functionality
|
Make sure to install latest updates before you begin. This is supposed to
|
||||||
or a breaking change in RouterOS `7.n` is used in my scripts I push my
|
work flawlessly with these channels:
|
||||||
change some time after `7.(n+1)` was released. At any time you should have
|
|
||||||
at least two minor and their bugfix releases to choose from.
|
|
||||||
|
|
||||||
Specific scripts may require even newer RouterOS version.
|
* `stable` - the latest version considered stable for daily use, including
|
||||||
|
new features
|
||||||
|
* `long-term` - a version considered rock-solid, usually one minor version
|
||||||
|
behind `stable` (`7.(n-1)`)
|
||||||
|
|
||||||
|
New functionality or breaking changes in RouterOS are adopted fairly quick.
|
||||||
|
These changes are pushed for general availability once a version of
|
||||||
|
RouterOS supporting this had been released to the `long-term` channel a
|
||||||
|
reasonable time ago.
|
||||||
|
|
||||||
|
At any time you should have at least two minor versions and their bugfix
|
||||||
|
releases to choose from. Often way older versions of RouterOS work just
|
||||||
|
fine.
|
||||||
|
|
||||||
|
On the other hand in seldom cases and for good reasons *specific* scripts
|
||||||
|
may require an even newer RouterOS version, so only `stable` is supported
|
||||||
|
temporarily.
|
||||||
|
|
||||||
|
> 💡️ **Hint**: If in doubt have a look at the badge at the top of each
|
||||||
|
> page showing the minimum version required:
|
||||||
|
> 
|
||||||
|
|
||||||
> ℹ️ **Info**: The `main` branch is now RouterOS v7 only. If you are still
|
> ℹ️ **Info**: The `main` branch is now RouterOS v7 only. If you are still
|
||||||
> running RouterOS v6 switch to `routeros-v6` branch!
|
> running RouterOS v6 switch to `routeros-v6` branch!
|
||||||
|
|
||||||
Starting with RouterOS 7.17 the
|
#### Prerequisite configuration
|
||||||
|
|
||||||
|
The
|
||||||
[device-mode ↗️](https://help.mikrotik.com/docs/spaces/ROS/pages/93749258/Device-mode)
|
[device-mode ↗️](https://help.mikrotik.com/docs/spaces/ROS/pages/93749258/Device-mode)
|
||||||
has been extended to give more fine-grained control over what features are
|
is a mechanism to lock down a device for security reasons, it gives
|
||||||
available. You need to enable `scheduler` and `fetch` at least, specific
|
fine-grained control over what features are available. You need to enable
|
||||||
scripts may require additional features.
|
`scheduler` and `fetch` at least, specific scripts may require additional
|
||||||
|
features.
|
||||||
|
|
||||||
### Hardware
|
### Hardware
|
||||||
|
|
||||||
|
|
@ -55,15 +78,18 @@ Initial setup
|
||||||
### Get me ready!
|
### Get me ready!
|
||||||
|
|
||||||
If you know how things work just copy and paste the
|
If you know how things work just copy and paste the
|
||||||
[initial commands](INITIAL-COMMANDS.md). Remember to edit and rerun
|
[initial commands](INITIAL-COMMANDS.md). These also support fixing an
|
||||||
|
existing but broken installation. Remember to edit and rerun
|
||||||
`global-config-overlay`!
|
`global-config-overlay`!
|
||||||
First time users should take the long way below.
|
|
||||||
|
> 💡️ **Hint**: First time users should take
|
||||||
|
> [the long way in detail](#the-long-way-in-detail) below.
|
||||||
|
|
||||||
### Live presentation
|
### Live presentation
|
||||||
|
|
||||||
Want to see it in action? I've had a presentation [Repository based
|
Want to see it in action? I've had a presentation [Repository based
|
||||||
RouterOS script distribution ↗️](https://www.youtube.com/watch?v=B9neG3oAhcY)
|
RouterOS script distribution ↗️](https://www.youtube.com/watch?v=B9neG3oAhcY)
|
||||||
including demonstation recorded live at [MUM Europe
|
including demonstration recorded live at [MUM Europe
|
||||||
2019 ↗️](https://mum.mikrotik.com/2019/EU/) in Vienna.
|
2019 ↗️](https://mum.mikrotik.com/2019/EU/) in Vienna.
|
||||||
|
|
||||||
> ⚠️ **Warning**: Some details changed. So see the presentation, then follow
|
> ⚠️ **Warning**: Some details changed. So see the presentation, then follow
|
||||||
|
|
@ -71,32 +97,47 @@ including demonstation recorded live at [MUM Europe
|
||||||
|
|
||||||
### The long way in detail
|
### The long way in detail
|
||||||
|
|
||||||
The update script does server certificate verification, so first step is to
|
The update script does server certificate verification, so first step is
|
||||||
download the certificates.
|
to establish trust.
|
||||||
|
|
||||||
> 💡️ **Hint**: RouterOS 7.19 comes with a builtin certificate store. You
|
#### Builtin trust store
|
||||||
> can skip the steps regarding certificate download and import and jump
|
|
||||||
> to [installation of scripts](#installation-of-scripts) if you set the
|
RouterOS comes with a builtin trust store with several CA certificates.
|
||||||
> trust for these builtin trust anchors:
|
If you intend **not** to trust this store jump to
|
||||||
|
[download and import certificate](#download-and-import-certificate) now.
|
||||||
|
|
||||||
|
Select the `fetch` command to trust these builtin certificates at
|
||||||
|
least, but make sure not to drop other targets:
|
||||||
|
|
||||||
|
/certificate/settings/set builtin-trust-store=fetch;
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
> 💡️ **Hint**: With RouterOS 7.20.x and before the functionality was
|
||||||
|
> different. Set the trust for the builtin trust anchors:
|
||||||
> `/certificate/settings/set builtin-trust-anchors=trusted;`
|
> `/certificate/settings/set builtin-trust-anchors=trusted;`
|
||||||
|
|
||||||
|
You can skip the steps regarding *download and import certificate* and
|
||||||
|
jump to [installation of scripts](#installation-of-scripts) now.
|
||||||
|
|
||||||
|
#### Download and import certificate
|
||||||
|
|
||||||
If you intend to download the scripts from a
|
If you intend to download the scripts from a
|
||||||
different location (for example from github.com) install the corresponding
|
different location (for example from github.com) install the corresponding
|
||||||
certificate chain.
|
certificate chain.
|
||||||
|
|
||||||
/tool/fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/ISRG-Root-X2.pem" dst-path="isrg-root-x2.pem";
|
/tool/fetch "https://rsc.eworm.de/main/certs/Root-YE.pem" dst-path="root-ye.pem";
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Note that the commands above do *not* verify server certificate, so if you
|
> ℹ️ **Info**: Note that the command above does *not* verify server
|
||||||
want to be safe download with your workstations's browser and transfer the
|
> certificate, so if you want to be safe download with your workstations's
|
||||||
file to your MikroTik device.
|
> browser from CA's website and transfer the file to your MikroTik device:
|
||||||
|
> *Let's Encrypt* / *ISRG* [Root YE ↗️](https://letsencrypt.org/certs/gen-y/root-ye.pem)
|
||||||
* [ISRG Root X2 ↗️](https://letsencrypt.org/certs/isrg-root-x2.pem)
|
|
||||||
|
|
||||||
Then we import the certificate.
|
Then we import the certificate.
|
||||||
|
|
||||||
/certificate/import file-name="isrg-root-x2.pem" passphrase="";
|
/certificate/import file-name="root-ye.pem" passphrase="";
|
||||||
|
|
||||||
Do not worry that the command is not shown - that happens because it contains
|
Do not worry that the command is not shown - that happens because it contains
|
||||||
a sensitive property, the passphrase.
|
a sensitive property, the passphrase.
|
||||||
|
|
@ -104,11 +145,11 @@ a sensitive property, the passphrase.
|
||||||

|

|
||||||
|
|
||||||
For basic verification we rename the certificate and print it by
|
For basic verification we rename the certificate and print it by
|
||||||
fingerprint. Make sure exactly this one certificate ("*ISRG-Root-X2*")
|
fingerprint. Make sure exactly this one certificate ("*Root-YE*")
|
||||||
is shown.
|
is shown.
|
||||||
|
|
||||||
/certificate/set name="ISRG-Root-X2" [ find where common-name="ISRG Root X2" ];
|
/certificate/set name="Root-YE" [ find where common-name="Root YE" ];
|
||||||
/certificate/print proplist=name,fingerprint where fingerprint="69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
/certificate/print proplist=name,fingerprint where fingerprint="e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
@ -122,16 +163,16 @@ date and time is set correctly!
|
||||||
|
|
||||||
Now let's download the main scripts and add them in configuration on the fly.
|
Now let's download the main scripts and add them in configuration on the fly.
|
||||||
|
|
||||||
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ /system/script/add name=$Script owner=$Script source=([ /tool/fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . ".rsc") output=user as-value]->"data"); };
|
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ /system/script/add name=$Script owner=$Script source=([ /tool/fetch check-certificate=yes-without-crl ("https://rsc.eworm.de/main/" . $Script . ".rsc") output=user as-value ]->"data"); };
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
And finally load configuration and functions and add the scheduler.
|
And finally run configuration and functions. This will also add the
|
||||||
|
scheduler for loading at system startup automatically.
|
||||||
|
|
||||||
/system/script { run global-config; run global-functions; };
|
/system/script { run global-config; run global-functions; };
|
||||||
/system/scheduler/add name="global-scripts" start-time=startup on-event="/system/script { run global-config; run global-functions; }";
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
> 💡️ **Hint**: You see complaints regarding syntax errors? Most likely the
|
> 💡️ **Hint**: You see complaints regarding syntax errors? Most likely the
|
||||||
> RouterOS on your device is too old. Check for updates!
|
> RouterOS on your device is too old. Check for updates!
|
||||||
|
|
@ -219,7 +260,7 @@ cleanup add a scheduler entry.
|
||||||
|
|
||||||
$ScriptInstallUpdate dhcp-to-dns,lease-script;
|
$ScriptInstallUpdate dhcp-to-dns,lease-script;
|
||||||
/ip/dhcp-server/set lease-script=lease-script [ find ];
|
/ip/dhcp-server/set lease-script=lease-script [ find ];
|
||||||
/system/scheduler/add name="dhcp-to-dns" interval=5m on-event="/system/script/run dhcp-to-dns;";
|
/system/scheduler/add name="dhcp-to-dns" interval=5m start-time=startup on-event="/system/script/run dhcp-to-dns;";
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
@ -401,14 +442,15 @@ immediately remove the link in question.
|
||||||
Upstream
|
Upstream
|
||||||
--------
|
--------
|
||||||
|
|
||||||
[](https://rsc.eworm.de/)
|
[rsc.eworm.de](https://rsc.eworm.de/)
|
||||||
|
|
||||||
URL:
|
[](https://rsc.eworm.de/)
|
||||||
[GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts)
|
|
||||||
|
|
||||||
Mirror:
|
### Code hosting
|
||||||
[eworm.de](https://git.eworm.de/cgit/routeros-scripts/about/)
|
|
||||||
[GitLab.com](https://gitlab.com/eworm-de/routeros-scripts#routeros-scripts)
|
* [git.eworm.de](https://git.eworm.de/cgit/routeros-scripts/about/)
|
||||||
|
* [GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts)
|
||||||
|
* [GitLab.com](https://gitlab.com/eworm-de/routeros-scripts#routeros-scripts)
|
||||||
|
|
||||||
---
|
---
|
||||||
[⬆️ Go back to top](#top)
|
[⬆️ Go back to top](#top)
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: accesslist-duplicates.capsman
|
# RouterOS script: accesslist-duplicates.capsman
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# print duplicate antries in wireless access list
|
# print duplicate antries in wireless access list
|
||||||
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:local ExitOK false;
|
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
||||||
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
||||||
|
|
@ -22,7 +21,7 @@
|
||||||
:foreach AccList in=[ /caps-man/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
:foreach AccList in=[ /caps-man/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
||||||
:local Mac [ /caps-man/access-list/get $AccList mac-address ];
|
:local Mac [ /caps-man/access-list/get $AccList mac-address ];
|
||||||
:if ($Seen->$Mac = 1) do={
|
:if ($Seen->$Mac = 1) do={
|
||||||
/caps-man/access-list/print where mac-address=$Mac;
|
/caps-man/access-list/print without-paging where mac-address=$Mac;
|
||||||
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
||||||
|
|
||||||
:if ([ :typeof $Remove ] = "num") do={
|
:if ([ :typeof $Remove ] = "num") do={
|
||||||
|
|
@ -33,5 +32,5 @@
|
||||||
:set ($Seen->$Mac) 1;
|
:set ($Seen->$Mac) 1;
|
||||||
}
|
}
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: accesslist-duplicates.local
|
# RouterOS script: accesslist-duplicates.local
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# print duplicate antries in wireless access list
|
# print duplicate antries in wireless access list
|
||||||
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:local ExitOK false;
|
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
||||||
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
||||||
|
|
@ -22,7 +21,7 @@
|
||||||
:foreach AccList in=[ /interface/wireless/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
:foreach AccList in=[ /interface/wireless/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
||||||
:local Mac [ /interface/wireless/access-list/get $AccList mac-address ];
|
:local Mac [ /interface/wireless/access-list/get $AccList mac-address ];
|
||||||
:if ($Seen->$Mac = 1) do={
|
:if ($Seen->$Mac = 1) do={
|
||||||
/interface/wireless/access-list/print where mac-address=$Mac;
|
/interface/wireless/access-list/print without-paging where mac-address=$Mac;
|
||||||
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
||||||
|
|
||||||
:if ([ :typeof $Remove ] = "num") do={
|
:if ([ :typeof $Remove ] = "num") do={
|
||||||
|
|
@ -33,5 +32,5 @@
|
||||||
:set ($Seen->$Mac) 1;
|
:set ($Seen->$Mac) 1;
|
||||||
}
|
}
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: accesslist-duplicates%TEMPL%
|
# RouterOS script: accesslist-duplicates%TEMPL%
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# print duplicate antries in wireless access list
|
# print duplicate antries in wireless access list
|
||||||
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
# !! This is just a template to generate the real script!
|
# !! This is just a template to generate the real script!
|
||||||
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
|
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
|
||||||
|
|
||||||
:local ExitOK false;
|
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
||||||
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
||||||
|
|
@ -27,9 +26,9 @@
|
||||||
:local Mac [ /interface/wifi/access-list/get $AccList mac-address ];
|
:local Mac [ /interface/wifi/access-list/get $AccList mac-address ];
|
||||||
:local Mac [ /interface/wireless/access-list/get $AccList mac-address ];
|
:local Mac [ /interface/wireless/access-list/get $AccList mac-address ];
|
||||||
:if ($Seen->$Mac = 1) do={
|
:if ($Seen->$Mac = 1) do={
|
||||||
/caps-man/access-list/print where mac-address=$Mac;
|
/caps-man/access-list/print without-paging where mac-address=$Mac;
|
||||||
/interface/wifi/access-list/print where mac-address=$Mac;
|
/interface/wifi/access-list/print without-paging where mac-address=$Mac;
|
||||||
/interface/wireless/access-list/print where mac-address=$Mac;
|
/interface/wireless/access-list/print without-paging where mac-address=$Mac;
|
||||||
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
||||||
|
|
||||||
:if ([ :typeof $Remove ] = "num") do={
|
:if ([ :typeof $Remove ] = "num") do={
|
||||||
|
|
@ -42,5 +41,5 @@
|
||||||
:set ($Seen->$Mac) 1;
|
:set ($Seen->$Mac) 1;
|
||||||
}
|
}
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: accesslist-duplicates.wifi
|
# RouterOS script: accesslist-duplicates.wifi
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# print duplicate antries in wireless access list
|
# print duplicate antries in wireless access list
|
||||||
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
# https://rsc.eworm.de/doc/accesslist-duplicates.md
|
||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:local ExitOK false;
|
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
||||||
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
||||||
|
|
@ -22,7 +21,7 @@
|
||||||
:foreach AccList in=[ /interface/wifi/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
:foreach AccList in=[ /interface/wifi/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
|
||||||
:local Mac [ /interface/wifi/access-list/get $AccList mac-address ];
|
:local Mac [ /interface/wifi/access-list/get $AccList mac-address ];
|
||||||
:if ($Seen->$Mac = 1) do={
|
:if ($Seen->$Mac = 1) do={
|
||||||
/interface/wifi/access-list/print where mac-address=$Mac;
|
/interface/wifi/access-list/print without-paging where mac-address=$Mac;
|
||||||
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
:local Remove [ :tonum [ /terminal/ask prompt="\nNumeric id to remove, any key to skip!" ] ];
|
||||||
|
|
||||||
:if ([ :typeof $Remove ] = "num") do={
|
:if ([ :typeof $Remove ] = "num") do={
|
||||||
|
|
@ -33,5 +32,5 @@
|
||||||
:set ($Seen->$Mac) 1;
|
:set ($Seen->$Mac) 1;
|
||||||
}
|
}
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: backup-cloud
|
# RouterOS script: backup-cloud
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: backup-script, order=40
|
# provides: backup-script, order=40
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# upload backup to MikroTik cloud
|
# upload backup to MikroTik cloud
|
||||||
# https://rsc.eworm.de/doc/backup-cloud.md
|
# https://rsc.eworm.de/doc/backup-cloud.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: backup-email
|
# RouterOS script: backup-email
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: backup-script, order=20
|
# provides: backup-script, order=20
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# create and email backup and config file
|
# create and email backup and config file
|
||||||
# https://rsc.eworm.de/doc/backup-email.md
|
# https://rsc.eworm.de/doc/backup-email.md
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
:global CleanName;
|
:global CleanName;
|
||||||
:global DeviceInfo;
|
:global DeviceInfo;
|
||||||
|
:global FileExists;
|
||||||
:global FormatLine;
|
:global FormatLine;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
|
|
@ -124,17 +125,19 @@
|
||||||
attach=$Attach; remove-attach=true });
|
attach=$Attach; remove-attach=true });
|
||||||
|
|
||||||
# wait for the mail to be sent
|
# wait for the mail to be sent
|
||||||
:local I 0;
|
:do {
|
||||||
:while ([ :len [ /file/find where name ~ ($FilePath . "\\.(backup|rsc)\$") ] ] > 0) do={
|
:retry {
|
||||||
:if ($I >= 120) do={
|
:if ([ $FileExists ($FilePath . ".conf") ".conf file" ] = true || \
|
||||||
|
[ $FileExists ($FilePath . ".backup") "backup" ] = true || \
|
||||||
|
[ $FileExists ($FilePath . ".rsc") "script" ] = true) do={
|
||||||
|
:error "Files are still available.";
|
||||||
|
}
|
||||||
|
} delay=1s max=120;
|
||||||
|
} on-error={
|
||||||
$LogPrint warning $ScriptName ("Files are still available, sending e-mail failed.");
|
$LogPrint warning $ScriptName ("Files are still available, sending e-mail failed.");
|
||||||
:set PackagesUpdateBackupFailure true;
|
:set PackagesUpdateBackupFailure true;
|
||||||
:set ExitOK true;
|
|
||||||
:error false;
|
|
||||||
}
|
|
||||||
:delay 1s;
|
|
||||||
:set I ($I + 1);
|
|
||||||
}
|
}
|
||||||
|
# do not remove the files here, as the mail is still queued!
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: backup-partition
|
# RouterOS script: backup-partition
|
||||||
# Copyright (c) 2022-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2022-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: backup-script, order=70
|
# provides: backup-script, order=70
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
# requires device-mode, scheduler
|
# requires device-mode, scheduler
|
||||||
#
|
#
|
||||||
# save configuration to fallback partition
|
# save configuration to fallback partition
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: backup-upload
|
# RouterOS script: backup-upload
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: backup-script, order=50
|
# provides: backup-script, order=50
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
# requires device-mode, fetch
|
# requires device-mode, fetch
|
||||||
#
|
#
|
||||||
# create and upload backup and config file
|
# create and upload backup and config file
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-download-packages.capsman
|
# RouterOS script: capsman-download-packages.capsman
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# download and cleanup packages for CAP installation from CAPsMAN
|
# download and cleanup packages for CAP installation from CAPsMAN
|
||||||
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
:global DownloadPackage;
|
:global DownloadPackage;
|
||||||
|
:global FileGet;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RmFile;
|
:global RmFile;
|
||||||
|
|
@ -42,7 +43,7 @@
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where name=$PackagePath type="directory" ] ] = 0) do={
|
:if ([ $FileGet $PackagePath ] = false) do={
|
||||||
:if ([ $MkDir $PackagePath ] = false) do={
|
:if ([ $MkDir $PackagePath ] = false) do={
|
||||||
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
||||||
$PackagePath . ") failed!");
|
$PackagePath . ") failed!");
|
||||||
|
|
@ -53,7 +54,7 @@
|
||||||
"). Please place your packages!");
|
"). Please place your packages!");
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Package in=[ /file/find where type=package \
|
:foreach Package in=[ /file/find where type="package" \
|
||||||
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
||||||
:local File [ /file/get $Package ];
|
:local File [ /file/get $Package ];
|
||||||
:if ($File->"package-architecture" = "mips") do={
|
:if ($File->"package-architecture" = "mips") do={
|
||||||
|
|
@ -66,7 +67,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where type=package name~("^" . $PackagePath) ] ] = 0) do={
|
:if ([ :len [ /file/find where type="package" name~("^" . $PackagePath) ] ] = 0) do={
|
||||||
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
||||||
:foreach Arch in={ "arm"; "mipsbe" } do={
|
:foreach Arch in={ "arm"; "mipsbe" } do={
|
||||||
:foreach Package in={ "routeros"; "wireless" } do={
|
:foreach Package in={ "routeros"; "wireless" } do={
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-download-packages%TEMPL%
|
# RouterOS script: capsman-download-packages%TEMPL%
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# download and cleanup packages for CAP installation from CAPsMAN
|
# download and cleanup packages for CAP installation from CAPsMAN
|
||||||
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
:global DownloadPackage;
|
:global DownloadPackage;
|
||||||
|
:global FileGet;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RmFile;
|
:global RmFile;
|
||||||
|
|
@ -44,7 +45,7 @@
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where name=$PackagePath type="directory" ] ] = 0) do={
|
:if ([ $FileGet $PackagePath ] = false) do={
|
||||||
:if ([ $MkDir $PackagePath ] = false) do={
|
:if ([ $MkDir $PackagePath ] = false) do={
|
||||||
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
||||||
$PackagePath . ") failed!");
|
$PackagePath . ") failed!");
|
||||||
|
|
@ -55,7 +56,7 @@
|
||||||
"). Please place your packages!");
|
"). Please place your packages!");
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Package in=[ /file/find where type=package \
|
:foreach Package in=[ /file/find where type="package" \
|
||||||
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
||||||
:local File [ /file/get $Package ];
|
:local File [ /file/get $Package ];
|
||||||
:if ($File->"package-architecture" = "mips") do={
|
:if ($File->"package-architecture" = "mips") do={
|
||||||
|
|
@ -68,7 +69,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where type=package name~("^" . $PackagePath) ] ] = 0) do={
|
:if ([ :len [ /file/find where type="package" name~("^" . $PackagePath) ] ] = 0) do={
|
||||||
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
||||||
# NOT /interface/wifi/ #
|
# NOT /interface/wifi/ #
|
||||||
:foreach Arch in={ "arm"; "mipsbe" } do={
|
:foreach Arch in={ "arm"; "mipsbe" } do={
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-download-packages.wifi
|
# RouterOS script: capsman-download-packages.wifi
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# download and cleanup packages for CAP installation from CAPsMAN
|
# download and cleanup packages for CAP installation from CAPsMAN
|
||||||
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
# https://rsc.eworm.de/doc/capsman-download-packages.md
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
:global DownloadPackage;
|
:global DownloadPackage;
|
||||||
|
:global FileGet;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RmFile;
|
:global RmFile;
|
||||||
|
|
@ -42,7 +43,7 @@
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where name=$PackagePath type="directory" ] ] = 0) do={
|
:if ([ $FileGet $PackagePath ] = false) do={
|
||||||
:if ([ $MkDir $PackagePath ] = false) do={
|
:if ([ $MkDir $PackagePath ] = false) do={
|
||||||
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
$LogPrint warning $ScriptName ("Creating directory at CAPsMAN package path (" . \
|
||||||
$PackagePath . ") failed!");
|
$PackagePath . ") failed!");
|
||||||
|
|
@ -53,7 +54,7 @@
|
||||||
"). Please place your packages!");
|
"). Please place your packages!");
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Package in=[ /file/find where type=package \
|
:foreach Package in=[ /file/find where type="package" \
|
||||||
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
|
||||||
:local File [ /file/get $Package ];
|
:local File [ /file/get $Package ];
|
||||||
:if ($File->"package-architecture" = "mips") do={
|
:if ($File->"package-architecture" = "mips") do={
|
||||||
|
|
@ -66,7 +67,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /file/find where type=package name~("^" . $PackagePath) ] ] = 0) do={
|
:if ([ :len [ /file/find where type="package" name~("^" . $PackagePath) ] ] = 0) do={
|
||||||
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
$LogPrint info $ScriptName ("No packages available, downloading default set.");
|
||||||
:foreach Arch in={ "arm"; "arm64" } do={
|
:foreach Arch in={ "arm"; "arm64" } do={
|
||||||
:local Packages { "arm"={ "routeros"; "wifi-qcom"; "wifi-qcom-ac" };
|
:local Packages { "arm"={ "routeros"; "wifi-qcom"; "wifi-qcom-ac" };
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-rolling-upgrade.capsman
|
# RouterOS script: capsman-rolling-upgrade.capsman
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: capsman-rolling-upgrade.capsman
|
# provides: capsman-rolling-upgrade.capsman
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# upgrade CAPs one after another
|
# upgrade CAPs one after another
|
||||||
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-rolling-upgrade%TEMPL%
|
# RouterOS script: capsman-rolling-upgrade%TEMPL%
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: capsman-rolling-upgrade%TEMPL%
|
# provides: capsman-rolling-upgrade%TEMPL%
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# upgrade CAPs one after another
|
# upgrade CAPs one after another
|
||||||
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: capsman-rolling-upgrade.wifi
|
# RouterOS script: capsman-rolling-upgrade.wifi
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: capsman-rolling-upgrade.wifi
|
# provides: capsman-rolling-upgrade.wifi
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# upgrade CAPs one after another
|
# upgrade CAPs one after another
|
||||||
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
# https://rsc.eworm.de/doc/capsman-rolling-upgrade.md
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: certificate-renew-issued
|
# RouterOS script: certificate-renew-issued
|
||||||
# Copyright (c) 2019-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# renew locally issued certificates
|
# renew locally issued certificates
|
||||||
# https://rsc.eworm.de/doc/certificate-renew-issued.md
|
# https://rsc.eworm.de/doc/certificate-renew-issued.md
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
# Issuer: CN=Certum Trusted Network CA O=Unizeto Technologies S.A. OU=Certum Certification Authority
|
|
||||||
# Subject: CN=Certum Trusted Network CA O=Unizeto Technologies S.A. OU=Certum Certification Authority
|
|
||||||
# Label: "Certum Trusted Network CA"
|
|
||||||
# Serial: 279744
|
|
||||||
# MD5 Fingerprint: d5:e9:81:40:c5:18:69:fc:46:2c:89:75:62:0f:aa:78
|
|
||||||
# SHA1 Fingerprint: 07:e0:32:e0:20:b7:2c:3f:19:2f:06:28:a2:59:3a:19:a7:0f:06:9e
|
|
||||||
# SHA256 Fingerprint: 5c:58:46:8d:55:f5:8e:49:7e:74:39:82:d2:b5:00:10:b6:d1:65:37:4a:cf:83:a7:d4:a3:2d:b7:68:c4:40:8e
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBM
|
|
||||||
MSIwIAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5D
|
|
||||||
ZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBU
|
|
||||||
cnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIyMTIwNzM3WhcNMjkxMjMxMTIwNzM3
|
|
||||||
WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMg
|
|
||||||
Uy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSIw
|
|
||||||
IAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0B
|
|
||||||
AQEFAAOCAQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rH
|
|
||||||
UV+rpDKmYYe2bg+G0jACl/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LM
|
|
||||||
TXPb865Px1bVWqeWifrzq2jUI4ZZJ88JJ7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVU
|
|
||||||
BBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4fOQtf/WsX+sWn7Et0brM
|
|
||||||
kUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0cvW0QM8x
|
|
||||||
AcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNV
|
|
||||||
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNV
|
|
||||||
HQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15y
|
|
||||||
sHhE49wcrwn9I0j6vSrEuVUEtRCjjSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfL
|
|
||||||
I9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1mS1FhIrlQgnXdAIv94nYmem8
|
|
||||||
J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5ajZt3hrvJBW8qY
|
|
||||||
VoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
|
|
||||||
03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
# Issuer: CN=DigiCert Global Root G2 O=DigiCert Inc OU=www.digicert.com
|
|
||||||
# Subject: CN=DigiCert Global Root G2 O=DigiCert Inc OU=www.digicert.com
|
|
||||||
# Label: "DigiCert Global Root G2"
|
|
||||||
# Serial: 4293743540046975378534879503202253541
|
|
||||||
# MD5 Fingerprint: e4:a6:8a:c8:54:ac:52:42:46:0a:fd:72:48:1b:2a:44
|
|
||||||
# SHA1 Fingerprint: df:3c:24:f9:bf:d6:66:76:1b:26:80:73:fe:06:d1:cc:8d:4f:82:a4
|
|
||||||
# SHA256 Fingerprint: cb:3c:cb:b7:60:31:e5:e0:13:8f:8d:d3:9a:23:f9:de:47:ff:c3:5e:43:c1:14:4c:ea:27:d4:6a:5a:b1:cb:5f
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh
|
|
||||||
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
|
||||||
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH
|
|
||||||
MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT
|
|
||||||
MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j
|
|
||||||
b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG
|
|
||||||
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI
|
|
||||||
2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx
|
|
||||||
1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ
|
|
||||||
q2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz
|
|
||||||
tCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ
|
|
||||||
vIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP
|
|
||||||
BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV
|
|
||||||
5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY
|
|
||||||
1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4
|
|
||||||
NeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG
|
|
||||||
Fdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91
|
|
||||||
8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe
|
|
||||||
pLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl
|
|
||||||
MrY=
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
58
certs/GTS-Root-RX.pem
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
# Issuer: CN=GTS Root R1 O=Google Trust Services LLC
|
||||||
|
# Subject: CN=GTS Root R1 O=Google Trust Services LLC
|
||||||
|
# Label: "GTS Root R1"
|
||||||
|
# Serial: 159662320309726417404178440727
|
||||||
|
# MD5 Fingerprint: 05:fe:d0:bf:71:a8:a3:76:63:da:01:e0:d8:52:dc:40
|
||||||
|
# SHA1 Fingerprint: e5:8c:1c:c4:91:3b:38:63:4b:e9:10:6e:e3:ad:8e:6b:9d:d9:81:4a
|
||||||
|
# SHA256 Fingerprint: d9:47:43:2a:bd:e7:b7:fa:90:fc:2e:6b:59:10:1b:12:80:e0:e1:c7:e4:e4:0f:a3:c6:88:7f:ff:57:a7:f4:cf
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFVzCCAz+gAwIBAgINAgPlk28xsBNJiGuiFzANBgkqhkiG9w0BAQwFADBHMQsw
|
||||||
|
CQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEU
|
||||||
|
MBIGA1UEAxMLR1RTIFJvb3QgUjEwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAw
|
||||||
|
MDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZp
|
||||||
|
Y2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjEwggIiMA0GCSqGSIb3DQEBAQUA
|
||||||
|
A4ICDwAwggIKAoICAQC2EQKLHuOhd5s73L+UPreVp0A8of2C+X0yBoJx9vaMf/vo
|
||||||
|
27xqLpeXo4xL+Sv2sfnOhB2x+cWX3u+58qPpvBKJXqeqUqv4IyfLpLGcY9vXmX7w
|
||||||
|
Cl7raKb0xlpHDU0QM+NOsROjyBhsS+z8CZDfnWQpJSMHobTSPS5g4M/SCYe7zUjw
|
||||||
|
TcLCeoiKu7rPWRnWr4+wB7CeMfGCwcDfLqZtbBkOtdh+JhpFAz2weaSUKK0Pfybl
|
||||||
|
qAj+lug8aJRT7oM6iCsVlgmy4HqMLnXWnOunVmSPlk9orj2XwoSPwLxAwAtcvfaH
|
||||||
|
szVsrBhQf4TgTM2S0yDpM7xSma8ytSmzJSq0SPly4cpk9+aCEI3oncKKiPo4Zor8
|
||||||
|
Y/kB+Xj9e1x3+naH+uzfsQ55lVe0vSbv1gHR6xYKu44LtcXFilWr06zqkUspzBmk
|
||||||
|
MiVOKvFlRNACzqrOSbTqn3yDsEB750Orp2yjj32JgfpMpf/VjsPOS+C12LOORc92
|
||||||
|
wO1AK/1TD7Cn1TsNsYqiA94xrcx36m97PtbfkSIS5r762DL8EGMUUXLeXdYWk70p
|
||||||
|
aDPvOmbsB4om3xPXV2V4J95eSRQAogB/mqghtqmxlbCluQ0WEdrHbEg8QOB+DVrN
|
||||||
|
VjzRlwW5y0vtOUucxD/SVRNuJLDWcfr0wbrM7Rv1/oFB2ACYPTrIrnqYNxgFlQID
|
||||||
|
AQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
|
||||||
|
FgQU5K8rJnEaK0gnhS9SZizv8IkTcT4wDQYJKoZIhvcNAQEMBQADggIBAJ+qQibb
|
||||||
|
C5u+/x6Wki4+omVKapi6Ist9wTrYggoGxval3sBOh2Z5ofmmWJyq+bXmYOfg6LEe
|
||||||
|
QkEzCzc9zolwFcq1JKjPa7XSQCGYzyI0zzvFIoTgxQ6KfF2I5DUkzps+GlQebtuy
|
||||||
|
h6f88/qBVRRiClmpIgUxPoLW7ttXNLwzldMXG+gnoot7TiYaelpkttGsN/H9oPM4
|
||||||
|
7HLwEXWdyzRSjeZ2axfG34arJ45JK3VmgRAhpuo+9K4l/3wV3s6MJT/KYnAK9y8J
|
||||||
|
ZgfIPxz88NtFMN9iiMG1D53Dn0reWVlHxYciNuaCp+0KueIHoI17eko8cdLiA6Ef
|
||||||
|
MgfdG+RCzgwARWGAtQsgWSl4vflVy2PFPEz0tv/bal8xa5meLMFrUKTX5hgUvYU/
|
||||||
|
Z6tGn6D/Qqc6f1zLXbBwHSs09dR2CQzreExZBfMzQsNhFRAbd03OIozUhfJFfbdT
|
||||||
|
6u9AWpQKXCBfTkBdYiJ23//OYb2MI3jSNwLgjt7RETeJ9r/tSQdirpLsQBqvFAnZ
|
||||||
|
0E6yove+7u7Y/9waLd64NnHi/Hm3lCXRSHNboTXns5lndcEZOitHTtNCjv0xyBZm
|
||||||
|
2tIMPNuzjsmhDYAPexZ3FL//2wmUspO8IFgV6dtxQ/PeEMMA3KgqlbbC1j+Qa3bb
|
||||||
|
bP6MvPJwNQzcmRk13NfIRmPVNnGuV/u3gm3c
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
# Issuer: CN=GTS Root R4 O=Google Trust Services LLC
|
||||||
|
# Subject: CN=GTS Root R4 O=Google Trust Services LLC
|
||||||
|
# Label: "GTS Root R4"
|
||||||
|
# Serial: 159662532700760215368942768210
|
||||||
|
# MD5 Fingerprint: 43:96:83:77:19:4d:76:b3:9d:65:52:e4:1d:22:a5:e8
|
||||||
|
# SHA1 Fingerprint: 77:d3:03:67:b5:e0:0c:15:f6:0c:38:61:df:7c:e1:3b:92:46:4d:47
|
||||||
|
# SHA256 Fingerprint: 34:9d:fa:40:58:c5:e2:63:12:3b:39:8a:e7:95:57:3c:4e:13:13:c8:3f:e6:8f:93:55:6c:d5:e8:03:1b:3c:7d
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYD
|
||||||
|
VQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIG
|
||||||
|
A1UEAxMLR1RTIFJvb3QgUjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAw
|
||||||
|
WjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2Vz
|
||||||
|
IExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjOPQIBBgUrgQQAIgNi
|
||||||
|
AATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzuhXyi
|
||||||
|
QHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvR
|
||||||
|
HYqjQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW
|
||||||
|
BBSATNbrdP9JNqPV2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D
|
||||||
|
9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/Cr8deVl5c1RxYIigL9zC2L7F8AjEA8GE8
|
||||||
|
p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh4rsUecrNIdSUtUlD
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
|
@ -9,29 +9,30 @@ CURL = curl \
|
||||||
DOMAINS_DUAL = \
|
DOMAINS_DUAL = \
|
||||||
api.macvendors.com/GTS-Root-R4 \
|
api.macvendors.com/GTS-Root-R4 \
|
||||||
api.telegram.org/Go-Daddy-Root-Certificate-Authority-G2 \
|
api.telegram.org/Go-Daddy-Root-Certificate-Authority-G2 \
|
||||||
cloudflare-dns.com/DigiCert-Global-Root-G2 \
|
cloudflare-dns.com/SSL-com-Root-Certification-Authority-ECC \
|
||||||
dns.google/GTS-Root-R4 \
|
dns.google/GTS-Root-RX \
|
||||||
dns.quad9.net/DigiCert-Global-Root-G3 \
|
dns.quad9.net/DigiCert-Global-Root-G3 \
|
||||||
git.eworm.de/ISRG-Root-X2 \
|
git.eworm.de/Root-YE \
|
||||||
lists.blocklist.de/Certum-Trusted-Network-CA \
|
gitlab.com/USERTrust-RSA-Certification-Authority \
|
||||||
|
lists.blocklist.de/GTS-Root-R4 \
|
||||||
matrix.org/GTS-Root-R4 \
|
matrix.org/GTS-Root-R4 \
|
||||||
raw.githubusercontent.com/USERTrust-RSA-Certification-Authority \
|
raw.githubusercontent.com/USERTrust-RSA-Certification-Authority \
|
||||||
rsc.eworm.de/ISRG-Root-X2 \
|
rsc.eworm.de/Root-YE \
|
||||||
upgrade.mikrotik.com/ISRG-Root-X1
|
upgrade.mikrotik.com/ISRG-Root-X1
|
||||||
DOMAINS_IPV4 = \
|
DOMAINS_IPV4 = \
|
||||||
1.1.1.1/DigiCert-Global-Root-G2 \
|
1.1.1.1/SSL-com-Root-Certification-Authority-ECC \
|
||||||
8.8.8.8/GTS-Root-R1 \
|
8.8.8.8/GTS-Root-RX \
|
||||||
9.9.9.9/DigiCert-Global-Root-G3 \
|
9.9.9.9/DigiCert-Global-Root-G3 \
|
||||||
api.mullvad.net/ISRG-Root-X1 \
|
api.mullvad.net/ISRG-Root-X1 \
|
||||||
ipv4.showipv6.de/ISRG-Root-X1 \
|
ipv4.showipv6.de/ISRG-Root-X1 \
|
||||||
ipv4.tunnelbroker.net/Starfield-Root-Certificate-Authority-G2 \
|
ipv4.tunnelbroker.net/Starfield-Root-Certificate-Authority-G2 \
|
||||||
mkcert.org/ISRG-Root-X1 \
|
mkcert.org/ISRG-Root-X1 \
|
||||||
ntfy.sh/ISRG-Root-X1 \
|
ntfy.sh/ISRG-Root-X1 \
|
||||||
www.dshield.org/ISRG-Root-X1 \
|
www.dshield.org/GTS-Root-R4 \
|
||||||
www.spamhaus.org/GTS-Root-R4
|
www.spamhaus.org/GTS-Root-R4
|
||||||
DOMAINS_IPV6 = \
|
DOMAINS_IPV6 = \
|
||||||
[2606\:4700\:4700\:\:1111]/DigiCert-Global-Root-G2 \
|
[2606\:4700\:4700\:\:1111]/SSL-com-Root-Certification-Authority-ECC \
|
||||||
[2001\:4860\:4860\:\:8888]/GTS-Root-R1 \
|
[2001\:4860\:4860\:\:8888]/GTS-Root-RX \
|
||||||
[2620\:fe\:\:9]/DigiCert-Global-Root-G3 \
|
[2620\:fe\:\:9]/DigiCert-Global-Root-G3 \
|
||||||
ipv6.showipv6.de/ISRG-Root-X1
|
ipv6.showipv6.de/ISRG-Root-X1
|
||||||
|
|
||||||
|
|
|
||||||
19
certs/Root-YE.pem
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Issuer: C=US, O=ISRG, CN=Root YE
|
||||||
|
# Subject: C=US, O=ISRG, CN=Root YE
|
||||||
|
# Label: "Root YE"
|
||||||
|
# Serial: A4026BA2EF6C7C20D4047E5E65A69380
|
||||||
|
# MD5 Fingerprint: 93:61:B1:AC:E4:DC:A4:8B:C6:FF:A4:A2:2B:D4:64:64
|
||||||
|
# SHA1 Fingerprint: A9:57:15:57:A7:7D:B7:8F:FA:C2:E9:7B:57:B8:98:56:90:39:C3:40
|
||||||
|
# SHA256 Fingerprint: E1:4F:FC:AD:5B:00:25:73:10:06:CA:A4:3A:12:1A:22:D8:E9:70:0F:4F:B9:CF:85:2F:02:A7:08:AA:5D:56:66
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIB2TCCAWCgAwIBAgIRAKQCa6LvbHwg1AR+XmWmk4AwCgYIKoZIzj0EAwMwLjEL
|
||||||
|
MAkGA1UEBhMCVVMxDTALBgNVBAoTBElTUkcxEDAOBgNVBAMTB1Jvb3QgWUUwHhcN
|
||||||
|
MjUwOTAzMDAwMDAwWhcNNDUwOTAyMjM1OTU5WjAuMQswCQYDVQQGEwJVUzENMAsG
|
||||||
|
A1UEChMESVNSRzEQMA4GA1UEAxMHUm9vdCBZRTB2MBAGByqGSM49AgEGBSuBBAAi
|
||||||
|
A2IABDwS/6vhrcVqcbBo+wgdI3fwn9x7DNJJOY/lTOti0vkwuRN87RhEhTH17E7X
|
||||||
|
yFjWsPYhIPt/wzOqxTd2b+4ZJNy9ID04YywF9U5zasDVyGSNErVNtz8uSGh5izW8
|
||||||
|
7j77GaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O
|
||||||
|
BBYEFKPIJlqOoUzQNWP8myPIOq5W809WMAoGCCqGSM49BAMDA2cAMGQCMHhMr8N9
|
||||||
|
LdL1VQKs9BdV81r76eXRB6mtjuNjzk6/lBsPNToWLTDzGYgtQKO1jl63uAIwGV7m
|
||||||
|
onyF377c+MM1oqVNs17sgu7F9YKZwgLmVbeOMDbKAXHtKMDLbiGllCcs8f47
|
||||||
|
-----END CERTIFICATE-----
|
||||||
37
certs/Root-YR.pem
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Issuer: C=US, O=ISRG, CN=Root YR
|
||||||
|
# Subject: C=US, O=ISRG, CN=Root YR
|
||||||
|
# Label: "Root YR"
|
||||||
|
# Serial: EC46349360CF4B0FF8A982D93AA9CA3D
|
||||||
|
# MD5 Fingerprint: B7:C3:9E:B2:5C:FA:D6:0D:0B:F8:7F:A6:D8:A0:95:F7
|
||||||
|
# SHA1 Fingerprint: C5:F1:11:DA:84:F7:DE:F8:E6:F3:F9:9F:8F:5F:36:FF:85:BA:B1:B1
|
||||||
|
# SHA256 Fingerprint: E5:7B:7E:6F:15:0C:41:91:02:E8:D5:C0:55:72:9F:F9:67:B9:D1:A8:29:BF:00:CE:C8:9C:A6:04:EB:F4:A8:6F
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFKTCCAxGgAwIBAgIRAOxGNJNgz0sP+KmC2Tqpyj0wDQYJKoZIhvcNAQELBQAw
|
||||||
|
LjELMAkGA1UEBhMCVVMxDTALBgNVBAoTBElTUkcxEDAOBgNVBAMTB1Jvb3QgWVIw
|
||||||
|
HhcNMjUwOTAzMDAwMDAwWhcNNDUwOTAyMjM1OTU5WjAuMQswCQYDVQQGEwJVUzEN
|
||||||
|
MAsGA1UEChMESVNSRzEQMA4GA1UEAxMHUm9vdCBZUjCCAiIwDQYJKoZIhvcNAQEB
|
||||||
|
BQADggIPADCCAgoCggIBANvGJnN78CTJdWL3+eGfsLN5TrNBJs+VH9hRXqRbwxu9
|
||||||
|
sGNiB0BD1fcOxbSUQCJIM1xE13Db+5Cw1w0s0EBYsvuIP/6joF0w8cuImbgR1OGg
|
||||||
|
YbSQ4OpzI+DG8SGuTlcE873OCS+kh3srlo6vl43M5OJg4Aeo1sfHp6kTJDoIiFBN
|
||||||
|
JAY+OKfX/FUvYKuhjT+no49lmqmupSBI5PkBQiqrEGtWU5uxU/cQWHGu8jSjFBzn
|
||||||
|
ZqvbNPLMXMLFxCb3WTfrJBXXjqvWG+v4bjzxjjeAtOlU7qarRDvNOyAuQYLln904
|
||||||
|
M+faKx8hnLCpJ15ZqaEgcNlY+9MMWcC5yvL2A2j3l9+2buggZX+dOE91zYmIdawT
|
||||||
|
vSZuVvlbRrAlLxIB6pwMBjneXCjYQ8+3BCCjssbSNpZU3hTcBDdhfAlEDlYr6pEa
|
||||||
|
tnMdmDT5BqnKC92bd0EhM1fbLHioLccLCuievT8ZkPhZrq7Mii7gNXAcUEAR8+lz
|
||||||
|
Yal+9zTg7C5DALyVOeG/CqfRAMn1KSHCR0NSA6P8tn/mGRlnCct5rtVCLnVySVpU
|
||||||
|
6H1qGg3DgTOuskf8eahTMiYbI5ezPJmO5ertalskQ1utp74+eDy92PI4ftHKTbq9
|
||||||
|
IWhH4YZKh3WnJEIt+oQvlYZbY8tpEroKrFB6PFGzrJIDRyts4HqvuH52RFj2zv/B
|
||||||
|
AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud
|
||||||
|
DgQWBBTe51tg0CJtQCh9Pw0B/qS1UrRRlDANBgkqhkiG9w0BAQsFAAOCAgEAWHnf
|
||||||
|
713Bdkq7t5yN2dNIgQakUb94X9WuyhMEHHkgx4oDpSUlnG0w4g94MoqaEUE31ZjR
|
||||||
|
LU7L5LD1g9ujFHTQu8AD215AHMVQFbm6j8hQxdXHAzDajFNQnOlDJrLjzIx176oy
|
||||||
|
AjvUtejZx2NNmdb5fd0WGVGsCdoAJ3N8ozo7ajE8t6vfxStZb4BQ9WYJGHUDrv2N
|
||||||
|
i5tJF6CNiPnlzs3BUfECRbE4JSk+jvy8+VoGiFE8qsH/j78x2fjgQhAQFV7P7Zxy
|
||||||
|
dBTZ1wEkNpZNW2qnaK1SKBLa+xf6E06YRIq5uaI+HWH8SY1y5VbRgzq40EKg3yxP
|
||||||
|
06fz+uYAUIFJoLNfhwRCc3Q6pQVuMX3yAjHAes4gk4moGcLQ5p7HAh39yeylZc1J
|
||||||
|
41sx/jKwLIkPE6Rr1Nf4pxdsxf9SA4yOEiAkDgq04DVxn8hgYFdUtBCuiuVC2heA
|
||||||
|
EiqVEa+8QZjuw8Gj0EbHXcRd1nInvGqRS1o9Is7YBdQN57X1AYveGBNNqjICSb7c
|
||||||
|
awuw1EawTDrs13VUlJVEsbQ0/O/1aaV73mCdOQ8azqL2KTv1Ewu1xbquE2S+kdQU
|
||||||
|
To9TUwat3wUA6cwXh1EfpS/3fJ0aGah5hdpRyoCLDlsSn8tkrjMfFFX0viC+GxHc
|
||||||
|
sI1ANRYvqSFC2X1VRZfDg+wD6E21BccmifG4yWc=
|
||||||
|
-----END CERTIFICATE-----
|
||||||
23
certs/SSL-com-Root-Certification-Authority-ECC.pem
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Issuer: CN=SSL.com Root Certification Authority ECC O=SSL Corporation
|
||||||
|
# Subject: CN=SSL.com Root Certification Authority ECC O=SSL Corporation
|
||||||
|
# Label: "SSL.com Root Certification Authority ECC"
|
||||||
|
# Serial: 8495723813297216424
|
||||||
|
# MD5 Fingerprint: 2e:da:e4:39:7f:9c:8f:37:d1:70:9f:26:17:51:3a:8e
|
||||||
|
# SHA1 Fingerprint: c3:19:7c:39:24:e6:54:af:1b:c4:ab:20:95:7a:e2:c3:0e:13:02:6a
|
||||||
|
# SHA256 Fingerprint: 34:17:bb:06:cc:60:07:da:1b:96:1c:92:0b:8a:b4:ce:3f:ad:82:0e:4a:a3:0b:9a:cb:c4:a7:4e:bd:ce:bc:65
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMC
|
||||||
|
VVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9T
|
||||||
|
U0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0
|
||||||
|
aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEyMTgxNDAzWhcNNDEwMjEyMTgxNDAz
|
||||||
|
WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0
|
||||||
|
b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNvbSBS
|
||||||
|
b290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB
|
||||||
|
BAAiA2IABEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI
|
||||||
|
7Z4INcgn64mMU1jrYor+8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPg
|
||||||
|
CemB+vNH06NjMGEwHQYDVR0OBBYEFILRhXMw5zUE044CkvvlpNHEIejNMA8GA1Ud
|
||||||
|
EwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTTjgKS++Wk0cQh6M0wDgYD
|
||||||
|
VR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCWe+0F+S8T
|
||||||
|
kdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+
|
||||||
|
gA0z5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-certificates
|
# RouterOS script: check-certificates
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
# requires device-mode, fetch
|
# requires device-mode, fetch
|
||||||
#
|
#
|
||||||
# check for certificate validity
|
# check for certificate validity
|
||||||
|
|
@ -21,10 +21,11 @@
|
||||||
:global CertWarnTime;
|
:global CertWarnTime;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global CertificateAvailable
|
:global CertificateAvailable;
|
||||||
:global EscapeForRegEx;
|
:global EscapeForRegEx;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global LogPrintOnce;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
|
|
@ -54,8 +55,16 @@
|
||||||
"' (file '" . $CertFileName . "')...");
|
"' (file '" . $CertFileName . "')...");
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) \
|
:onerror Err {
|
||||||
|
/tool/fetch check-certificate=yes-without-crl \
|
||||||
|
http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) \
|
||||||
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
|
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
|
||||||
|
} do={
|
||||||
|
:if ($Err != "Fetch failed with status 404") do={
|
||||||
|
$LogPrint warning $0 ("Failed fetching certificate: " . $Err);
|
||||||
|
}
|
||||||
|
:error false;
|
||||||
|
}
|
||||||
$WaitForFile $CertFileName;
|
$WaitForFile $CertFileName;
|
||||||
|
|
||||||
:local DecryptionFailed true;
|
:local DecryptionFailed true;
|
||||||
|
|
@ -106,7 +115,6 @@
|
||||||
:local FormatCertChain do={
|
:local FormatCertChain do={
|
||||||
:local Cert $1;
|
:local Cert $1;
|
||||||
|
|
||||||
:global EitherOr;
|
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
|
|
||||||
:local CertVal [ /certificate/get $Cert ];
|
:local CertVal [ /certificate/get $Cert ];
|
||||||
|
|
@ -117,9 +125,15 @@
|
||||||
|
|
||||||
:local Return "";
|
:local Return "";
|
||||||
:for I from=0 to=5 do={
|
:for I from=0 to=5 do={
|
||||||
:set Return ($Return . [ $EitherOr ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") \
|
:set Return ($Return . [ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN");
|
||||||
([ $ParseKeyValueStore (($CertVal->"issuer")->0) ]->"CN") ]);
|
:if ([ :len [ /certificate/builtin/find where skid=($CertVal->"akid") ] ] > 0) do={
|
||||||
|
:return $Return;
|
||||||
|
}
|
||||||
|
:do {
|
||||||
:set CertVal [ /certificate/get [ find where skid=($CertVal->"akid") ] ];
|
:set CertVal [ /certificate/get [ find where skid=($CertVal->"akid") ] ];
|
||||||
|
} on-error={
|
||||||
|
:return ($Return . " (possibly incomplete!)");
|
||||||
|
}
|
||||||
:if (($CertVal->"akid") = "" || ($CertVal->"akid") = ($CertVal->"skid")) do={
|
:if (($CertVal->"akid") = "" || ($CertVal->"akid") = ($CertVal->"skid")) do={
|
||||||
:return $Return;
|
:return $Return;
|
||||||
}
|
}
|
||||||
|
|
@ -138,9 +152,10 @@
|
||||||
[ $FormatLine "Fingerprint" ($CertVal->"fingerprint") ] . "\n" . \
|
[ $FormatLine "Fingerprint" ($CertVal->"fingerprint") ] . "\n" . \
|
||||||
[ $IfThenElse ([ :len ($CertVal->"ca") ] > 0) [ $FormatLine "Issuer" ($CertVal->"ca") ] [ $FormatLine "Issuer chain" [ $FormatCertChain $Cert ] ] ] . "\n" . \
|
[ $IfThenElse ([ :len ($CertVal->"ca") ] > 0) [ $FormatLine "Issuer" ($CertVal->"ca") ] [ $FormatLine "Issuer chain" [ $FormatCertChain $Cert ] ] ] . "\n" . \
|
||||||
"Validity:\n" . \
|
"Validity:\n" . \
|
||||||
|
[ $FormatLine " days" ($CertVal->"days-valid") ] . "\n" . \
|
||||||
[ $FormatLine " from" ($CertVal->"invalid-before") ] . "\n" . \
|
[ $FormatLine " from" ($CertVal->"invalid-before") ] . "\n" . \
|
||||||
[ $FormatLine " to" ($CertVal->"invalid-after") ] . "\n" . \
|
[ $FormatLine " to" ($CertVal->"invalid-after") ] . "\n" . \
|
||||||
[ $FormatLine "Expires in" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]);
|
[ $FormatLine " time left" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $ScriptLock $ScriptName ] = false) do={
|
:if ([ $ScriptLock $ScriptName ] = false) do={
|
||||||
|
|
@ -156,7 +171,7 @@
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
:if ([ :len $CertRenewUrl ] = 0) do={
|
:if ([ :len $CertRenewUrl ] = 0) do={
|
||||||
$LogPrint info $ScriptName ("No CertRenewUrl given.");
|
$LogPrintOnce info $ScriptName ("No CertRenewUrl given.");
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
$LogPrint info $ScriptName ("Attempting to renew certificate '" . ($CertVal->"name") . "'.");
|
$LogPrint info $ScriptName ("Attempting to renew certificate '" . ($CertVal->"name") . "'.");
|
||||||
|
|
@ -186,11 +201,13 @@
|
||||||
|
|
||||||
:local CertNew [ /certificate/find where name~("^" . [ $EscapeForRegEx [ $UrlEncode $FetchName ] ] . "\\.(p12|pem)_[0-9]+\$") \
|
:local CertNew [ /certificate/find where name~("^" . [ $EscapeForRegEx [ $UrlEncode $FetchName ] ] . "\\.(p12|pem)_[0-9]+\$") \
|
||||||
(common-name=($CertVal->"common-name") or subject-alt-name~("(^|\\W)(DNS|IP):" . [ $EscapeForRegEx $LastName ] . "(\\W|\$)")) \
|
(common-name=($CertVal->"common-name") or subject-alt-name~("(^|\\W)(DNS|IP):" . [ $EscapeForRegEx $LastName ] . "(\\W|\$)")) \
|
||||||
fingerprint!=[ :tostr ($CertVal->"fingerprint") ] expires-after>$CertRenewTime ];
|
fingerprint!=[ :tostr ($CertVal->"fingerprint") ] ];
|
||||||
:local CertNewVal [ /certificate/get $CertNew ];
|
:local CertNewVal [ /certificate/get $CertNew ];
|
||||||
|
|
||||||
:if ([ $CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN") ] = false) do={
|
:if (($CertVal->"expires-after") > ($CertNewVal->"expires-after")) do={
|
||||||
$LogPrint warning $ScriptName ("The certificate chain is not available!");
|
/certificate/remove $CertNew;
|
||||||
|
$LogPrint warning $ScriptName ("Old certificate is newer than the new one. Aborting renew.");
|
||||||
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if (($CertVal->"private-key") = true && ($CertVal->"private-key") != ($CertNewVal->"private-key")) do={
|
:if (($CertVal->"private-key") = true && ($CertVal->"private-key") != ($CertNewVal->"private-key")) do={
|
||||||
|
|
@ -199,6 +216,10 @@
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:if ([ $CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN") "fetch" ] = false) do={
|
||||||
|
$LogPrint warning $ScriptName ("The certificate chain is not available!");
|
||||||
|
}
|
||||||
|
|
||||||
/ip/service/set certificate=($CertNewVal->"name") [ find where certificate=($CertVal->"name") ];
|
/ip/service/set certificate=($CertNewVal->"name") [ find where certificate=($CertVal->"name") ];
|
||||||
|
|
||||||
/ip/ipsec/identity/set certificate=($CertNewVal->"name") [ find where certificate=($CertVal->"name") ];
|
/ip/ipsec/identity/set certificate=($CertNewVal->"name") [ find where certificate=($CertVal->"name") ];
|
||||||
|
|
@ -231,7 +252,7 @@
|
||||||
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
||||||
|
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
subject=([ $SymbolForNotification "lock-with-ink-pen,warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
||||||
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) });
|
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) });
|
||||||
$LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \
|
$LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \
|
||||||
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-health.d/state
|
# RouterOS script: check-health.d/state
|
||||||
# Copyright (c) 2019-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check for RouterOS health state - state plugin
|
# check for RouterOS health state - state plugin
|
||||||
# https://rsc.eworm.de/doc/check-health.md
|
# https://rsc.eworm.de/doc/check-health.md
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
||||||
:local FuncName [ :tostr $0 ];
|
:local FuncName [ :tostr $0 ];
|
||||||
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
:global CheckHealthLast;
|
:global CheckHealthLast;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
@ -32,13 +33,13 @@
|
||||||
:if ([ :typeof ($CheckHealthLast->$Name) ] != "nothing") do={
|
:if ([ :typeof ($CheckHealthLast->$Name) ] != "nothing") do={
|
||||||
:if ($CheckHealthLast->$Name = "ok" && \
|
:if ($CheckHealthLast->$Name = "ok" && \
|
||||||
$Value != "ok") do={
|
$Value != "ok") do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "cross-mark" ] . "Health warning: " . $Name); \
|
subject=([ $SymbolForNotification "cross-mark" ] . "Health warning: " . $Name); \
|
||||||
message=("The device '" . $Name . "' on " . $Identity . " failed!") });
|
message=("The device '" . $Name . "' on " . $Identity . " failed!") });
|
||||||
}
|
}
|
||||||
:if ($CheckHealthLast->$Name != "ok" && \
|
:if ($CheckHealthLast->$Name != "ok" && \
|
||||||
$Value = "ok") do={
|
$Value = "ok") do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
||||||
message=("The device '" . $Name . "' on " . $Identity . " recovered!") });
|
message=("The device '" . $Name . "' on " . $Identity . " recovered!") });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-health.d/temperature
|
# RouterOS script: check-health.d/temperature
|
||||||
# Copyright (c) 2019-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check for RouterOS health state - temperature plugin
|
# check for RouterOS health state - temperature plugin
|
||||||
# https://rsc.eworm.de/doc/check-health.md
|
# https://rsc.eworm.de/doc/check-health.md
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
||||||
:local FuncName [ :tostr $0 ];
|
:local FuncName [ :tostr $0 ];
|
||||||
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
:global CheckHealthLast;
|
:global CheckHealthLast;
|
||||||
:global CheckHealthTemperature;
|
:global CheckHealthTemperature;
|
||||||
|
|
@ -54,7 +55,7 @@
|
||||||
}
|
}
|
||||||
:if ($Value > $CheckHealthTemperature->$Name && \
|
:if ($Value > $CheckHealthTemperature->$Name && \
|
||||||
$CheckHealthTemperatureNotified->$Name != true) do={
|
$CheckHealthTemperatureNotified->$Name != true) do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \
|
subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " is above threshold: " . \
|
message=("The " . $Name . " on " . $Identity . " is above threshold: " . \
|
||||||
$Value . "\C2\B0" . "C") });
|
$Value . "\C2\B0" . "C") });
|
||||||
|
|
@ -62,7 +63,7 @@
|
||||||
}
|
}
|
||||||
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
||||||
$CheckHealthTemperatureNotified->$Name = true) do={
|
$CheckHealthTemperatureNotified->$Name = true) do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \
|
message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \
|
||||||
$Value . "\C2\B0" . "C") });
|
$Value . "\C2\B0" . "C") });
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-health.d/voltage
|
# RouterOS script: check-health.d/voltage
|
||||||
# Copyright (c) 2019-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check for RouterOS health state - voltage plugin
|
# check for RouterOS health state - voltage plugin
|
||||||
# https://rsc.eworm.de/doc/check-health.md
|
# https://rsc.eworm.de/doc/check-health.md
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
:set ($CheckHealthPlugins->[ :jobname ]) do={
|
||||||
:local FuncName [ :tostr $0 ];
|
:local FuncName [ :tostr $0 ];
|
||||||
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
:global CheckHealthLast;
|
:global CheckHealthLast;
|
||||||
:global CheckHealthVoltageLow;
|
:global CheckHealthVoltageLow;
|
||||||
|
|
@ -39,7 +40,7 @@
|
||||||
|
|
||||||
:if ($NumLast * (100 + $CheckHealthVoltagePercent) < $NumCurr * 100 || \
|
:if ($NumLast * (100 + $CheckHealthVoltagePercent) < $NumCurr * 100 || \
|
||||||
$NumLast * 100 > $NumCurr * (100 + $CheckHealthVoltagePercent)) do={
|
$NumLast * 100 > $NumCurr * (100 + $CheckHealthVoltagePercent)) do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification ("high-voltage-sign,chart-" . [ $IfThenElse ($NumLast < \
|
subject=([ $SymbolForNotification ("high-voltage-sign,chart-" . [ $IfThenElse ($NumLast < \
|
||||||
$NumCurr) "in" "de" ] . "creasing") ] . "Health warning: " . $Name); \
|
$NumCurr) "in" "de" ] . "creasing") ] . "Health warning: " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " jumped more than " . $CheckHealthVoltagePercent . "%.\n\n" . \
|
message=("The " . $Name . " on " . $Identity . " jumped more than " . $CheckHealthVoltagePercent . "%.\n\n" . \
|
||||||
|
|
@ -47,12 +48,12 @@
|
||||||
[ $FormatLine "new value" ($Value . " V") 12 ]) });
|
[ $FormatLine "new value" ($Value . " V") 12 ]) });
|
||||||
} else={
|
} else={
|
||||||
:if ($NumCurr <= $CheckHealthVoltageLow && $NumLast > $CheckHealthVoltageLow) do={
|
:if ($NumCurr <= $CheckHealthVoltageLow && $NumLast > $CheckHealthVoltageLow) do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "high-voltage-sign,chart-decreasing" ] . "Health warning: Low " . $Name); \
|
subject=([ $SymbolForNotification "high-voltage-sign,chart-decreasing" ] . "Health warning: Low " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " dropped to " . $Value . " V below hard limit.") });
|
message=("The " . $Name . " on " . $Identity . " dropped to " . $Value . " V below hard limit.") });
|
||||||
}
|
}
|
||||||
:if ($NumCurr > $CheckHealthVoltageLow && $NumLast <= $CheckHealthVoltageLow) do={
|
:if ($NumCurr > $CheckHealthVoltageLow && $NumLast <= $CheckHealthVoltageLow) do={
|
||||||
$SendNotification2 ({ origin=$FuncName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "high-voltage-sign,chart-increasing" ] . "Health recovery: Low " . $Name); \
|
subject=([ $SymbolForNotification "high-voltage-sign,chart-increasing" ] . "Health recovery: Low " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " recovered to " . $Value . " V above hard limit.") });
|
message=("The " . $Name . " on " . $Identity . " recovered to " . $Value . " V above hard limit.") });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-health
|
# RouterOS script: check-health
|
||||||
# Copyright (c) 2019-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check for RouterOS health state
|
# check for RouterOS health state
|
||||||
# https://rsc.eworm.de/doc/check-health.md
|
# https://rsc.eworm.de/doc/check-health.md
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
:set CheckHealthRAMUtilizationNotified false;
|
:set CheckHealthRAMUtilizationNotified false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:local Plugins [ /system/script/find where name~"^check-health.d/." ];
|
:local Plugins [ /system/script/find where name~"^check-health\\.d/." ];
|
||||||
:if ([ :len $Plugins ] = 0) do={
|
:if ([ :len $Plugins ] = 0) do={
|
||||||
$LogPrint debug $ScriptName ("No plugins installed.");
|
$LogPrint debug $ScriptName ("No plugins installed.");
|
||||||
:set ExitOK true;
|
:set ExitOK true;
|
||||||
|
|
@ -92,16 +92,16 @@
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
/system/script/run $Plugin;
|
/system/script/run $Plugin;
|
||||||
} do={
|
} do={
|
||||||
$LogPrint error $ScriptName ("Plugin '" . $ScriptVal->"name" . "' failed to run: " . $Err);
|
$LogPrint error $ScriptName ("Plugin '" . $PluginVal->"name" . "' failed to run: " . $Err);
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrint error $ScriptName ("Plugin '" . $ScriptVal->"name" . "' failed syntax validation, skipping.");
|
$LogPrint error $ScriptName ("Plugin '" . $PluginVal->"name" . "' failed syntax validation, skipping.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach PluginName,Discard in=$CheckHealthPlugins do={
|
:foreach PluginName,Discard in=$CheckHealthPlugins do={
|
||||||
($CheckHealthPlugins->$PluginName) \
|
($CheckHealthPlugins->$PluginName) \
|
||||||
("\$CheckHealthPlugins->\"" . $PluginName . "\"");
|
("\$CheckHealthPlugins->\"" . $PluginName . "\"") $ScriptName;
|
||||||
}
|
}
|
||||||
|
|
||||||
:set CheckHealthPlugins;
|
:set CheckHealthPlugins;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-lte-firmware-upgrade
|
# RouterOS script: check-lte-firmware-upgrade
|
||||||
# Copyright (c) 2018-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check for LTE firmware upgrade, send notification
|
# check for LTE firmware upgrade, send notification
|
||||||
# https://rsc.eworm.de/doc/check-lte-firmware-upgrade.md
|
# https://rsc.eworm.de/doc/check-lte-firmware-upgrade.md
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-perpetual-license
|
# RouterOS script: check-perpetual-license
|
||||||
# Copyright (c) 2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2025-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check perpetual license on CHR
|
# check perpetual license on CHR
|
||||||
# https://rsc.eworm.de/doc/check-perpetual-license.md
|
# https://rsc.eworm.de/doc/check-perpetual-license.md
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
$LogPrint warning $ScriptName ("Your license expired on " . ($License->"deadline-at") . "!");
|
$LogPrint warning $ScriptName ("Your license expired on " . ($License->"deadline-at") . "!");
|
||||||
:if ($SentCertificateNotification != "expired") do={
|
:if ($SentCertificateNotification != "expired") do={
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "warning-sign" ] . "License expired!"); \
|
subject=([ $SymbolForNotification "scroll,cross-mark" ] . "License expired!"); \
|
||||||
message=("Your license expired on " . ($License->"deadline-at") . \
|
message=("Your license expired on " . ($License->"deadline-at") . \
|
||||||
", can no longer update RouterOS on " . $Identity . "...") });
|
", can no longer update RouterOS on " . $Identity . "...") });
|
||||||
:set SentCertificateNotification "expired";
|
:set SentCertificateNotification "expired";
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
$LogPrint warning $ScriptName ("Your license will expire on " . ($License->"deadline-at") . "!");
|
$LogPrint warning $ScriptName ("Your license will expire on " . ($License->"deadline-at") . "!");
|
||||||
:if ($SentCertificateNotification != "warning") do={
|
:if ($SentCertificateNotification != "warning") do={
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "warning-sign" ] . "License about to expire!"); \
|
subject=([ $SymbolForNotification "scroll,warning-sign" ] . "License about to expire!"); \
|
||||||
message=("Your license failed to renew and is about to expire on " . \
|
message=("Your license failed to renew and is about to expire on " . \
|
||||||
($License->"deadline-at") . " on " . $Identity . "...") });
|
($License->"deadline-at") . " on " . $Identity . "...") });
|
||||||
:set SentCertificateNotification "warning";
|
:set SentCertificateNotification "warning";
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
[ :totime ($License->"deadline-at") ] - 4w > [ :timestamp ]) do={
|
[ :totime ($License->"deadline-at") ] - 4w > [ :timestamp ]) do={
|
||||||
$LogPrint info $ScriptName ("Your license was successfully renewed.");
|
$LogPrint info $ScriptName ("Your license was successfully renewed.");
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "License renewed"); \
|
subject=([ $SymbolForNotification "scroll,white-heavy-check-mark" ] . "License renewed"); \
|
||||||
message=("Your license was successfully renewed on " . $Identity . \
|
message=("Your license was successfully renewed on " . $Identity . \
|
||||||
". It is now valid until " . ($License->"deadline-at") . ".") });
|
". It is now valid until " . ($License->"deadline-at") . ".") });
|
||||||
:set SentCertificateNotification;
|
:set SentCertificateNotification;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: check-routeros-update
|
# RouterOS script: check-routeros-update
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
# requires device-mode, fetch, scheduler
|
# requires device-mode, fetch, scheduler
|
||||||
#
|
#
|
||||||
# check for RouterOS update, send notification and/or install
|
# check for RouterOS update, send notification and/or install
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
:global EscapeForRegEx;
|
:global EscapeForRegEx;
|
||||||
:global FetchUserAgentStr;
|
:global FetchUserAgentStr;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global RebootForUpdate;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
|
|
@ -38,14 +39,11 @@
|
||||||
:local DoUpdate do={
|
:local DoUpdate do={
|
||||||
:local ScriptName [ :tostr $1 ];
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
:global LogPrint;
|
|
||||||
|
|
||||||
:if ([ :len [ /system/script/find where name="packages-update" ] ] > 0) do={
|
:if ([ :len [ /system/script/find where name="packages-update" ] ] > 0) do={
|
||||||
/system/script/run packages-update;
|
/system/script/run packages-update;
|
||||||
} else={
|
} else={
|
||||||
/system/package/update/install without-paging;
|
/system/package/update/install without-paging;
|
||||||
}
|
}
|
||||||
$LogPrint info $ScriptName ("Waiting for system to reboot.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $ScriptLock $ScriptName ] = false) do={
|
:if ([ $ScriptLock $ScriptName ] = false) do={
|
||||||
|
|
@ -62,10 +60,15 @@
|
||||||
$WaitFullyConnected;
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={
|
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={
|
||||||
|
:if ([ :typeof $RebootForUpdate ] = "nothing") do={
|
||||||
|
$LogPrint info $ScriptName ("Found a stale scheduler for reboot, removing.");
|
||||||
|
/system/scheduler/remove "_RebootForUpdate";
|
||||||
|
} else={
|
||||||
$LogPrint info $ScriptName ("A reboot for update is already scheduled.");
|
$LogPrint info $ScriptName ("A reboot for update is already scheduled.");
|
||||||
:set ExitOK true;
|
:set ExitOK true;
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$LogPrint debug $ScriptName ("Checking for updates...");
|
$LogPrint debug $ScriptName ("Checking for updates...");
|
||||||
/system/package/update/check-for-updates without-paging as-value;
|
/system/package/update/check-for-updates without-paging as-value;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: collect-wireless-mac.capsman
|
# RouterOS script: collect-wireless-mac.capsman
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=40
|
# provides: lease-script, order=40
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# collect wireless mac adresses in access list
|
# collect wireless mac adresses in access list
|
||||||
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: collect-wireless-mac.local
|
# RouterOS script: collect-wireless-mac.local
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=40
|
# provides: lease-script, order=40
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# collect wireless mac adresses in access list
|
# collect wireless mac adresses in access list
|
||||||
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: collect-wireless-mac%TEMPL%
|
# RouterOS script: collect-wireless-mac%TEMPL%
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=40
|
# provides: lease-script, order=40
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# collect wireless mac adresses in access list
|
# collect wireless mac adresses in access list
|
||||||
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: collect-wireless-mac.wifi
|
# RouterOS script: collect-wireless-mac.wifi
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=40
|
# provides: lease-script, order=40
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# collect wireless mac adresses in access list
|
# collect wireless mac adresses in access list
|
||||||
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
# https://rsc.eworm.de/doc/collect-wireless-mac.md
|
||||||
|
|
|
||||||
17
contrib/Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Makefile
|
||||||
|
|
||||||
|
HTML := $(shell grep -xl '<!-- static html //-->' *.html)
|
||||||
|
|
||||||
|
.PHONY: all docs clean
|
||||||
|
|
||||||
|
all: docs
|
||||||
|
|
||||||
|
badges.html: badges.md
|
||||||
|
markdown $< > $@
|
||||||
|
|
||||||
|
docs: static-html.sh $(HTML) badges.html
|
||||||
|
./static-html.sh $(HTML)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f badges.html
|
||||||
|
git checkout HEAD -- $(HTML)
|
||||||
6
contrib/badges.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
|
[](https://t.me/routeros_scripts)
|
||||||
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
@ -6,4 +6,4 @@ set -e
|
||||||
|
|
||||||
md5sum $(find -name '*.rsc' | sort) | \
|
md5sum $(find -name '*.rsc' | sort) | \
|
||||||
sed -e "s| \./||" -e 's|.rsc$||' | \
|
sed -e "s| \./||" -e 's|.rsc$||' | \
|
||||||
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add' > 'checksums.json'
|
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add'
|
||||||
|
|
|
||||||
6
contrib/commitinfo.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e "/^:global CommitId/c :global CommitId \"${COMMITID:-unknown}\";" \
|
||||||
|
-e "/^:global CommitInfo/c :global CommitInfo \"${COMMITINFO:-unknown}\";" \
|
||||||
|
< "${1}"
|
||||||
23
contrib/html.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
RELTO="$(dirname "${1}")"
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e "s|__TITLE__|$(head -n1 "${1}")|" \
|
||||||
|
-e "s|__GENERAL__|$(realpath --relative-to="${RELTO}" general/)|" \
|
||||||
|
-e "s|__ROOT__|$(realpath --relative-to="${RELTO}" ./)|" \
|
||||||
|
< "${0}.d/head.html"
|
||||||
|
|
||||||
|
markdown -f toc,idanchor "${1}" | sed \
|
||||||
|
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
||||||
|
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
|
||||||
|
-e '/<h[1234] /s|-2[1789cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||||
|
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
|
||||||
|
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e "s|__DATE__|${DATE:-$(date --rfc-email)}|" \
|
||||||
|
-e "s|__VERSION__|${VERSION:-unknown}|" \
|
||||||
|
< "${0}.d/foot.html"
|
||||||
5
contrib/html.sh.d/foot.html
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
<p class="foot">RouterOS Scripts documentation generated on <i>__DATE__</i> for <i>__VERSION__</i><br />
|
||||||
|
Copyright © 2013-2026 Christian Hesse <mail@eworm.de></p>
|
||||||
|
|
||||||
|
</body></html>
|
||||||
16
contrib/html.sh.d/head.html
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html><html lang="en">
|
||||||
|
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
|
<title>RouterOS Scripts :: __TITLE__</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="__GENERAL__/style.css">
|
||||||
|
<link rel="icon" type="image/png" href="__ROOT__/logo.png">
|
||||||
|
<script type="text/javascript" src="__GENERAL__/clipboard.js"></script>
|
||||||
|
</head><body>
|
||||||
|
|
||||||
|
<table><tr>
|
||||||
|
<td><img src="__GENERAL__/eworm-meadow.avif" alt="eworm on meadow" /></td>
|
||||||
|
<td><img src="__GENERAL__/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
|
||||||
|
<td class="head"><span class="top">RouterOS Scripts</span><br />
|
||||||
|
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
|
||||||
|
</tr></table>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
body {
|
|
||||||
font-family: fira-sans, sans-serif;
|
|
||||||
font-size: 10pt;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +1,30 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html><html lang="en">
|
||||||
<html lang="en">
|
<!-- static html //-->
|
||||||
<head>
|
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta charset="UTF-8">
|
<title>RouterOS Scripts :: Logo Color Changer</title>
|
||||||
<title>RouterOS-Scripts Logo Color Changer</title>
|
<link rel="stylesheet" type="text/css" href="../general/style.css">
|
||||||
<link rel="stylesheet" type="text/css" href="logo-color.d/style.css">
|
<link rel="icon" type="image/png" href="../logo.png">
|
||||||
<script src="logo-color.d/script.js"></script>
|
<script src="logo-color.d/script.js"></script>
|
||||||
</head>
|
</head><body>
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1>RouterOS-Scripts Logo Color Changer</h1>
|
<table><tr>
|
||||||
|
<td><img src="../general/eworm-meadow.avif" alt="eworm on meadow" /></td>
|
||||||
|
<td><img src="../general/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
|
||||||
|
<td class="head"><span class="top">RouterOS Scripts</span><br />
|
||||||
|
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
|
||||||
|
</tr></table>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<h1>Logo Color Changer</h1>
|
||||||
|
|
||||||
|
<!-- badges here //-->
|
||||||
|
|
||||||
|
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||||
|
|
||||||
|
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||||
|
on it may be broken on code hosting sites. Use
|
||||||
|
<a href="https://rsc.eworm.de/main/contrib/logo-color.html">Logo Color Changer</a>
|
||||||
|
instead.</p></blockquote>
|
||||||
|
|
||||||
<p>You want the logo for your own notifications? But you joined the
|
<p>You want the logo for your own notifications? But you joined the
|
||||||
<a href="https://t.me/routeros_scripts">Telegram Group</a> and want
|
<a href="https://t.me/routeros_scripts">Telegram Group</a> and want
|
||||||
|
|
@ -24,17 +40,23 @@ something that differentiates? Color it!</p>
|
||||||
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
|
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
|
||||||
logo and download it.</p>
|
logo and download it.</p>
|
||||||
|
|
||||||
<p><img src="logo-color.d/browser-01.avif" width=533 height=482 alt="Screenshot Browser 01">
|
<p><img src="logo-color.d/browser-01.avif" alt="Screenshot Browser 01"></p>
|
||||||
<img src="logo-color.d/browser-02.avif" width=533 height=482 alt="Screenshot Browser 02">
|
<p><img src="logo-color.d/browser-02.avif" alt="Screenshot Browser 02"></p>
|
||||||
<img src="logo-color.d/browser-03.avif" width=533 height=482 alt="Screenshot Browser 03"></p>
|
<p><img src="logo-color.d/browser-03.avif" alt="Screenshot Browser 03"></p>
|
||||||
|
|
||||||
<p>(This example is with
|
<p>(This example is with
|
||||||
<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>. The workflow
|
<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>. The workflow
|
||||||
for other browsers may differ.)</p>
|
for other browsers may differ.)</p>
|
||||||
|
|
||||||
<p>See how to
|
<p>See how to
|
||||||
<a href="../../about/doc/mod/notification-telegram.md#set-a-profile-photo">Set
|
<a href="../doc/mod/notification-telegram.md#set-a-profile-photo">Set
|
||||||
a profile photo</a> for your Telegram bot.</p>
|
a profile photo</a> for your Telegram bot.</p>
|
||||||
|
|
||||||
</body>
|
<hr />
|
||||||
</html>
|
|
||||||
|
<p><a href="../README.md">⬅️ Go back to main README</a><br/>
|
||||||
|
<a href="#top">⬆️ Go back to top</a></p>
|
||||||
|
|
||||||
|
<p class="foot">Copyright © 2013-2026 Christian Hesse <mail@eworm.de></p>
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
body {
|
|
||||||
font-family: fira-sans, sans-serif;
|
|
||||||
font-size: 10pt;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
div.notification {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
width: 600px;
|
|
||||||
border: 3px outset #6c5d53;
|
|
||||||
/* border-radius: 5px; */
|
|
||||||
padding: 10px;
|
|
||||||
background-color: #e6e6e6;
|
|
||||||
}
|
|
||||||
div.content {
|
|
||||||
padding-left: 60px;
|
|
||||||
}
|
|
||||||
img.logo {
|
|
||||||
float: left;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
p.heading {
|
|
||||||
margin: 0px;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
p.hint {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
pre {
|
|
||||||
font-family: fira-mono, monospace;
|
|
||||||
white-space: pre-wrap;
|
|
||||||
}
|
|
||||||
span.link {
|
|
||||||
color: #863600;
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +1,57 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html><html lang="en">
|
||||||
<html lang="en">
|
<!-- static html //-->
|
||||||
<head>
|
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta charset="UTF-8">
|
<title>RouterOS Scripts :: Notification Generator</title>
|
||||||
<title>RouterOS-Scripts Notification Generator</title>
|
<link rel="stylesheet" type="text/css" href="../general/style.css">
|
||||||
<link rel="stylesheet" type="text/css" href="notification.d/style.css">
|
<link rel="icon" type="image/png" href="../logo.png">
|
||||||
<script src="notification.d/script.js"></script>
|
<script src="notification.d/script.js"></script>
|
||||||
</head>
|
</head><body>
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1>RouterOS-Scripts Notification Generator</h1>
|
<table><tr>
|
||||||
|
<td><img src="../general/eworm-meadow.avif" alt="eworm on meadow" /></td>
|
||||||
|
<td><img src="../general/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
|
||||||
|
<td class="head"><span class="top">RouterOS Scripts</span><br />
|
||||||
|
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
|
||||||
|
</tr></table>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<h1>Notification Generator</h1>
|
||||||
|
|
||||||
|
<!-- badges here //-->
|
||||||
|
|
||||||
|
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||||
|
|
||||||
|
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||||
|
on it may be broken on code hosting sites. Use
|
||||||
|
<a href="https://rsc.eworm.de/main/contrib/notification.html">Notification Generator</a>
|
||||||
|
instead.</p></blockquote>
|
||||||
|
|
||||||
<div class="notification">
|
<div class="notification">
|
||||||
<img src="../logo.svg" alt="logo" class="logo" width=48 height=48>
|
<img src="../logo.svg" alt="logo" class="logo" width=48 height=48>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p id="heading" class="heading">[<span id="hostname">MikroTik</span>] <span id="subject">ℹ️ Subject</span></p>
|
<p id="heading" class="heading">[<span id="hostname">MikroTik</span>] <span id="subject">ℹ️ Subject</span></p>
|
||||||
<pre id="message">Message</pre>
|
<pre id="message">Message</pre>
|
||||||
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://eworm.de/</span></p>
|
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://rsc.eworm.de/</span></p>
|
||||||
<p id="queued" class="hint">⏰ This message was queued since <span id="queued-since">oct/18/2022 18:30:48</span> and may be obsolete.</p>
|
<p id="queued" class="hint">⏰ This message was queued since <i><span id="queued-since">2025-10-29 16:06:18</span></i> and may be obsolete.</p>
|
||||||
<p id="cut" class="hint">✂️ The message was too long and has been truncated, cut off <span id="cut-percent">13</span>%!</p>
|
<p id="cut" class="hint">✂️ The message was too long and has been truncated, cut off <i><span id="cut-percent">13</span>%</i>!</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Hostname: <input type="text" value="MikroTik" onchange="update(this, 'hostname')"></p>
|
<p>Hostname: <input type="text" value="MikroTik" onchange="update(this, 'hostname')"></p>
|
||||||
<p>Subject: <input type="text" size=50 value="ℹ️ Subject" onchange="update(this, 'subject')"></p>
|
<p>Subject: <input type="text" size=50 value="ℹ️ Subject" onchange="update(this, 'subject')"></p>
|
||||||
<p>Message: <textarea id="w3review" name="w3review" rows="4" cols="50" onchange="update(this, 'message')">Message</textarea></p>
|
<p>Message: <textarea id="w3review" name="w3review" rows="4" cols="50" onchange="update(this, 'message')">Message</textarea></p>
|
||||||
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://eworm.de/" onchange="update(this, 'link-text')"></p>
|
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://rsc.eworm.de/" onchange="update(this, 'link-text')"></p>
|
||||||
<p><input type="checkbox" onclick="visible(this, 'queued')"> Queued since <input type="text" value="oct/18/2022 18:30:48" onchange="update(this, 'queued-since')"></p>
|
<p><input type="checkbox" onclick="visible(this, 'queued')"> Queued since <input type="text" value="2025-10-29 16:06:18" onchange="update(this, 'queued-since')"></p>
|
||||||
<p><input type="checkbox" onclick="visible(this, 'cut')"> Cut-off with <input type="number" min=1 max=99 value=13 onchange="update(this, 'cut-percent')"> percent</p>
|
<p><input type="checkbox" onclick="visible(this, 'cut')"> Cut-off with <input type="number" min=1 max=99 value=13 onchange="update(this, 'cut-percent')"> percent</p>
|
||||||
|
|
||||||
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
|
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
|
||||||
notification and download it.</p>
|
notification and download it.</p>
|
||||||
|
|
||||||
</body>
|
<hr />
|
||||||
</html>
|
|
||||||
|
<p><a href="../README.md">⬅️ Go back to main README</a><br/>
|
||||||
|
<a href="#top">⬆️ Go back to top</a></p>
|
||||||
|
|
||||||
|
<p class="foot">Copyright © 2013-2026 Christian Hesse <mail@eworm.de></p>
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
|
||||||
10
contrib/static-html.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e '/href=/s|\.md|\.html|' \
|
||||||
|
-e '/blockquote/s|/\* display \*/|display: none;|' \
|
||||||
|
-e '/<!-- badges here \/\/-->/r badges.html' \
|
||||||
|
-e '/<!-- badges here \/\/-->/d' \
|
||||||
|
"${@}"
|
||||||
274
contrib/telegram.md
Normal file
|
|
@ -0,0 +1,274 @@
|
||||||
|
Telegram
|
||||||
|
========
|
||||||
|
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
|
[](https://t.me/routeros_scripts)
|
||||||
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
[⬅️ Go back to main README](../README.md)
|
||||||
|
|
||||||
|
We have [Miss Rose Bot ↗️](https://t.me/MissRose_bot) in our
|
||||||
|
[RouterOS-Scripts ↗️](https://t.me/routeros_scripts) Telegram group,
|
||||||
|
always kind and ready to help moderate.
|
||||||
|
|
||||||
|
Notes
|
||||||
|
-----
|
||||||
|
|
||||||
|
### README
|
||||||
|
|
||||||
|
/save readme Please read the [main README](https://rsc.eworm.de/) to understand how things work and to get the base installation right.
|
||||||
|
|
||||||
|
### Available scripts
|
||||||
|
|
||||||
|
#### accesslist-duplicates
|
||||||
|
|
||||||
|
/save accesslist-duplicates Find and remove access list duplicates with [accesslist-duplicates](https://rsc.eworm.de/doc/accesslist-duplicates.md).
|
||||||
|
|
||||||
|
#### backup-cloud
|
||||||
|
|
||||||
|
/save backup-cloud Upload backup to Mikrotik cloud with [backup-cloud](https://rsc.eworm.de/doc/backup-cloud.md).
|
||||||
|
|
||||||
|
#### backup-email
|
||||||
|
|
||||||
|
/save backup-email Send backup via e-mail with [backup-email](https://rsc.eworm.de/doc/backup-email.md).
|
||||||
|
|
||||||
|
#### backup-partition
|
||||||
|
|
||||||
|
/save backup-partition Save configuration to fallback partition with [backup-partition](https://rsc.eworm.de/doc/backup-partition.md).
|
||||||
|
|
||||||
|
#### backup-upload
|
||||||
|
|
||||||
|
/save backup-upload Upload backup to server with [backup-upload](https://rsc.eworm.de/doc/backup-upload.md).
|
||||||
|
|
||||||
|
#### capsman-download-packages
|
||||||
|
|
||||||
|
/save capsman-download-packages Download packages for CAP upgrade from CAPsMAN with [capsman-download-packages](https://rsc.eworm.de/doc/capsman-download-packages.md).
|
||||||
|
|
||||||
|
#### capsman-rolling-upgrade
|
||||||
|
|
||||||
|
/save capsman-rolling-upgrade Run rolling CAP upgrades from CAPsMAN with [capsman-rolling-upgrade](https://rsc.eworm.de/doc/capsman-rolling-upgrade.md).
|
||||||
|
|
||||||
|
#### certificate-renew-issued
|
||||||
|
|
||||||
|
/save certificate-renew-issued Renew locally issued certificates with [certificate-renew-issued](https://rsc.eworm.de/doc/certificate-renew-issued.md).
|
||||||
|
|
||||||
|
#### check-certificates
|
||||||
|
|
||||||
|
/save check-certificates Renew certificates and notify on expiration with [check-certificates](https://rsc.eworm.de/doc/check-certificates.md).
|
||||||
|
|
||||||
|
#### check-health
|
||||||
|
|
||||||
|
/save check-health Notify about health state with [check-health](https://rsc.eworm.de/doc/check-health.md).
|
||||||
|
|
||||||
|
#### check-lte-firmware-upgrade
|
||||||
|
|
||||||
|
/save check-lte-firmware-upgrade Notify on LTE firmware upgrade with [check-lte-firmware-upgrade](https://rsc.eworm.de/doc/check-lte-firmware-upgrade.md).
|
||||||
|
|
||||||
|
#### check-perpetual-license
|
||||||
|
|
||||||
|
/save check-perpetual-license Check perpetual license on CHR with [check-perpetual-license](https://rsc.eworm.de/doc/check-perpetual-license.md).
|
||||||
|
|
||||||
|
#### check-routeros-update
|
||||||
|
|
||||||
|
/save check-routeros-update Notify on RouterOS update with [check-routeros-update](https://rsc.eworm.de/doc/check-routeros-update.md).
|
||||||
|
|
||||||
|
#### collect-wireless-mac
|
||||||
|
|
||||||
|
/save collect-wireless-mac Collect MAC addresses in wireless access list with [collect-wireless-mac](https://rsc.eworm.de/doc/collect-wireless-mac.md).
|
||||||
|
|
||||||
|
#### daily-psk
|
||||||
|
|
||||||
|
/save daily-psk Use wireless network with [daily-psk](https://rsc.eworm.de/doc/daily-psk.md).
|
||||||
|
|
||||||
|
#### dhcp-lease-comment
|
||||||
|
|
||||||
|
/save dhcp-lease-comment Comment DHCP leases with [dhcp-lease-comment](https://rsc.eworm.de/doc/dhcp-lease-comment.md).
|
||||||
|
|
||||||
|
#### dhcp-to-dns
|
||||||
|
|
||||||
|
/save dhcp-to-dns Create DNS records for DHCP leases with [dhcp-to-dns](https://rsc.eworm.de/doc/dhcp-to-dns.md).
|
||||||
|
|
||||||
|
#### firmware-upgrade-reboot
|
||||||
|
|
||||||
|
/save firmware-upgrade-reboot Automatically upgrade firmware and reboot with [firmware-upgrade-reboot](https://rsc.eworm.de/doc/firmware-upgrade-reboot.md).
|
||||||
|
|
||||||
|
#### fw-addr-lists
|
||||||
|
|
||||||
|
/save fw-addr-lists Download, import and update firewall address-lists with [fw-addr-lists](https://rsc.eworm.de/doc/fw-addr-lists.md).
|
||||||
|
|
||||||
|
#### global-wait
|
||||||
|
|
||||||
|
/save global-wait Wait for global functions und modules with [global-wait](https://rsc.eworm.de/doc/global-wait.md).
|
||||||
|
|
||||||
|
#### gps-track
|
||||||
|
|
||||||
|
/save gps-track Send GPS position to server with [gps-track](https://rsc.eworm.de/doc/gps-track.md).
|
||||||
|
|
||||||
|
#### hotspot-to-wpa
|
||||||
|
|
||||||
|
/save hotspot-to-wpa Use WPA network with [hotspot-to-wpa](https://rsc.eworm.de/doc/hotspot-to-wpa.md).
|
||||||
|
|
||||||
|
#### ipsec-to-dns
|
||||||
|
|
||||||
|
/save ipsec-to-dns Create DNS records for IPSec peers with [ipsec-to-dns](https://rsc.eworm.de/doc/ipsec-to-dns.md).
|
||||||
|
|
||||||
|
#### ipv6-update
|
||||||
|
|
||||||
|
/save ipv6-update Update configuration on IPv6 prefix change with [ipv6-update](https://rsc.eworm.de/doc/ipv6-update.md).
|
||||||
|
|
||||||
|
#### ip-addr-bridge
|
||||||
|
|
||||||
|
/save ip-addr-bridge Manage IP addresses with [ip-addr-bridge](https://rsc.eworm.de/doc/ip-addr-bridge.md).
|
||||||
|
|
||||||
|
#### lease-script
|
||||||
|
|
||||||
|
/save lease-script Run other scripts on DHCP lease with [lease-script](https://rsc.eworm.de/doc/lease-script.md).
|
||||||
|
|
||||||
|
#### leds-mode
|
||||||
|
|
||||||
|
/save leds-mode Manage LEDs dark mode with [leds-mode](https://rsc.eworm.de/doc/leds-mode.md).
|
||||||
|
|
||||||
|
#### log-forward
|
||||||
|
|
||||||
|
/save log-forward Forward log messages via notification with [log-forward](https://rsc.eworm.de/doc/log-forward.md).
|
||||||
|
|
||||||
|
#### mode-button
|
||||||
|
|
||||||
|
/save mode-button Mode button with [mode-button](https://rsc.eworm.de/doc/mode-button.md).
|
||||||
|
|
||||||
|
#### netwatch-dns
|
||||||
|
|
||||||
|
/save netwatch-dns Manage DNS and DoH servers from netwatch with [netwatch-dns](https://rsc.eworm.de/doc/netwatch-dns.md).
|
||||||
|
|
||||||
|
#### netwatch-notify
|
||||||
|
|
||||||
|
/save netwatch-notify Notify on host up and down with [netwatch-notify](https://rsc.eworm.de/doc/netwatch-notify.md).
|
||||||
|
|
||||||
|
#### ospf-to-leds
|
||||||
|
|
||||||
|
/save ospf-to-leds Visualize OSPF state via LEDs with [ospf-to-leds](https://rsc.eworm.de/doc/ospf-to-leds.md).
|
||||||
|
|
||||||
|
#### packages-update
|
||||||
|
|
||||||
|
/save packages-update Manage system update with [packages-update](https://rsc.eworm.de/doc/packages-update.md).
|
||||||
|
|
||||||
|
#### ppp-on-up
|
||||||
|
|
||||||
|
/save ppp-on-up Run scripts on ppp connection with [ppp-on-up](https://rsc.eworm.de/doc/ppp-on-up.md).
|
||||||
|
|
||||||
|
#### sms-action
|
||||||
|
|
||||||
|
/save sms-action Act on received SMS with [sms-action](https://rsc.eworm.de/doc/sms-action.md).
|
||||||
|
|
||||||
|
#### sms-forward
|
||||||
|
|
||||||
|
/save sms-forward Forward received SMS with [sms-forward](https://rsc.eworm.de/doc/sms-forward.md).
|
||||||
|
|
||||||
|
#### super-mario-theme
|
||||||
|
|
||||||
|
/save super-mario-theme Play Super Mario theme with [super-mario-theme](https://rsc.eworm.de/doc/super-mario-theme.md).
|
||||||
|
|
||||||
|
#### telegram-chat
|
||||||
|
|
||||||
|
/save telegram-chat Chat with [telegram-chat](https://rsc.eworm.de/doc/telegram-chat.md).
|
||||||
|
|
||||||
|
#### unattended-lte-firmware-upgrade
|
||||||
|
|
||||||
|
/save unattended-lte-firmware-upgrade Install LTE firmware upgrade with [unattended-lte-firmware-upgrade](https://rsc.eworm.de/doc/unattended-lte-firmware-upgrade.md).
|
||||||
|
|
||||||
|
#### update-gre-address
|
||||||
|
|
||||||
|
/save update-gre-address Update GRE configuration with [update-gre-address](https://rsc.eworm.de/doc/update-gre-address.md).
|
||||||
|
|
||||||
|
#### update-tunnelbroker
|
||||||
|
|
||||||
|
/save update-tunnelbroker Update tunnelbroker configuration with [update-tunnelbroker](https://rsc.eworm.de/doc/update-tunnelbroker.md).
|
||||||
|
|
||||||
|
### Available modules
|
||||||
|
|
||||||
|
#### mod/bridge-port-to
|
||||||
|
|
||||||
|
/save mod/bridge-port-to Manage ports in bridge with [mod/bridge-port-to](https://rsc.eworm.de/doc/mod/bridge-port-to.md).
|
||||||
|
|
||||||
|
#### mod/bridge-port-vlan
|
||||||
|
|
||||||
|
/save mod/bridge-port-vlan Manage VLANs on bridge ports with [mod/bridge-port-vlan](https://rsc.eworm.de/doc/mod/bridge-port-vlan.md).
|
||||||
|
|
||||||
|
#### mod/inspectvar
|
||||||
|
|
||||||
|
/save mod/inspectvar Inspect variables with [mod/inspectvar](https://rsc.eworm.de/doc/mod/inspectvar.md).
|
||||||
|
|
||||||
|
#### mod/ipcalc
|
||||||
|
|
||||||
|
/save mod/ipcalc IP address calculation with [mod/ipcalc](https://rsc.eworm.de/doc/mod/ipcalc.md).
|
||||||
|
|
||||||
|
#### mod/notification-email
|
||||||
|
|
||||||
|
/save mod/notification-email Send notifications via e-mail with [mod/notification-email](https://rsc.eworm.de/doc/mod/notification-email.md).
|
||||||
|
|
||||||
|
#### mod/notification-gotify
|
||||||
|
|
||||||
|
/save mod/notification-gotify Send notifications via Gotify with [mod/notification-gotify](https://rsc.eworm.de/doc/mod/notification-gotify.md).
|
||||||
|
|
||||||
|
#### mod/notification-matrix
|
||||||
|
|
||||||
|
/save mod/notification-matrix Send notifications via Matrix with [mod/notification-matrix](https://rsc.eworm.de/doc/mod/notification-matrix.md).
|
||||||
|
|
||||||
|
#### mod/notification-ntfy
|
||||||
|
|
||||||
|
/save mod/notification-ntfy Send notifications via Ntfy with [mod/notification-ntfy](https://rsc.eworm.de/doc/mod/notification-ntfy.md).
|
||||||
|
|
||||||
|
#### mod/notification-telegram
|
||||||
|
|
||||||
|
/save mod/notification-telegram Send notifications via Telegram with [mod/notification-telegram](https://rsc.eworm.de/doc/mod/notification-telegram.md).
|
||||||
|
|
||||||
|
#### mod/scriptrunonce
|
||||||
|
|
||||||
|
/save mod/scriptrunonce Download script and run it once with [mod/scriptrunonce](https://rsc.eworm.de/doc/mod/scriptrunonce.md).
|
||||||
|
|
||||||
|
#### mod/ssh-keys-import
|
||||||
|
|
||||||
|
/save mod/ssh-keys-import Import ssh keys for public key authentication with [mod/ssh-keys-import](https://rsc.eworm.de/doc/mod/ssh-keys-import.md).
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
#### Installing from branches
|
||||||
|
|
||||||
|
/save branches Living on the edge or testing new features? Learn how to [switch specific scripts or the complete installation to different branches](https://rsc.eworm.de/BRANCHES.md).
|
||||||
|
|
||||||
|
#### Certificate name from browser
|
||||||
|
|
||||||
|
/save certificate-name-from-browser Running or accessing a custom service and looking for the CA certificate? Get the [certificate name from browser](https://rsc.eworm.de/CERTIFICATES.md).
|
||||||
|
|
||||||
|
#### Debug output and logs
|
||||||
|
|
||||||
|
/save debug Enable [debug output and logs](https://rsc.eworm.de/DEBUG.md) for more information on what happens.
|
||||||
|
|
||||||
|
#### Donate
|
||||||
|
|
||||||
|
/save donate This project is developed in private spare time and usage is free of charge for you. If you like the scripts and think this is of value for you or your business [please consider a donation](https://rsc.eworm.de/#donate). Thanks!
|
||||||
|
|
||||||
|
#### Fix existing installation
|
||||||
|
|
||||||
|
/save fix-installation [Fix existing installation] Your installation broke and you do not know back and forth? See how to [fix an existing installation](https://rsc.eworm.de/INITIAL-COMMANDS.md#fix-existing-installation).
|
||||||
|
|
||||||
|
#### Next!
|
||||||
|
|
||||||
|
/save next Another satisfied user. 😊 Next, please!
|
||||||
|
|
||||||
|
#### Off-topic
|
||||||
|
|
||||||
|
/save off-topic Please note this group is not about MikroTik RouterOS in general, but [RouterOS Scripts](https://rsc.eworm.de/). Your request is not about scripting at all, so please discuss somewhere else. See the [MikroTik RouterOS users (english)](https://t.me/RouterOS_users_english) group or official Mikrotik forums (https://forum.mikrotik.com/).
|
||||||
|
|
||||||
|
Greeting
|
||||||
|
--------
|
||||||
|
|
||||||
|
/setwelcome Hello {mention}, and welcome to {chatname}!
|
||||||
|
Please note this group is not about RouterOS in general, but [RouterOS Scripts](https://rsc.eworm.de/). Also pay attention to [rules](https://t.me/routeros_scripts/4), thanks!
|
||||||
|
|
||||||
|
---
|
||||||
|
[⬅️ Go back to main README](../README.md)
|
||||||
|
[⬆️ Go back to top](#top)
|
||||||
11
contrib/template-capsman.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e '/\/interface\/wifi\//d' \
|
||||||
|
-e '/\/interface\/wireless\//d' \
|
||||||
|
-e 's|%TEMPL%|.capsman|' \
|
||||||
|
-e '/^# NOT \/caps-man\/ #$/,/^# NOT \/caps-man\/ #$/d' \
|
||||||
|
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||||
|
< "${1}"
|
||||||
11
contrib/template-local.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e '/\/caps-man\//d' \
|
||||||
|
-e '/\/interface\/wifi\//d' \
|
||||||
|
-e 's|%TEMPL%|.local|' \
|
||||||
|
-e '/^# NOT \/interface\/wireless\/ #$/,/^# NOT \/interface\/wireless\/ #$/d' \
|
||||||
|
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||||
|
< "${1}"
|
||||||
11
contrib/template-wifi.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e '/\/caps-man\//d' \
|
||||||
|
-e '/\/interface\/wireless\//d' \
|
||||||
|
-e 's|%TEMPL%|.wifi|' \
|
||||||
|
-e '/^# NOT \/interface\/wifi\/ #$/,/^# NOT \/interface\/wifi\/ #$/d' \
|
||||||
|
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||||
|
< "${1}"
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: daily-psk.capsman
|
# RouterOS script: daily-psk.capsman
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
# https://rsc.eworm.de/doc/daily-psk.md
|
# https://rsc.eworm.de/doc/daily-psk.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: daily-psk.local
|
# RouterOS script: daily-psk.local
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
# https://rsc.eworm.de/doc/daily-psk.md
|
# https://rsc.eworm.de/doc/daily-psk.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: daily-psk%TEMPL%
|
# RouterOS script: daily-psk%TEMPL%
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
# https://rsc.eworm.de/doc/daily-psk.md
|
# https://rsc.eworm.de/doc/daily-psk.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: daily-psk.wifi
|
# RouterOS script: daily-psk.wifi
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
# https://rsc.eworm.de/doc/daily-psk.md
|
# https://rsc.eworm.de/doc/daily-psk.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: dhcp-lease-comment.capsman
|
# RouterOS script: dhcp-lease-comment.capsman
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=60
|
# provides: lease-script, order=60
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update dhcp-server lease comment with infos from access-list
|
# update dhcp-server lease comment with infos from access-list
|
||||||
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: dhcp-lease-comment.local
|
# RouterOS script: dhcp-lease-comment.local
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=60
|
# provides: lease-script, order=60
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update dhcp-server lease comment with infos from access-list
|
# update dhcp-server lease comment with infos from access-list
|
||||||
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: dhcp-lease-comment%TEMPL%
|
# RouterOS script: dhcp-lease-comment%TEMPL%
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=60
|
# provides: lease-script, order=60
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update dhcp-server lease comment with infos from access-list
|
# update dhcp-server lease comment with infos from access-list
|
||||||
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: dhcp-lease-comment.wifi
|
# RouterOS script: dhcp-lease-comment.wifi
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=60
|
# provides: lease-script, order=60
|
||||||
# requires RouterOS, version=7.15
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# update dhcp-server lease comment with infos from access-list
|
# update dhcp-server lease comment with infos from access-list
|
||||||
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
# https://rsc.eworm.de/doc/dhcp-lease-comment.md
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#!rsc by RouterOS
|
#!rsc by RouterOS
|
||||||
# RouterOS script: dhcp-to-dns
|
# RouterOS script: dhcp-to-dns
|
||||||
# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# provides: lease-script, order=20
|
# provides: lease-script, order=20
|
||||||
# requires RouterOS, version=7.16
|
# requires RouterOS, version=7.19
|
||||||
#
|
#
|
||||||
# check DHCP leases and add/remove/update DNS entries
|
# check DHCP leases and add/remove/update DNS entries
|
||||||
# https://rsc.eworm.de/doc/dhcp-to-dns.md
|
# https://rsc.eworm.de/doc/dhcp-to-dns.md
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 3.5 KiB |
|
|
@ -4,7 +4,7 @@ Find and remove access list duplicates
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 13 KiB |
|
|
@ -4,7 +4,7 @@ Upload backup to Mikrotik cloud
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Send backup via e-mail
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Save configuration to fallback partition
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 16 KiB |
|
|
@ -4,7 +4,7 @@ Upload backup to server
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Download packages for CAP upgrade from CAPsMAN
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Run rolling CAP upgrades from CAPsMAN
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Renew locally issued certificates
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
|
||||||
BIN
doc/check-certificates.d/notification-01-warn.avif
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
doc/check-certificates.d/notification-02-renew.avif
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
|
@ -4,7 +4,7 @@ Renew certificates and notify on expiration
|
||||||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||||
[](https://mikrotik.com/download/changelogs/)
|
[](https://mikrotik.com/download/changelogs/)
|
||||||
[](https://t.me/routeros_scripts)
|
[](https://t.me/routeros_scripts)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||||
|
|
||||||
|
|
@ -19,9 +19,10 @@ Description
|
||||||
This script tries to download and renew certificates, then notifies about
|
This script tries to download and renew certificates, then notifies about
|
||||||
certificates that are still about to expire.
|
certificates that are still about to expire.
|
||||||
|
|
||||||
### Sample notification
|
### Sample notifications
|
||||||
|
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
Requirements and installation
|
Requirements and installation
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.9 KiB |