mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-02 17:24:36 +02:00
README: convert screenshots to AVIF
This commit is contained in:
parent
6eddaf9b87
commit
8f79c4de79
23 changed files with 11 additions and 11 deletions
22
README.md
22
README.md
|
@ -52,7 +52,7 @@ certificate chain.
|
|||
|
||||
/ tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/R3.pem" dst-path="letsencrypt-R3.pem";
|
||||
|
||||

|
||||

|
||||
|
||||
Note that the commands above do *not* verify server certificate, so if you
|
||||
want to be safe download with your workstations's browser and transfer the
|
||||
|
@ -65,7 +65,7 @@ Then we import the certificates.
|
|||
|
||||
/ certificate import file-name=letsencrypt-R3.pem passphrase="";
|
||||
|
||||

|
||||

|
||||
|
||||
For basic verification we rename the certificates and print their count. Make
|
||||
sure the certificate count is **two**.
|
||||
|
@ -74,7 +74,7 @@ sure the certificate count is **two**.
|
|||
/ certificate set name="ISRG-Root-X1" [ find where fingerprint="96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6" ];
|
||||
/ certificate print count-only where fingerprint="67add1166b020ae61b8f5fc96813c04c2aa589960796865572a3c7e737613dfd" or fingerprint="96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6";
|
||||
|
||||

|
||||

|
||||
|
||||
Always make sure there are no certificates installed you do not know or want!
|
||||
|
||||
|
@ -86,7 +86,7 @@ Now let's download the main scripts and add them in configuration on the fly.
|
|||
|
||||
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); };
|
||||
|
||||

|
||||

|
||||
|
||||
The configuration needs to be tweaked for your needs. Edit
|
||||
`global-config-overlay`, copy configuration from
|
||||
|
@ -95,21 +95,21 @@ Save changes and exit with `Ctrl-o`.
|
|||
|
||||
/ system script edit global-config-overlay source;
|
||||
|
||||

|
||||

|
||||
|
||||
And finally load configuration and functions and add the scheduler.
|
||||
|
||||
/ system script { run global-config; run global-functions; };
|
||||
/ system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-functions; }";
|
||||
|
||||

|
||||

|
||||
|
||||
The last step is optional: Add this scheduler **only** if you want the scripts
|
||||
to be updated automatically!
|
||||
|
||||
/ system scheduler add name="ScriptInstallUpdate" start-time=startup interval=1d on-event=":global ScriptInstallUpdate; \$ScriptInstallUpdate;";
|
||||
|
||||

|
||||

|
||||
|
||||
### Changes for RouterOS v6
|
||||
|
||||
|
@ -145,7 +145,7 @@ everything is up-to-date it will not produce any output.
|
|||
|
||||
$ScriptInstallUpdate;
|
||||
|
||||

|
||||

|
||||
|
||||
Adding a script
|
||||
---------------
|
||||
|
@ -155,7 +155,7 @@ a comma separated list of script names.
|
|||
|
||||
$ScriptInstallUpdate check-certificates,check-routeros-update;
|
||||
|
||||

|
||||

|
||||
|
||||
Scheduler and events
|
||||
--------------------
|
||||
|
@ -167,7 +167,7 @@ miss an update.
|
|||
|
||||
/ system scheduler add name="check-routeros-update" interval=1h on-event="/ system script run check-routeros-update;";
|
||||
|
||||

|
||||

|
||||
|
||||
Some events can run a script. If you want your DHCP hostnames to be available
|
||||
in DNS use `dhcp-to-dns` with the events from dhcp server. For a regular
|
||||
|
@ -177,7 +177,7 @@ cleanup add a scheduler entry.
|
|||
/ ip dhcp-server set lease-script=lease-script [ find ];
|
||||
/ system scheduler add name="dhcp-to-dns" interval=5m on-event="/ system script run dhcp-to-dns;";
|
||||
|
||||

|
||||

|
||||
|
||||
There's much more to explore... Have fun!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue