Enable+Disable Internet access at specified hours

  • Hi All,

    I am looking for some solution to enable access to the internet at i.e. 8am and disable it at 5pm.

    I am not sure if there is any ready solution, I don't know how to precise the issue to find possible answers.

    I don't mind to use maybe crond to enable/disable interface - not sure if it's good idea, or disable/enable some firewall rule also by crond. I don't use squid a lot, maybe there is something useful what I missed? Maybe someone has something done work like: install, choose interface, set start and finish time and apply settings.

    I will appreciate for any ideas.


  • Create a schedule that start at 8:00am and ends at 5:00pm
    The option for schedule is under the firewall tab.

    Create a firewall rule that allows internet traffic and use the schedule you created.
    It will be under advanced options when you create the rule.

    Then below that rule create a rule that blocks all internet traffic.
    Do not use a schedule for this rule.

  • Thanks a lot!

    All done, I can't believe I was next to that option so many times and I didnt catch that.

    Any way thanks for explaining how it works.

    My problem is solved :)


Log in to reply