Community discussions

MikroTik App
 
ukitnam
just joined
Topic Author
Posts: 19
Joined: Thu Aug 10, 2017 4:56 pm

Hotspot User Profile On Login Script

Fri Aug 11, 2017 8:32 pm

So I saw this option in hotspot user profile, "On Login Script" and "On Logout Script"

I wonder if we can make a script wherein On Login, each user client ip that is using this specific user profile will be added to firewall address list, and be deleted On Logout script.

If so, can you please make me a a script for On Login and On Logout. I have no idea where to begin. Thanks.

Because I'll be making a mangle rules for those address list.

Thank you!

edit:

i found an alternative, im so noob.
ill still let this thread open in case there are suggestions. thanks
 
User avatar
ahmedalmi
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Sat Sep 13, 2014 5:52 pm
Location: sana'a yemen
Contact:

Re: Hotspot User Profile On Login Script

Mon Sep 18, 2017 6:58 pm

on login
/ip firewall address-list add address=$address list="yourname";

on logout
/ip firewall address-list remove [find address=$address];

Who is online

Users browsing this forum: No registered users and 9 guests