-1

how I can set shared users to share bandwidth When 2 users are logged on the hotspot with the same username, they each get the bandwidth specified in external radius. How can this be changes so that if 2 users are logged in the bandwidth will be 50% to A and 50% to B?

Somebody told me to use script , but i don't understand how to use script on mikrotik.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
  • Unlike forum sites, we don't use "Thanks", or "Any help appreciated", or signatures on [so]. See "[Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts). – John Saunders Jan 23 '15 at 02:54

1 Answers1

0

I see a few annoying logic issues with scripting if its even possible... I would personally recommend using a COA (Change of Authorization) request sent to Mikrotik. This is better 1) you would have a real language to work with, and 2) its a very similar process to the radius handshake that set the rate limit. http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client#Change_of_Authorization

I think a script would have to use the queues vs the rate limit in the hotspot since this would be set from the radius request not the "user" profile. you will also have to tell when an account has already been set, how many times, and what to do when "a" gets off and only "b" is online... lots of room for error.

With the COA you can just query for the original rate limits divide by active sessions in rad act and spit the values out.

Marc Wolf
  • 29
  • 4