2020-03-20 12:51:28 +01:00
|
|
|
Initial commands
|
|
|
|
================
|
|
|
|
|
|
|
|
[◀ Go back to main README](README.md)
|
|
|
|
|
2022-05-11 18:57:17 +02:00
|
|
|
> ⚠️ **Warning**: These commands are inteneded for initial setup. If you are
|
2022-02-11 23:37:29 +01:00
|
|
|
> not aware of the procedure please follow
|
|
|
|
> [the long way in detail](README.md#the-long-way-in-detail).
|
2020-03-20 12:51:28 +01:00
|
|
|
|
2022-05-11 18:57:17 +02:00
|
|
|
Run the complete base installation:
|
2022-01-14 07:46:43 +01:00
|
|
|
|
2020-03-20 12:51:28 +01:00
|
|
|
{
|
2024-08-19 14:42:29 +02:00
|
|
|
/ tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/ISRG-Root-X2.pem" dst-path="isrg-root-x2.pem" as-value;
|
2020-03-20 12:51:28 +01:00
|
|
|
:delay 1s;
|
2024-08-19 14:42:29 +02:00
|
|
|
/ certificate import file-name=isrg-root-x2.pem passphrase="";
|
|
|
|
:if ([ :len [ / certificate find where fingerprint="69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470" ] ] != 1) do={
|
2020-03-20 12:51:28 +01:00
|
|
|
:error "Something is wrong with your certificates!";
|
2021-06-08 20:46:40 +02:00
|
|
|
};
|
2024-08-19 14:42:29 +02:00
|
|
|
/ file remove "isrg-root-x2.pem";
|
2022-02-23 09:24:10 +01:00
|
|
|
:delay 1s;
|
2020-03-23 12:21:38 +01:00
|
|
|
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={
|
2022-05-11 18:57:17 +02:00
|
|
|
/ system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . "\?h=routeros-v6") output=user as-value]->"data");
|
2021-06-08 20:46:40 +02:00
|
|
|
};
|
2021-12-16 16:46:13 +01:00
|
|
|
/ 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; }";
|
2020-07-16 10:56:24 +02:00
|
|
|
:global CertificateNameByCN;
|
2024-08-19 14:42:29 +02:00
|
|
|
$CertificateNameByCN "ISRG Root X2";
|
2020-03-20 12:51:28 +01:00
|
|
|
}
|
|
|
|
|
2020-11-01 22:20:02 +01:00
|
|
|
Optional to update the scripts automatically:
|
|
|
|
|
|
|
|
/ system scheduler add name="ScriptInstallUpdate" start-time=startup interval=1d on-event=":global ScriptInstallUpdate; \$ScriptInstallUpdate;";
|
|
|
|
|
2020-03-20 12:51:28 +01:00
|
|
|
---
|
|
|
|
[◀ Go back to main README](README.md)
|
|
|
|
[▲ Go back to top](#top)
|