REFERENCE

v6.11.0

Parental Controls

Time-of-day internet policy per device address-list (scheduled drop) plus DNS content sinkholes, with preview-before-apply.

Tools

set_time_policy

Set Time-of-Day / Parental Policy · Risk: write

Schedules per-device internet access and content blocking. Cuts internet for devices in the list address-list between block_start and block_end daily (a forward-drop rule toggled by two schedulers), optionally adds addresses to that list, and DNS-sinkholes any block_domains (always blocked). DEFAULTS TO A DRY RUN (apply=false) showing every command; set apply=true to install. Everything is tagged 'parental-' so remove_time_policy can undo it. Returns the plan or a build report.

ParameterRequiredDefinition
nameYesPolicy id, e.g. 'kids-bedtime' {"type":"string"}
listYesAddress-list of the affected devices {"default":"parental-devices","type":"string"}
addressesNoDevice IPs to add to the list {"type":"array","items":{"type":"string"}}
block_startYesDaily cut-off time (HH:MM) {"default":"22:00","type":"string"}
block_endYesDaily restore time (HH:MM) {"default":"07:00","type":"string"}
block_domainsNoDomains to always block via DNS {"type":"array","items":{"type":"string"}}
applyYesfalse = preview (default); true = install {"default":false,"type":"boolean"}

remove_time_policy

Remove Time-of-Day / Parental Policy · Risk: destructive

Removes a policy installed by set_time_policy: the schedulers, the forward-drop rule, and the DNS sinkhole entries tagged 'parental-'. Address-list members added for it are also removed. Returns what was cleared.

ParameterRequiredDefinition
nameYesThe policy id used when installing {"type":"string"}

On this page