OpenWrt Forum Archive

Topic: i want to disconnect client connect my ssid by time ?

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

can u help me ?

cron

The 'del_client' ubus call to hostapd can be used to dynamically disconnect and ban clients by their MAC address.  The client will be banned from reconnecting for a period of time.  You can set the time to very long and then if you want the client to be able to connect again, call again with a ban_time of 0.  These bans are held in RAM, thus they will not persist through rebooting or restarting hostapd. 

A persistent ban can be established by putting it in /etc/config/wireless, but changing those requires restarting hostapd which will disrupt service to all connected clients.

The discussion might have continued from here.