mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-31 21:51:35 +00:00
Compare commits
69 commits
8109b4fca5
...
4026e31efb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4026e31efb | ||
|
|
44db7e9447 | ||
|
|
9ea9a53dc1 | ||
|
|
1040cffa43 | ||
|
|
1c85f37e2a | ||
|
|
3b5073b1bd | ||
|
|
9d0d7cf8a3 | ||
|
|
2c1f2beb49 | ||
|
|
9496a0cb52 | ||
|
|
84aba652d1 | ||
|
|
514e8dd283 | ||
|
|
35080e0bdf | ||
|
|
69cc777a45 | ||
|
|
7931a8df00 | ||
|
|
54b74b39d6 | ||
|
|
33d2bbdd5f | ||
|
|
94b691a517 | ||
|
|
20e0f4c6eb | ||
|
|
7da1bd39c6 | ||
|
|
c119b051b7 | ||
|
|
799b72f5d4 | ||
|
|
44b9afe9b9 | ||
|
|
0ee555cdf4 | ||
|
|
45afc3fc7b | ||
|
|
d1a7a3112b | ||
|
|
b7aa4d10e9 | ||
|
|
c561189cea | ||
|
|
12967c1491 | ||
|
|
ed11c87872 | ||
|
|
a0b4583f31 | ||
|
|
57951dce32 | ||
|
|
94d3b4c54d | ||
|
|
79110df6fa | ||
|
|
d1ab96caa6 | ||
|
|
538a52be9c | ||
|
|
4288882f69 | ||
|
|
9431437fa8 | ||
|
|
3f8f7a3951 | ||
|
|
31bf3da567 | ||
|
|
f60d50b620 | ||
|
|
c36b909e65 | ||
|
|
c02b9e6d6d | ||
|
|
9b88ffc290 | ||
|
|
b1cb6ebfca | ||
|
|
6ffbe4667d | ||
|
|
b17a2d6184 | ||
|
|
83893f7898 | ||
|
|
de59198763 | ||
|
|
32d0c23df1 | ||
|
|
c2f241ebf9 | ||
|
|
2677fed80f | ||
|
|
7f2d9780da | ||
|
|
cceda45d4b | ||
|
|
cb78380b82 | ||
|
|
51ff4204ea | ||
|
|
c96f0d1ed2 | ||
|
|
8bd3fea5f8 | ||
|
|
77532e80d0 | ||
|
|
5c89f6c736 | ||
|
|
c89fb2513a | ||
|
|
d4edc4fa93 | ||
|
|
257d9e7f2d | ||
|
|
e7075c428c | ||
|
|
ae94f436e0 | ||
|
|
c2fbfd9523 | ||
|
|
927c36b420 | ||
|
|
653b4687a8 | ||
|
|
611ceef233 | ||
|
|
97b85d8f06 |
4 changed files with 8 additions and 15 deletions
|
|
@ -48,9 +48,7 @@ can be closed now.)
|
|||

|
||||
|
||||
A new tab opens, showing information on the server certificate and its
|
||||
chain of trust. The leftmost certificate is the current server certificate,
|
||||
the rightmost one is the *certification authority* certificate and what we
|
||||
are interested in.
|
||||
chain of trust. The leftmost certificate is what we are interested in.
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Manage DNS and DoH servers from netwatch
|
|||
[](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://mikrotik.com/download/changelogs/)
|
||||
[](https://t.me/routeros_scripts)
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
:global ParseKeyValueStore;
|
||||
|
||||
:if ([ :len $UseFor ] = 0) do={
|
||||
$LogPrint info $0 ("The intended use is undefined!");
|
||||
$LogPrint warning $0 ("The intended use is undefined!");
|
||||
:set UseFor "undefined";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (c) 2022-2026 Christian Hesse <mail@eworm.de>
|
||||
# https://rsc.eworm.de/COPYING.md
|
||||
#
|
||||
# requires RouterOS, version=7.24rc1
|
||||
# requires RouterOS, version=7.22
|
||||
# requires device-mode, fetch
|
||||
#
|
||||
# monitor and manage dns/doh with netwatch
|
||||
|
|
@ -113,16 +113,11 @@
|
|||
:local I 1;
|
||||
:retry {
|
||||
:set I ($I ^ 1);
|
||||
:local Url (($DohServer->"doh-url") . "?dns=" . [ :convert to=base64 ([ :rndstr length=2 ] . \
|
||||
"\01\00" . "\00\01" . "\00\00" . "\00\00" . "\00\00" . "\09doh-check\05eworm" . \
|
||||
({ "\02de"; "\03net" }->$I) . "\00" . "\00\10" . "\00\01") ]);
|
||||
:do {
|
||||
:set Data ([ /tool/fetch check-certificate=yes-without-crl output=user http-version=http2 \
|
||||
http-header-field=({ "accept: application/dns-message" }) url=$Url as-value ]->"data");
|
||||
} on-error={
|
||||
:set Data ([ /tool/fetch check-certificate=yes-without-crl output=user \
|
||||
http-header-field=({ "accept: application/dns-message" }) url=$Url as-value ]->"data");
|
||||
}
|
||||
http-header-field=({ "accept: application/dns-message" }) \
|
||||
url=(($DohServer->"doh-url") . "?dns=" . [ :convert to=base64 ([ :rndstr length=2 ] . \
|
||||
"\01\00" . "\00\01" . "\00\00" . "\00\00" . "\00\00" . "\09doh-check\05eworm" . \
|
||||
({ "\02de"; "\03net" }->$I) . "\00" . "\00\10" . "\00\01") ]) as-value ]->"data");
|
||||
} delay=500ms max=6;
|
||||
} do={
|
||||
$LogPrint warning $ScriptName ("Request to DoH server " . ($DohServer->"doh-url") . \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue