MikroTikUtils is a collection of RouterOS scripts designed to automate and enhance MikroTik device management. Some scripts use Telegram bots for notifications. You must already have a Telegram bot or create a new one to use notification features.
- Monitor and notify on IP address changes via Telegram (
IPchanged.rsc
) - Easily configurable notification settings
- Modular scripts for various automation tasks
- Designed for easy integration into MikroTik devices
- MikroTik device running RouterOS
- Access to the MikroTik terminal or Winbox
- (Optional) Telegram bot for notifications
-
Clone or Download this repository:
git clone https://github.com/CtrlAltJon/MikroTikUtils.git
Or download the scripts directly from the GitHub repo.
-
Upload Scripts
Use Winbox, WebFig, or FTP to upload the desired.rsc
script(s) to your MikroTik device. -
Import Script
In the MikroTik terminal, run:/import file-name=IPchanged.rsc
Replace
IPchanged.rsc
with the script you want to import. -
Configure Telegram Bot (if needed)
- Create a Telegram bot via BotFather.
- Set your bot token and chat ID in the configuration file script
TelegramConfig.rsc
.
Example:
To use the IP change notification script:
- Edit the
TelegramConfig
script with your bot token and chat ID. - Import or create (copy/paste) both
TelegramConfig
andIPchanged.rsc
scripts. - Schedule the script to run periodically using the MikroTik scheduler.
- Scripts do not contain hardcoded credentials by default.
- Always review and test scripts in a safe environment before deploying to production.
- Protect your Telegram bot token and chat ID.
Contributions, issues, and feature requests are welcome!
Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
CtrlAltJon