All posts by Omega-00

Add a data limit to trial hotspot users

This script comes from the final slide of my recent MUM presentation on RouterOS scripting
It allows you to assign a data limit to trial hotspot users and:

a) have them kicked offline upon reaching this limit
b) create a temporary user to stop them from being able to log back in again

Hotspot
I spy, WiFi!

This is a feature which is not available via the current hotspot settings, so I decided to script it into existence. Enjoy!

Continue reading Add a data limit to trial hotspot users

ROS Syntax highlights in Notepad++

1. Download Notepad++: http://www.notepadplusplus.org

2. Install Notepad++

3. Download file RouterOS Syntax-Highlighter and extract the notepad++ xml file within.

4. Open Notepad++

5. Click Language > User-Defined > click Import button.
Import the xml file you unzipped.
6. Close and reopen Notepad++

7a. Open an .rsc script, and syntax highlighting will be visible.

7b. Alternatively open any file and select the “RouterOS” language option

Example highlighting

Thanks to dtoffo on the MikroTik forums for the original release of this highlighter.

MikroTik forum adds bug reporting

I don’t know if the followup is intended to be to the submitter via email or a reply in the forum thread however it seems a good idea to allow quick submission of confirmed issues.

Can’t see any official post on the forum noting when it came about, but if you have any experience using this already; feel free to comment below.