What's new

Parental control Fine tune access time?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

cone_head

Occasional Visitor
ASUS RT68U with Merlin 380

Parental control: The issue I have is it only allows for 1 hour blocks on the hour. I would like to fine tune the start and stop times. That leads me to the following question. Once I initially set up parental controls to allow a specific MAC address internet access from lest say 15:00 to 19:00. Can I fine tune this through a CLI and change that to lest say 15:15 to 19:30? And if so, How?

Thank you.
 
Thank you Martinr,

That's what I figured. I was wondering if I could initially set the parental control through the web interface them edit the start and stop time through a command line after the fact.
 
@cone_head

Probably not. Trying to RE this a bit, and it appears that the times are stored as hours. For example, the following turns ON access at 05:00 every morning, and turns it off at 9pm (21:00) Sunday thru Thursday, and 11pm (23:00) on Fri/Sat:
Code:
MULTIFILTER_MACFILTER_DAYTIME=T<000521<T<110521<T<220521<T<330521<T<440521<T<550523<T<660523
There's one "block" (T<xxyyzz<) for each day of the week. The first two digits appear to signify the day, the second two the hour it gets turned on, and the 3rd two the hour it gets turned back off. (I don't know why it uses 2 digits for the day of week.)

Anyway, if it only uses 2 digits for the time, then there isn't much you can do.

HOWEVER, you could in theory set up cron scripts to turn service on and off for a given MAC address using iptables. I don't have the exact syntax, but you'd probably want to mess in the FORWARD chain, and DROP anything from a given MAC address destined for INTERFACE vlan2. (Then delete that rule when you wanted to enable for the user again.)

Perhaps the syntax for the "PControls" iptables target could be deciphered... that appears to be what the firmware uses to deal with things, and it might take more precise times than simply hours.

Edit: Take a look here: http://www.snbforums.com/threads/attn-merlin-parent-controls.8337/

While the subject of the thread isn't really useful, it does seem to contain the syntax for the pcontrols target. Keep in mind that if you add those rules, they won't show up at all in the UI... and you should REALLY test things out to make sure they are doing what you expect.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top