mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-03 20:49:36 +00:00
Compare commits
90 commits
181a559499
...
28971c1e88
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28971c1e88 | ||
|
|
04a33f9ca5 | ||
|
|
ad32e1af94 | ||
|
|
4e38a6651e | ||
|
|
b53f223527 | ||
|
|
1d170071a5 | ||
|
|
d55e237fa6 | ||
|
|
6cb3ef6053 | ||
|
|
6835b6fd3a | ||
|
|
57bc2fc989 | ||
|
|
4abfec4f12 | ||
|
|
03946e0d74 | ||
|
|
a802863f4c | ||
|
|
740b40e619 | ||
|
|
77319492fe | ||
|
|
27004f9138 | ||
|
|
56f079b81c | ||
|
|
99a49f3f58 | ||
|
|
fcb4bfdb1f | ||
|
|
81b432b18e | ||
|
|
62200bc753 | ||
|
|
7c0b87eabe | ||
|
|
6149833e4b | ||
|
|
57bb25828d | ||
|
|
8d0722d9e1 | ||
|
|
bba6f24081 | ||
|
|
4b1cc263e4 | ||
|
|
6e3c21cda9 | ||
|
|
c9ad1fd387 | ||
|
|
89694b937e | ||
|
|
a3d63b0546 | ||
|
|
8914e38555 | ||
|
|
7ce09b1125 | ||
|
|
cabbfbe71e | ||
|
|
cbbe402a00 | ||
|
|
e590977d9a | ||
|
|
c628a6a5d2 | ||
|
|
5cbf0e9621 | ||
|
|
8b7982d73f | ||
|
|
bd0075af4c | ||
|
|
e8bff72f4a | ||
|
|
eb514160e8 | ||
|
|
93db7c36ec | ||
|
|
e8f9b288d4 | ||
|
|
e40a5575c4 | ||
|
|
72940ee746 | ||
|
|
1f0f2375c6 | ||
|
|
082f6e4812 | ||
|
|
3b98e676c5 | ||
|
|
b7c0dab767 | ||
|
|
96226c71d3 | ||
|
|
0db4306795 | ||
|
|
3baf0bd060 | ||
|
|
c76c9591d5 | ||
|
|
998555932d | ||
|
|
39f993ffbd | ||
|
|
86bf200bb5 | ||
|
|
80746d4dad | ||
|
|
4fe77ef238 | ||
|
|
0de3963278 | ||
|
|
5590acc86f | ||
|
|
ad8299824c | ||
|
|
b7df0d393a | ||
|
|
03010ad9d9 | ||
|
|
125af60b04 | ||
|
|
5c7d0d456f | ||
|
|
8b3fae745d | ||
|
|
5f8f5e22a7 | ||
|
|
7f888b197e | ||
|
|
223d9fc2e0 | ||
|
|
969658da16 | ||
|
|
c81967f63a | ||
|
|
31e2e62c56 | ||
|
|
6dd37e45d6 | ||
|
|
005b80b4c5 | ||
|
|
18f240fb77 | ||
|
|
ddf7a015c5 | ||
|
|
7096b82dea | ||
|
|
d4624689ae | ||
|
|
5618618d9a | ||
|
|
2366122a36 | ||
|
|
9041081264 | ||
|
|
c0e802eab9 | ||
|
|
345c8ef6b2 | ||
|
|
920785c25b | ||
|
|
87b80e05cb | ||
|
|
d0f2ae0033 | ||
|
|
f3d81f7e0d | ||
|
|
5443034897 | ||
|
|
a8e091dde7 |
3 changed files with 7 additions and 34 deletions
|
|
@ -23,8 +23,7 @@ Run the complete base installation:
|
|||
:local CertFingerprint "e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||
|
||||
:local CertSettings [ /certificate/settings/get ];
|
||||
:if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
||||
($CertSettings->"builtin-trust-store") ~ "fetch" || \
|
||||
:if (!((($CertSettings->"builtin-trust-store") ~ "fetch" || \
|
||||
($CertSettings->"builtin-trust-store") = "all") && \
|
||||
[ :len [ /certificate/builtin/find where common-name=$CertCommonName ] ] > 0)) do={
|
||||
:put "Importing certificate...";
|
||||
|
|
|
|||
|
|
@ -100,13 +100,11 @@ including demonstration recorded live at [MUM Europe
|
|||
The update script does server certificate verification, so first step is to
|
||||
download the certificates.
|
||||
|
||||
> 💡️ **Hint**: RouterOS 7.19 comes with a builtin certificate store. You
|
||||
> 💡️ **Hint**: RouterOS comes with a builtin certificate store. You
|
||||
> can skip the steps regarding certificate download and import and jump
|
||||
> to [installation of scripts](#installation-of-scripts) if you set the
|
||||
> trust for these builtin trust anchors:
|
||||
> `/certificate/settings/set builtin-trust-anchors=trusted;`
|
||||
> With RouterOS 7.21 the functionality was changed. Set this at minimum,
|
||||
> but make sure not to drop other targets:
|
||||
> certificates to be trusted my the `fetch` command at least. But make
|
||||
> sure not to drop other targets:
|
||||
> `/certificate/settings/set builtin-trust-store=fetch;`
|
||||
|
||||
If you intend to download the scripts from a
|
||||
|
|
|
|||
|
|
@ -128,8 +128,7 @@
|
|||
}
|
||||
|
||||
:local CertSettings [ /certificate/settings/get ];
|
||||
:if ((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
||||
($CertSettings->"builtin-trust-store") ~ $UseFor || \
|
||||
:if ((($CertSettings->"builtin-trust-store") ~ $UseFor || \
|
||||
($CertSettings->"builtin-trust-store") = "all") && \
|
||||
[ :len [ /certificate/builtin/find where common-name=$CommonName ] ] > 0) do={
|
||||
:return true;
|
||||
|
|
@ -1015,32 +1014,9 @@
|
|||
|
||||
# return an IPv6 netmask for CIDR
|
||||
:set NetMask6 do={
|
||||
:local FuncName $0;
|
||||
:local CIDR [ :tostr $1 ];
|
||||
:local CIDR [ :tonum $1 ];
|
||||
|
||||
:global IfThenElse;
|
||||
:global MAX;
|
||||
:global MIN;
|
||||
|
||||
:global NetMask6Cache;
|
||||
|
||||
:if ([ :typeof ($NetMask6Cache->$CIDR) ] = "ip6") do={
|
||||
:return ($NetMask6Cache->$CIDR);
|
||||
}
|
||||
|
||||
:if ([ :typeof $NetMask6Cache ] = "nothing") do={
|
||||
:set NetMask6Cache ({});
|
||||
}
|
||||
|
||||
:local Mask "";
|
||||
:for I from=0 to=7 do={
|
||||
:set Mask ($Mask . \
|
||||
[ :convert from=num to=hex (0xffff - (0xffff >> [ :tonum [ $MIN [ $MAX ($CIDR - (16 * $I)) 0 ] 16 ] ])) ] . \
|
||||
[ $IfThenElse ($I < 7) ":" ]);
|
||||
}
|
||||
:set Mask [ :toip6 $Mask ];
|
||||
:set ($NetMask6Cache->$CIDR) $Mask;
|
||||
:return $Mask;
|
||||
:return (((~::) << (128 - $CIDR)) & (~::));
|
||||
}
|
||||
|
||||
# prepare NotificationFunctions array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue