mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-04 16:31:42 +00:00
Compare commits
77 commits
99af1b6175
...
7a1543bf8a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a1543bf8a | ||
|
|
659712e46f | ||
|
|
b462964455 | ||
|
|
96794c85e1 | ||
|
|
e195391bec | ||
|
|
da8ce886ff | ||
|
|
8d781870b3 | ||
|
|
a6288217c1 | ||
|
|
bd84f40e2d | ||
|
|
639b4a721b | ||
|
|
8b36ccd936 | ||
|
|
8a3940d173 | ||
|
|
da2e543cc9 | ||
|
|
14a4f53aee | ||
|
|
0c4bae7c74 | ||
|
|
c5ee4d8782 | ||
|
|
0ed4756796 | ||
|
|
37285db747 | ||
|
|
4d33570f70 | ||
|
|
5237457e58 | ||
|
|
4c430403fe | ||
|
|
c6f7c3833d | ||
|
|
ba5ec4901c | ||
|
|
b1686c1a74 | ||
|
|
362b4538d7 | ||
|
|
726a491ac3 | ||
|
|
f65dc263f4 | ||
|
|
2072ac309e | ||
|
|
afb767871f | ||
|
|
7ce25f7ece | ||
|
|
ee14da6c9c | ||
|
|
2ee5b11310 | ||
|
|
f85355b9ba | ||
|
|
42bbaf73a4 | ||
|
|
ba57a80d17 | ||
|
|
f980a24989 | ||
|
|
e4de545860 | ||
|
|
ea145c3e69 | ||
|
|
b71eb32600 | ||
|
|
1397f068c6 | ||
|
|
c03ffebfea | ||
|
|
bcd3fa9a77 | ||
|
|
c85183a260 | ||
|
|
c601316cd9 | ||
|
|
1500106a5b | ||
|
|
5d991c8ed6 | ||
|
|
f900684a20 | ||
|
|
f2a3a0414e | ||
|
|
457b8de18e | ||
|
|
b3ae0fa682 | ||
|
|
68cb26f06a | ||
|
|
8e6b1a278b | ||
|
|
45fefb4299 | ||
|
|
29c7f9f366 | ||
|
|
8147674a85 | ||
|
|
93295dffe6 | ||
|
|
6d2c67fb15 | ||
|
|
fd24deb651 | ||
|
|
fa6e268d7f | ||
|
|
46ead7cb01 | ||
|
|
e81427d10a | ||
|
|
e2274b5764 | ||
|
|
f2d30f80be | ||
|
|
bc3c31a6c1 | ||
|
|
ef47f93f40 | ||
|
|
759ed0e36a | ||
|
|
a28347d451 | ||
|
|
5c02b2c349 | ||
|
|
db848ebc22 | ||
|
|
b52558891b | ||
|
|
e67032cc44 | ||
|
|
5c0dbebb10 | ||
|
|
ae849d7a6b | ||
|
|
4f0b666c4e | ||
|
|
a20c6a5f57 | ||
|
|
2184885413 | ||
|
|
701c3b2c3a |
11 changed files with 26 additions and 26 deletions
|
|
@ -18,9 +18,9 @@ Run the complete base installation:
|
|||
|
||||
{
|
||||
:local BaseUrl "https://rsc.eworm.de/main/";
|
||||
:local CertCommonName "ISRG Root X2";
|
||||
:local CertFileName "ISRG-Root-X2.pem";
|
||||
:local CertFingerprint "69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
||||
:local CertCommonName "Root YE";
|
||||
:local CertFileName "Root-YE.pem";
|
||||
:local CertFingerprint "e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||
|
||||
:local CertSettings [ /certificate/settings/get ];
|
||||
:if (!((($CertSettings->"builtin-trust-store") ~ "fetch" || \
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 4.9 KiB |
12
README.md
12
README.md
|
|
@ -122,18 +122,18 @@ If you intend to download the scripts from a
|
|||
different location (for example from github.com) install the corresponding
|
||||
certificate chain.
|
||||
|
||||
/tool/fetch "https://rsc.eworm.de/main/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";
|
||||
|
||||

|
||||
|
||||
> ℹ️ **Info**: Note that the command above does *not* verify server
|
||||
> certificate, so if you want to be safe download with your workstations's
|
||||
> browser from CA's website and transfer the file to your MikroTik device:
|
||||
> *Let's Encrypt* / *ISRG* [ISRG Root X2 ↗️](https://letsencrypt.org/certs/isrg-root-x2.pem)
|
||||
> *Let's Encrypt* / *ISRG* [Root YE ↗️](https://letsencrypt.org/certs/gen-y/root-ye.pem)
|
||||
|
||||
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
|
||||
a sensitive property, the passphrase.
|
||||
|
|
@ -141,11 +141,11 @@ a sensitive property, the passphrase.
|
|||

|
||||
|
||||
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.
|
||||
|
||||
/certificate/set name="ISRG-Root-X2" [ find where common-name="ISRG Root X2" ];
|
||||
/certificate/print proplist=name,fingerprint where fingerprint="69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
||||
/certificate/set name="Root-YE" [ find where common-name="Root YE" ];
|
||||
/certificate/print proplist=name,fingerprint where fingerprint="e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ DOMAINS_DUAL = \
|
|||
cloudflare-dns.com/SSL-com-Root-Certification-Authority-ECC \
|
||||
dns.google/GTS-Root-RX \
|
||||
dns.quad9.net/DigiCert-Global-Root-G3 \
|
||||
git.eworm.de/ISRG-Root-X2 \
|
||||
git.eworm.de/Root-YE \
|
||||
gitlab.com/USERTrust-RSA-Certification-Authority \
|
||||
lists.blocklist.de/GTS-Root-R4 \
|
||||
matrix.org/GTS-Root-R4 \
|
||||
raw.githubusercontent.com/ISRG-Root-X1 \
|
||||
rsc.eworm.de/ISRG-Root-X2 \
|
||||
rsc.eworm.de/Root-YE \
|
||||
upgrade.mikrotik.com/ISRG-Root-X1
|
||||
DOMAINS_IPV4 = \
|
||||
1.1.1.1/SSL-com-Root-Certification-Authority-ECC \
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
}
|
||||
|
||||
:local TempToNum do={
|
||||
:local T [ :toarray delimiter="." $1 ];
|
||||
:global CharacterReplace;
|
||||
:local T [ :toarray [ $CharacterReplace $1 "." "," ] ];
|
||||
:return ($T->0 * 10 + $T->1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
:global ValidateSyntax;
|
||||
|
||||
:local TempToNum do={
|
||||
:local T [ :toarray delimiter="." $1 ];
|
||||
:global CharacterReplace;
|
||||
:local T [ :toarray [ $CharacterReplace $1 "." "," ] ];
|
||||
:return ($T->0 * 10 + $T->1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,13 +70,11 @@
|
|||
:local Data false;
|
||||
:local TimeOut [ $EitherOr [ :totime ($List->"timeout") ] $FwAddrListTimeOut ];
|
||||
|
||||
:foreach Cert in=[ :toarray delimiter=":" ($List->"cert") ] do={
|
||||
:if ([ :len ($Cert) ] > 0) do={
|
||||
:set CheckCertificate true;
|
||||
:if ([ $CertificateAvailable $Cert "fetch" ] = false) do={
|
||||
$LogPrint warning $ScriptName ("Downloading required certificate (" . $FwListName . \
|
||||
" / " . $List->"url" . ") failed, trying anyway.");
|
||||
}
|
||||
:if ([ :len ($List->"cert") ] > 0) do={
|
||||
:set CheckCertificate true;
|
||||
:if ([ $CertificateAvailable ($List->"cert") "fetch" ] = false) do={
|
||||
$LogPrint warning $ScriptName ("Downloading required certificate (" . $FwListName . \
|
||||
" / " . $List->"url" . ") failed, trying anyway.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -112,11 +112,11 @@
|
|||
:global FwAddrLists {
|
||||
# "allow"={
|
||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/allow";
|
||||
# cert="ISRG Root X2:Root YE"; timeout=1w };
|
||||
# cert="Root YE"; timeout=1w };
|
||||
# };
|
||||
"block"={
|
||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/block";
|
||||
# cert="ISRG Root X2:Root YE" };
|
||||
# cert="Root YE" };
|
||||
{ url="https://raw.githubusercontent.com/stamparm/ipsum/refs/heads/master/levels/4.txt";
|
||||
# # higher level (decrease the numerical value) for more addresses, and vice versa
|
||||
cert="ISRG Root X1" };
|
||||
|
|
@ -131,7 +131,7 @@
|
|||
};
|
||||
# "mikrotik"={
|
||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/mikrotik";
|
||||
# cert="ISRG Root X2:Root YE"; timeout=1w };
|
||||
# cert="Root YE"; timeout=1w };
|
||||
# };
|
||||
};
|
||||
:global FwAddrListTimeOut 1d;
|
||||
|
|
|
|||
|
|
@ -1243,8 +1243,7 @@
|
|||
:global SymbolForNotification;
|
||||
:global ValidateSyntax;
|
||||
|
||||
:if ([ $CertificateAvailable "ISRG Root X2" "fetch" ] = false || \
|
||||
[ $CertificateAvailable "Root YE" "fetch" ] = false) do={
|
||||
:if ([ $CertificateAvailable "Root YE" "fetch" ] = false) do={
|
||||
$LogPrint warning $0 ("Downloading certificate failed, trying without.");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global CertificateAvailable;
|
||||
:global CharacterReplace;
|
||||
:global EitherOr;
|
||||
:global IsDNSResolving;
|
||||
:global LogPrint;
|
||||
|
|
@ -99,7 +100,7 @@
|
|||
}
|
||||
|
||||
:foreach DohServer in=$DohServers do={
|
||||
:foreach DohCert in=[ :toarray delimiter=":" ($DohServer->"doh-cert") ] do={
|
||||
:foreach DohCert in=[ :toarray [ $CharacterReplace ($DohServer->"doh-cert") ":" "," ] ] do={
|
||||
:if ([ :len $DohCert ] > 0) do={
|
||||
:if ([ $CertificateAvailable $DohCert "fetch" ] = false || \
|
||||
[ $CertificateAvailable $DohCert "dns" ] = false) do={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue