How Router Works
HomeShop
  • 👋Welcome to {How To}
  • Mobile Modem
    • Switch SIM Card
    • Mobile Watchdog
    • Mobile Protocol
    • APN Setting
    • Mode & Band Locking
    • Modem Diagnosis
      • Change TTL Value
      • Detach Reattach
      • Fix PLMN Error
  • Networking
    • Firewall
      • Port Forward
    • WiFi Hotspot
      • WiFi Relay
      • Guest WiFi
      • Parent Control
    • Traffic Control
      • IP and DNS
      • SQM QoS
      • Load Balancing
      • Intranet Routes
  • Remote Access
    • Traversal Cloud
    • Ezen Cloud
    • Dynamic DNS
  • Development
    • SSH Terminal
      • VI Editor
      • Crontab Syntax
    • Command Sets
      • MMCLI Commands
        • SMS Message
        • Location 3GPP GPS
      • AT Commands
        • AT+QAGPIO
        • AT+QTEMP
        • AT+COPS
        • AT+QENG
        • AT+QCAINFO
    • Bootloader
    • Custom-Build Firmware
Powered by GitBook
On this page
  • Install Script
  • Configure Script
  • Scheduled Task
  1. Networking
  2. WiFi Hotspot

Parent Control

Last updated 1 year ago

To prevent specific Mac addresses from accessing the WiFi hotspot in particular time periods, for example, blocking kids from playing phones, tablets, and computers when they should sleep.

It supports EZEN4X series routers, as shown below. This script does not support the EZEN3X routers. Please follow the below steps to install, configure, and activate the parent control function.

Firmware
SKU Models

EV4xxx

EZR14(T), EZR24, EZR34(T)

This is a temporary script-level solution. It is required to access SSH terminals, and no Web UI is available yet.


Install Script

After , run the installation command below.

EZEN4X Routers Only!
wget http://www.outdoorrouter.net:8080/Scripts/blacklist.sh -O /root/blacklist.sh; chmod 755 blacklist.sh

You will see confirmation output upon successful application loading as below.

If errors appear during the download and installation, please copy the returned information and forward it to our support team.

Output Example
Downloading 'xxx.sh'
Connecting to xxx
Writing to '/root/blacklist.sh'
Download completed

Configure Script

We need to add specific Mac addresses to the blacklist.sh. You can find the Mac address of a terminal device in its WiFi (internet) status or settings. When the device is already connected to the router, you can check their Mac address on "Active DHCP leases" under "Network > DHCP and DNS."

After having the Mac addresses, go back to the SSH terminal and execute the below command to open the newly installed blacklist configuration file.

vi /root/blacklist.sh
Default Values
#!/bin/sh
. /lib/functions.sh

maclist="AA:BB:CC:DD:EE:FF 00:11:22:33:44:55 66:77:88:99:00:11"
ifnames="ra0 ra1 rax0 rax1"

Scheduled Task

The final step is to set scheduled tasks to start and stop the above-configured blacklist.sh. Navigate to "System > Scheduled Tasks" to add cron jobs.

Bock WiFi 10pm to 7am
0 22 * * * sh /root/blacklist.sh start
0 7 * * * sh /root/blacklist.sh stop

Refer to the to edit the Mac addresses on line 4 and separate them with Space. Then, save settings and exit the VI editor.

The below example is to start the task at 10:00 PM and end the task at 07:00 AM. Please refer to the to customize the period.

accessing the SSH terminal
VI Editor tutorial
Crontab Syntax