mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-04 08:21:37 +00:00
Compare commits
No commits in common. "8682e237c35e51869cd3598e8160e064c9b624ac" and "460508c931f19d8e755d9ed22e2adff890f1cd65" have entirely different histories.
8682e237c3
...
460508c931
4 changed files with 5 additions and 24 deletions
|
|
@ -164,8 +164,7 @@
|
|||
}
|
||||
$WaitFullyConnected;
|
||||
|
||||
:foreach Cert in=[ /certificate/find where !revoked !scep-url expires-after<$CertRenewTime \
|
||||
!ca (common-name or subject-alt-name) ] do={
|
||||
:foreach Cert in=[ /certificate/find where !revoked !ca !scep-url expires-after<$CertRenewTime ] do={
|
||||
:local CertVal [ /certificate/get $Cert ];
|
||||
:local LastName;
|
||||
:local FetchName;
|
||||
|
|
@ -245,8 +244,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
:foreach Cert in=[ /certificate/find where !revoked !scep-url expires-after<$CertWarnTime \
|
||||
!(expires-after=[]) !(fingerprint=[]) ] do={
|
||||
:foreach Cert in=[ /certificate/find where !revoked !scep-url !(expires-after=[]) \
|
||||
expires-after<$CertWarnTime !(fingerprint=[]) ] do={
|
||||
:local CertVal [ /certificate/get $Cert ];
|
||||
|
||||
:if ([ :len [ /certificate/scep-server/find where ca-cert=($CertVal->"ca") ] ] > 0) do={
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ sed \
|
|||
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|--26-amp-3b-||g' \
|
||||
-e '/<h[1234] /s|-2[1789cd]-||g' \
|
||||
-e '/<h[1234] /s|-3[f]-||g' \
|
||||
-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;"|'
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
active-address=($DnsRecordVal->"address") server=($DnsRecordInfo->"server") status=bound ] ] > 0) do={
|
||||
$LogPrint debug $ScriptName ("Lease for " . $MacInServer . " (" . $DnsRecordVal->"name" . ") still exists. Not deleting record.");
|
||||
} else={
|
||||
:local Found false;
|
||||
$LogPrint info $ScriptName ("Lease expired for " . $MacInServer . ", deleting record (" . $DnsRecordVal->"name" . ").");
|
||||
/ip/dns/static/remove $DnsRecord;
|
||||
/ip/dns/static/remove [ find where type=CNAME comment=($DnsRecordVal->"comment") ];
|
||||
|
|
|
|||
|
|
@ -80,23 +80,6 @@ Note this information can be configured in wireless access list with
|
|||
then due to script execution order. Decrease the scheduler interval to
|
||||
reduce the effect.
|
||||
|
||||
Frequently asked questions
|
||||
--------------------------
|
||||
|
||||
### Is it possible to have the hostname in reverse lookup?
|
||||
|
||||
It used to be like that in the beginning. But there are way too many special
|
||||
cases... Devices without hostname, devices with same hostname, devices
|
||||
switching from one network to another, devices with same hostname in
|
||||
different network, ...
|
||||
|
||||
Fixing one broke another. It never really worked without problems. So
|
||||
finally the code ended with what we have now.
|
||||
|
||||
I know about that side effect and limitation with reverse lookup, but
|
||||
there's really no (easy) way to get that right without mac address. The
|
||||
reverse lookup will always give a name based on mac address.
|
||||
|
||||
See also
|
||||
--------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue