Custom RouterOS scripts, extending eworm's routeros-scripts
Find a file
2026-01-06 13:27:21 +01:00
doc remove external dependency to parse json 2026-01-05 21:47:24 +01:00
global-functions.d Update function comment 2026-01-05 21:59:25 +01:00
COPYING.md initial commit 2023-01-10 21:10:51 +01:00
ddns-hetzner.rsc be more explicit, to assign the data for deserialize as value 2026-01-06 13:27:21 +01:00
dns-to-ipv6-subnet-resolver.rsc fix spellig; fix URL to documentation 2026-01-05 01:54:58 +01:00
hello-world.rsc update the hello world script to latest version 2026-01-05 00:58:44 +01:00
README.md move global-functions-custom-phg.rsc to global-functions.d/phg.rsc to have it automatically loaded by the main global-functions script 2026-01-05 20:14:38 +01:00
template.rsc.tpl Update template 2026-01-04 02:01:52 +01:00

Custom RouterOS Scripts

RouterOS is the operating system developed by MikroTik for networking tasks. This repository holds a number of scripts to manage RouterOS devices or extend their functionality.

Use at your own risk, pay attention to license and warranty!

Table of Contents

Requirements

This is a repository containing custom RouterOS scripts. These do depend on upstream project. Visit RouterOS-Scripts and follow the instructions there for the basic installation and setup.

Installation

Prerequisites (a.k.a. Install certificates)

The update script does server certificate verification, so first step is to download the certificates. If you intend to download the scripts from a different location (for example from git.s1q.dev or github.com) install the corresponding certificate chain.
Depending from where you want to install my RouterOS scripts, you need to import a Let's Encrypt root certificate (git.s1q.dev) or the USERTrust root certificate (github.com).

git.s1q.dev:

$CertificateAvailable "ISRG Root X1" "fetch";

github.com:

$CertificateAvailable "USERTrust ECC Certification Authority" "fetch";

Important

Always make sure there are no certificates installed you do not know or want!

All following commands will verify the server certificate. For validity the certificate's lifetime is checked with local time, so make sure the device's date and time is set correctly!

Tip

In Christian's RouterOS scripts there is tooling to easily install additional certificates.
https://github.com/eworm-de/routeros-scripts/blob/main/CERTIFICATES.md

Initial Setup

Download the global-functions.d/phg.rsc script:

$ScriptInstallUpdate global-functions.d/phg "base-url=https://git.s1q.dev/phg/routeros-scripts-custom/raw/branch/main/";

Adding a script

To add a script from the repository run function $ScriptInstallUpdate with a comma separated list of script names, as well as the parameter "base-url=https://git.s1q.dev/phg/routeros-scripts-custom/raw/branch/main/".

$ScriptInstallUpdate ddns-hetzner,dns-to-ipv6-subnet-resolver "base-url=https://git.s1q.dev/phg/routeros-scripts-custom/raw/branch/main/";

Available scripts

License and warranty

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Upstream

URL: git.s1q.dev

Mirror: GitHub.com


⬆️ Go back to top