mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-31 21:51:35 +00:00
Compare commits
72 commits
4026e31efb
...
8109b4fca5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8109b4fca5 | ||
|
|
8c6707befd | ||
|
|
6dbd228c7f | ||
|
|
04f0d6a397 | ||
|
|
5221d79ff1 | ||
|
|
07771109fe | ||
|
|
76c2c97c6c | ||
|
|
65c24c0137 | ||
|
|
b2e7ec1b5c | ||
|
|
0d6a2a9381 | ||
|
|
14ad52b269 | ||
|
|
e2adfb362c | ||
|
|
6b8324a51a | ||
|
|
97a1088823 | ||
|
|
4fe3ba1d1f | ||
|
|
9c1e2d3897 | ||
|
|
b7e12faf6e | ||
|
|
d7951e52b9 | ||
|
|
a7f88ad976 | ||
|
|
1162f01ecc | ||
|
|
0763344ba1 | ||
|
|
876b58804c | ||
|
|
c6137ef347 | ||
|
|
ee34a67fcb | ||
|
|
c8c9165e9c | ||
|
|
849755a604 | ||
|
|
f57030a2cd | ||
|
|
6b30813630 | ||
|
|
bf4e520eb2 | ||
|
|
3405b5c2f5 | ||
|
|
bea67c57b0 | ||
|
|
3a307c4ddd | ||
|
|
61d871efad | ||
|
|
214f2114a2 | ||
|
|
65a873c137 | ||
|
|
00c07aa260 | ||
|
|
f5045612e0 | ||
|
|
70f90a55b9 | ||
|
|
9e6eb5eccf | ||
|
|
880df18e07 | ||
|
|
60d7ca7b19 | ||
|
|
39dfc053ac | ||
|
|
a267bb05bd | ||
|
|
eeca8d7f1b | ||
|
|
f04b4fc2f3 | ||
|
|
82ca8e1bc1 | ||
|
|
edd2aa3ff3 | ||
|
|
efa4ea77db | ||
|
|
69accb0adb | ||
|
|
4302acad23 | ||
|
|
81a7eeb624 | ||
|
|
031838d27f | ||
|
|
3374d52561 | ||
|
|
b59606fd0e | ||
|
|
505d417c01 | ||
|
|
53d35bca72 | ||
|
|
cd80532802 | ||
|
|
ec119ab535 | ||
|
|
29ccb1a9e4 | ||
|
|
9a355bed08 | ||
|
|
09ba73e8b7 | ||
|
|
81d8dd00a4 | ||
|
|
583ce8ea3c | ||
|
|
b2b4fafced | ||
|
|
8c4ec2feb7 | ||
|
|
afacfeaa9d | ||
|
|
6cfb3032f2 | ||
|
|
95fdf20e21 | ||
|
|
afbf6594c4 | ||
|
|
f94e2e8fbc | ||
|
|
7a17c7c022 | ||
|
|
dc440f2f13 |
4 changed files with 15 additions and 8 deletions
|
|
@ -48,7 +48,9 @@ can be closed now.)
|
|||

|
||||
|
||||
A new tab opens, showing information on the server certificate and its
|
||||
chain of trust. The leftmost certificate is what we are interested in.
|
||||
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.
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
|
@ -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 warning $0 ("The intended use is undefined!");
|
||||
$LogPrint info $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.22
|
||||
# requires RouterOS, version=7.24rc1
|
||||
# requires device-mode, fetch
|
||||
#
|
||||
# monitor and manage dns/doh with netwatch
|
||||
|
|
@ -113,11 +113,16 @@
|
|||
:local I 1;
|
||||
:retry {
|
||||
:set I ($I ^ 1);
|
||||
:set Data ([ /tool/fetch check-certificate=yes-without-crl output=user \
|
||||
http-header-field=({ "accept: application/dns-message" }) \
|
||||
url=(($DohServer->"doh-url") . "?dns=" . [ :convert to=base64 ([ :rndstr length=2 ] . \
|
||||
: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") ]) as-value ]->"data");
|
||||
({ "\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");
|
||||
}
|
||||
} 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