I'm working on a script to limit my kid's computer time.
For now, this is the part of the script that kicks him off when his time is up:
This works, but... restarting the wireless is disruptive to other computers on the LAN.
Is there a better way to kill open connections to/from the machines I want to block, without interrupting other machines on the LAN?
This is on an AC68U.
For now, this is the part of the script that kicks him off when his time is up:
Code:
# disable his computers access to internet
nvram set MULTIFILTER_ENABLE='2>2>0'
# commit the change
nvram commit
# restart the firewall to block new connections
service restart_firewall > /dev/null
# restart wireless to close existing connections
service restart_wireless > /dev/null
Is there a better way to kill open connections to/from the machines I want to block, without interrupting other machines on the LAN?
This is on an AC68U.