The login script below works like a champ. However, it creates a binding
for every "active" user instead of the single user logging in.
*:foreach users in=[/ip hotspot active find] do={*
*:local date [ /system clock get date ];*
*:local ip [/ip hotspot active get $users address];*
*:local mac [/ip hotspot active get $users mac-address];*
*:local username [/ip hotspot active get $users user];*
*/ip hotspot ip-binding add type=bypassed mac-address=$mac address=0.0.0.0
comment=$date;*
*}*
I simply want a user to login with a special login/password that will
automatically get a binding. The script above creates a binding for
everyone who is active, not just the single user.
Any ideas?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.butchevans.com/pipermail/mikrotik/attachments/20140224/38172738/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS