В профиле L2TP прописать скрипт на событие OnUp
:local email "your@email.com"
/tool e-mail send to=$email subject="User $user connected to VPN" body="User $user connected to $[/ppp active get [/ppp active find where name=$user caller-id=$"caller-id" address=$"remote-address"] service] at $[/system clock get time].\r\nIP-address of this user - $"caller-id".\r\nUser's info -
apps.db.ripe.net/search/query.html?searchtext=$"caller-id""
На событие OnDown
:local email "your@email.com"
/tool e-mail send to=$email subject="User $user disconnected from VPN" body="User $user disconnected at $[/system clock get time]."