Community discussions

MikroTik App
 
xbmcgotham
just joined
Topic Author
Posts: 13
Joined: Thu Feb 13, 2020 3:00 pm

Kid-Control Issues

Sun Oct 30, 2022 9:43 pm

Hi,

Can someone please let me know how I create a rule in the kid-control config that will allow a user to use the internet, for example Saturday between 09:00:00 in the morning till 02:00:00 at night time. For some strange reason I am not able to get this setup in the GUI. I am getting errors "like end time must be bigger than start time" or "seconds are not allowed". I am not able to set 00:00:00 to 02:00:00 for first rule and 09:00:00 to 23:59:59 for second rule. I can only get to set 00:00:00 to 02:00:00 for first rule and 09:00:00 to 23:59:00 for second rule, but this means that suddenly their is a drop in internet for 1 minute at 1 minute to midnight.

Please advise.

Secondly I also like to block access to our internal entertainment NAS during the internet offline hours, how can I set this up in Kid-Control as well?

Thanks for advise!
 
xbmcgotham
just joined
Topic Author
Posts: 13
Joined: Thu Feb 13, 2020 3:00 pm

Re: Kid-Control Issues

Sat Nov 12, 2022 6:34 pm

Bump +1
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2989
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Kid-Control Issues

Sun Nov 13, 2022 3:28 am

 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Kid-Control Issues

Tue Dec 27, 2022 3:39 pm

Have you confirmed the internet actually drops? I'm not sure it granular to the second (perhaps). e.g. if you have access at 23:59:00, you likely have access at 23:59:59.
Last edited by Amm0 on Tue Dec 27, 2022 5:33 pm, edited 1 time in total.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Kid-Control Issues

Tue Dec 27, 2022 3:50 pm

You can also use "09:00:00-1d 00:00:00" to be exact. It's kinda weird way to express it, but internally Mikrotik only has time durations (which can span days), so it's 24h (24 hours) or 1d (1 day) in kid-control, refer to from the "start" of Saturday.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10186
Joined: Mon Jun 08, 2015 12:09 pm

Re: Kid-Control Issues

Tue Dec 27, 2022 5:26 pm

Can someone please let me know how I create a rule in the kid-control config that will allow a user to use the internet, for example Saturday between 09:00:00 in the morning till 02:00:00 at night time. For some strange reason I am not able to get this setup in the GUI. I am getting errors "like end time must be bigger than start time" or "seconds are not allowed". I am not able to set 00:00:00 to 02:00:00 for first rule and 09:00:00 to 23:59:59 for second rule. I can only get to set 00:00:00 to 02:00:00 for first rule and 09:00:00 to 23:59:00 for second rule, but this means that suddenly their is a drop in internet for 1 minute at 1 minute to midnight.
First you need to understand that "on saturday betweek 9 in the morning and 2 at nighttime" ACTUALLY means "from 9 in the morning to midnight on saturday, and from 0 to 2 on sunday.
It may be casual to include "2 at nighttime" with saturday, but in a technical environment you need to be exact and consider that part of sunday.

To specify 24:00 you can use "1d 00:00:00" as mentioned by Ammo0. Not to specify a 24-hour duration, but to set the endtime to 23:59+1 minute (24:00).
Last edited by pe1chl on Tue Dec 27, 2022 9:22 pm, edited 1 time in total.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10186
Joined: Mon Jun 08, 2015 12:09 pm

Re: Kid-Control Issues

Tue Dec 27, 2022 9:20 pm

You can also use "09:00:00-1d 00:00:00" to be exact. It's kinda weird way to express it, but internally Mikrotik only has time durations (which can span days), so it's 24h (24 hours) or 1d (1 day) in kid-control, refer to from the "start" of Saturday.
No, the time field (which is not exactly specified in the manual) is not of the form start-duration, it is start-end.
So "09:00:00-1d 00:00:00" does not mean "24 hours from 09:00", but it means "09:00-24:00", that is from 09:00 to the end of the day.
You still need to allow 00:00-02:00 on the next day when you want "until 2 at night" to be added to the current day.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Kid-Control Issues

Wed Dec 28, 2022 1:00 am

Totally, didn't mean to imply he didn't need to cover the two hours on Sunday. I think his issue was the 1 minute before "midnight" which is both "00:00:00" and "1d 00:00:00", depending... But since I think Mikrotik tracks this on 1 minutes intervals, 23:59:00 would have been fine (I think) – but MT doesn't explicitly say this.

My comments were based on the OP,
I can only get to set 00:00:00 to 02:00:00 for first rule and 09:00:00 to 23:59:00 for second rule, but this means that suddenly their is a drop in internet for 1 minute at 1 minute to midnight.
...so I assume he knew 0000-0200 was for Sunday. But you know what they say about that....
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Kid-Control Issues

Wed Dec 28, 2022 1:14 am

I think the issue is docs don't really help here. How to handle "Midnight" (0000/24h/1d/etc) is something worth a sentence in: https://help.mikrotik.com/docs/display/ROS/Kid+Control

I use the CLI. There you can use "24h" for midnight, which is "hidden" in one of the CLI example... I'd never really used winbox to edit these, but the "9h-24h" and "0h-2h" format doesn't work... you get a superfriendly "error in - double field expected" using that style when you try.

And certainly no support for American-style AM/PM like "9a-12a" - that however is not a surprise.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10186
Joined: Mon Jun 08, 2015 12:09 pm

Re: Kid-Control Issues

Wed Dec 28, 2022 10:53 am

Indeed, the docs say NOTHING about how this "time" field is structured. There are only some examples, and they indicate it is start-end.
The "1d 00:00:00" trick I also got from some forum post, it is never mentioned in the docs.
So hopefully he is helped by that. It would be better when 24:00 is also accepted (and then converted to 1d 00:00:00 when it is read back).
 
User avatar
AllanWaris
just joined
Posts: 1
Joined: Sun Apr 30, 2023 1:16 am

Re: Kid-Control Issues

Tue May 02, 2023 2:55 pm

I know it’s a bit late for reply, but I’d to chime in and suggest setting up two separate rules: one from 9 am to midnight and another from midnight to 2 am. This should avoid the issue of the internet drop that you mentioned. As for blocking access to your NAS during offline hours, you could try adding a separate rule to your kid-control config that restricts access to the device during those times. With a bit of trial and error, you should be able to find a configuration that works for your needs.

Who is online

Users browsing this forum: Ahrefs [Bot], baragoon, Google [Bot], RHWwijk and 86 guests