Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Enable+Disable Internet access at specified hours

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fr0t
      last edited by

      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.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • H
        Heimire
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • F
          fr0t
          last edited by

          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 :)

          Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.