limit number of connections to my router

I want to make a script that limit the number of people connect to the my router
so only 3 devices will be able to connect at the same time.
when the 3rd device connect no one else will be able to connect , until someone disconnect

anyone have any idea how to do this ?

Thanks ,

Are you talking about wifi clients or what? Why do you think you need the script?

so how else I will be able to limit the number of connection?

let me explain what i want to do :
I have 2 AP and 6 clients - the 2 AP are in the same area ± ,so the clients always see both AP.
I don’t want more then 3 clients to use the same AP - for bandwidth reason
now do you understand better what i want to do and accomplish ?

Thanks ,

Wireless > click Advanced Mode button, go to Advanced Tab, set Max Station count.

Using a wireless ACL to “kick” those with worse signal could be a good idea, see http://wiki.mikrotik.com/wiki/Manual:Interface/Wireless

About the ACL - I have thought about it
but let say that 4 clients see AP1 in strength of -65dBm–>-55dBm , which one of them I will remove?
they are all in good strength - problem

I didn’t know about the Max client - Thanks,
I will try to see if this help with my problem

Thanks ,

To “steer” stations to each AP you can use connect-list wireless ACL

can you explain more about this maybe?
I don;t think I understand you

connect-list is for stations to set ACL to set either precedence to connect to an AP, (or not). Have a look at http://wiki.mikrotik.com/wiki/Manual:Interface/Wireless#Connect_List

I thought you meant something else , how to make them connect to whom I want - I know how to do
I thought there is a rule I can make to “close” connection or something

Thanks,

use Wireless > access-list then, and limit by mac address.

I don’t want to limit
I don’t care which client connect to which AP - the stations change all the time (also in positions)
this why I have to limit the AP to 3 clients - the MAC won’t give me nothing

Have you tried to set the max station count limit?

no yet , I will test it in the next few days and let you know :slight_smile:

yes it’s working
but now I have another question
I want to limit the number of WDS connection to my router
so only 3 WDS will able to connect

I have try the “Max Station Count” change it to 3 - but still I get 5 WDS AP connect to the router
how can I limit this also ?

Thanks,

http://wiki.mikrotik.com/wiki/Manual:Interface/Wireless#Restrict_WDS_link_establishment

A better solution would be using WDS static interfaces. (If you are really forced to use WDS)

I’m using static
but I don’t which unit will connect to me, so I need to make all of them connect to both APs , but to limit 3 WDS connections to AP .