What's new

Breaking connections - with intent

  • 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!

smasher

Regular Contributor
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:
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
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.
 
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:
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
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.

https://www.asus.com/support/FAQ/1008720/

See the "Time Scheduling" section. Works like a charm.
 
Smasher; When the kids earned their TV or internet time, they agreed to be self-limiting lest they lose the privilege. There was the obligatory infringement see if we were paying attention, after regaining privileges, there were no further issues. If there are open WiFi signals nearby, kids will will find a way, then scheduling on your router might be a moot point. Never hurts to try automating, let the router be the enforcer. Good luck:)
 
https://www.asus.com/support/FAQ/1008720/

See the "Time Scheduling" section. Works like a charm.
Not applicable here. His time is "controlled" by his desktop. When the desktop says he's not logged in, I want his phone and laptop cut off.

This allows him some freedom to determine when he can access the net, while still limiting how much time he can spend online. It also encourages him to save a few minutes of net time, in case he needs it later in the day.
 
Not applicable here. His time is "controlled" by his desktop. When the desktop says he's not logged in, I want his phone and laptop cut off.

This allows him some freedom to determine when he can access the net, while still limiting how much time he can spend online. It also encourages him to save a few minutes of net time, in case he needs it later in the day.
Time access restrictions in DNSCrypt?

Code:
##########################################
#        Time access restrictions        #
##########################################

## One or more weekly schedules can be defined here.
## Patterns in the name-based blocklist can optionally be followed with @schedule_name
## to apply the pattern 'schedule_name' only when it matches a time range of that schedule.
##
## For example, the following rule in a blacklist file:
## *.youtube.* @time-to-sleep
## would block access to YouTube only during the days, and period of the days
## define by the 'time-to-sleep' schedule.
##
## {after='21:00', before= '7:00'} matches 0:00-7:00 and 21:00-0:00
## {after= '9:00', before='18:00'} matches 9:00-18:00

[schedules]

  # [schedules.'time-to-sleep']
  # mon = [{after='21:00', before='7:00'}]
  # tue = [{after='21:00', before='7:00'}]
  # wed = [{after='21:00', before='7:00'}]
  # thu = [{after='21:00', before='7:00'}]
  # fri = [{after='23:00', before='7:00'}]
  # sat = [{after='23:00', before='7:00'}]
  # sun = [{after='21:00', before='7:00'}]

  # [schedules.'work']
  # mon = [{after='9:00', before='18:00'}]
  # tue = [{after='9:00', before='18:00'}]
  # wed = [{after='9:00', before='18:00'}]
  # thu = [{after='9:00', before='18:00'}]
  # fri = [{after='9:00', before='17:00'}]
 

Sign Up For SNBForums Daily Digest

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