I would like to block users (kids) from 23-07 hours?

So, I have a small problem.
Kids are staying late, well beyond midnight online.
I want to log them out for the night, so they can resume in the morning.
I was doing some research and did not find a easy solution.

Did anyone do something similar?

Yeah, make a virtual ap, change password on the old ap and connect the kids to the new one.

Then turn of this new virtual ap when you want or make a small script/scheduler to turn it on and off automaticly.

I have one for each kid as well due to the wide range in age.

I’m using hotspot feature on RB750.
Can it be done in hotspot or in user manager?

I’m not very good with scripting, so…

Im using for my kids (and test user) via hotspot script like this (these user exist in hotspot):

/system script
add name=nightime-kids-on policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    source="/ip hotspot user enable [/ip hotspot user  find comment=\"kids\"]\
    \r\
    \n/ip hotspot user enable [/ip hotspot user  find comment=\"test\"]\r\
    \n:log info \"Kids and test time to wake up!\""
add name=nightime-kids-off policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    source="/ip hotspot user disable [/ip hotspot user  find comment=\"kids\"]\
    \r\
    \n:log info \"Kids time to sleep!\"\r\
    \n/ip hotspot active remove [/ip hotspot active find user=kids1]\r\
    \n:log info \"darko time to logoff!\"\r\
    \n/ip hotspot active remove [/ip hotspot active find user=kids2]\r\
    \n:log info \"ivan time to logoff!\"\r\
    \n/ip hotspot user disable [/ip hotspot user  find comment=\"test\"]\r\
    \n/ip hotspot active remove [/ip hotspot active find user=test]\r\
    \n:log info \"test time to logoff!\""

my hotspot user test have comments test and kids have kids !!!
and also schedule this script

/system scheduler
add interval=1d name=nightime-kids-test-on on-event=nightime-kids-on policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    start-date=aug/26/2009 start-time=07:00:00
add interval=1d name=nightime-kids-test-off on-event=nightime-kids-off \
    policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    start-date=aug/26/2009 start-time=23:00:00

Thank you!! just punched it in, and we’ll see how it works tonight :slight_smile:

for some reason, the sript did not work

but this one did
http://forum.mikrotik.com/t/script-to-remove-unpiad-hotspot-active-users-4u/40509/1 and edited it looks like this

:local username
:local userunpd

:foreach i in=[/ip hotspot user find] do {
:set username ( username [ip hotspot user get $i name])
:if ([/ip hotspot user get [/ip hotspot user find name=$username] comment] = “kids”) do {
:foreach j in=[/ip hotspot active find] do {
:set userunpd ( userunpd [ip hotspot active get $j user])
:if (username = userunpd) do {
[/ip hotspot active remove [/ip hotspot active find user=$userunpd]]
:log info “User $userunpd was removed from active list due to sleeping schedule”
}}}}

/ip hotspot user disable kid#1
/ip hotspot user disable kid#2
}

this one is activated on 23:00
on 07:00 another script just enables previously disabled accounts

as I said I’m not good with scripts, and maybe it can be optimized…

Thank you guys