Skip to content

worldwidewoogie/unifi-parental-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unifi-parental-controls

unifi-parental-controls uses Unifi user groups to block/unblock client devices on a schedule. That is all it does at this point, but I'm looking to add more features if/when I can figure out the APIs to support them. That likely means no policy based blocking of classes of sites, since Unifi does not currently support policy based routing.

However, unifi-parental-controls now has support for managing access to sites using pihole groups. You can set clients' pihole groups on a schedule similar to the block/unblock.

License

Requirements

Installation

The easiest way to run unifi-parental-controls is in a container.

Create a config file in a directory the container can access and do the following:

$ podman pull worldwidewoogie/unifi-parental-controls
$ podman run \
          --name parental-controls \
          -p <host port>:8080 \
          -v <path to config directory>:/node/config/ \
          worldwidewoogie/unifi-parental-controls

or

$ docker pull worldwidewoogie/unifi-parental-controls
$ docker run \
          --name parental-controls \
          -p <host port>:8080 \
          -v <path to config directory>:/node/config/ \
          worldwidewoogie/unifi-parental-controls

If you would like to run it directly in node, you can do the following:

$ git clone https://github.com/worldwidewoogie/unifi-parental-controls.git`
$ cd unifi-parental-controls
$ cp config/config-example.js config/config.js

Edit config/config.js to suit your needs

$ node index.js

Right now, the only documentation for config.js is in config-example.js.

This is a work in progress. Hopefully that will mean better documentation at some point.

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published