OpenWrt Forum Archive

Topic: tracking kid's internet time

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

I'd like to track how much time my kid is using the internet from any of his multitude of devices by setting up a dedicated router for him and tracking how much time the internet is enabled. My idea was to allow my kid to enable the internet himself by sending a ping to the router. Eg:

ping -i 60 -c 45 192.168.1.1

would enable the internet for 45 minutes (each ping would enable it for say 65 seconds). I figured an iptables rule to send ping requests to user space and a user space app to enable/disable internet access and keep a persistent counter of the number of minutes that the internet was enabled would work. Could this be easily done with OpenWrt or is there maybe already the equivalent functionality?  I've never used OpenWrt before.

Thanks,

      Dave

You might want to have a look at "captive portals", it's probably what you are looking for.

lol https://s-media-cache-ak0.pinimg.com/originals/e5/85/a3/e585a3d964a51a59127aba4f877f9194.jpg

FWIW I've been letting windows 10 manage screen time for me.  If you're using windows/xbox (no tablets or phones!) this may be good enough if you can't get what you're looking for?

The discussion might have continued from here.