Scripts: Automate your router
RouterOS scripts and the Scheduler: record the router status in the log, monitor an external host with :if and count the active interfaces.
Intermediate · 20 min · 3 devices · Free plan
Scenario
You manage the router of a small office and you want to stop checking it by hand: you want it to record in the log how it is doing, to warn you if Internet access is lost and to count how many interfaces it has up. You will do it with RouterOS scripts and Scheduler tasks that launch them on their own. The network already works and must not be touched: all the work is on the Router.
What you practise
- Scripts
- Scheduler
Practise this lab
It deploys in your account in under a minute and you connect over VPN with WinBox, SSH or WebFig. The panel checks each objective.
More Beginner Level labs
- Beginner LevelFree plan
Initial Router Hardening
Basic RouterOS hardening: replace the admin user, close the services you do not need and limit SSH and WinBox to the administration network.
- Beginner LevelFree plan
Basic connection
LAN IP, DHCP server, DHCP client toward the provider and NAT masquerade: your first MikroTik router, from scratch until a PC reaches the Internet.
- Beginner LevelFree plan
Find the Bug
Troubleshooting an office with no Internet, from the link with the provider to the LAN. Three faults hidden in a MikroTik router.
- Beginner LevelFree plan
Routing
Static routes between two offices. Each router with its own LAN, its own DHCP and two-way communication.
- Beginner LevelFree plan
Rescue and Recovery
Post-incident recovery: compare configurations, undo changes and automate backups.
- Beginner LevelFree plan
Firewall
Input/forward chains, connection states, rule order and selective SSH between two offices.
