Skip to content

alseg-zz/Mikrotik-UserLoginAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mikrotik-UserLoginAlert


Screenshot:


Purpose:

It is as simple as possible to send messages to the IM Telegram about the user's login in the device.


Privilegies for running:

read, write, policy, test


Installation:

Config file:

/system scheduler add name=Mikrotik-UserLoginAlert-Misc start-time=00:00:00 interval=1m on-event=Mikrotik-UserLoginAlert-Misc policy=read,write,policy,test

/system script add name=Mikrotik-UserLoginAlert-Misc source="COPY_PASTE_MISC_HERE" policy=read,write,policy,test

Do not forget change value TelegramBotToken and TelegramChatId (In config file, not in script).

Script:

/system scheduler add name=Mikrotik-UserLoginAlert start-time=00:00:00 interval=1m on-event=Mikrotik-UserLoginAlert policy=read,write,policy,test

/system script add name=Mikrotik-UserLoginAlert source="COPY_PASTE_SCRIPT_TEXT_HERE" policy=read,write,policy,test


Notes:

Script running periodically (for example, every minutes) and checking log for new login events. If there have been several logins since the last check, several notifications will be sent.

First commit and tested on RouterOS 6.41 version.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages