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

    Internet Schedules

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 19.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.
    • S
      soulhunter
      last edited by

      Hi to all Pfsense user, I have some question to all… I need some help to config my pfsense, this is the setup i want.
      from 7Am - 11:59Am no Internet Connection to selective Computers. then from 12NN - 12:59Pm with internet connection to selective computers then 1pm - 8pm no internet connection. Need your Expertise

      1 Reply Last reply Reply Quote 0
      • B
        blak111
        last edited by

        First go to Firewall > Aliases and add a new alias.
        Give the alias a name like "RestrictedHosts"
        Set the type to Host(s) and enter the IP address of each host.
        If you have a specific CIDR range to block, use the Network(s) type instead.

        Once all of the addresses are in the alias, save it and go to Firewall > Schedules.
        Add a new schedule and name is something like "BlockAccess".
        Click all of the days of the week you want the schedule to apply.
        Set the start time to 7:00 and the stop time to 11:59 and click Add time.
        Do it one more time for the 13:00 to 19:59 range. Then click Save.

        Then head to Firewall > Rules and create a new rule on the interface that the clients reside on.
        Set the type to Block, the protocol to any, the Source to "Single host or alias" and type the alias name you made earlier. Finally, select the schedule you made from the drop-down in the schedule section, and click save. 
        Make sure the block rule is above the default allow rule. This rule tells the firewall to block traffic from those specific machines during the time frames you entered in the schedule.

        Should look similar to this.

        1 Reply Last reply Reply Quote 0
        • S
          soulhunter
          last edited by

          First go to Firewall > Aliases and add a new alias.
          Give the alias a name like "RestrictedHosts"
          Set the type to Host(s) and enter the IP address of each host.
          If you have a specific CIDR range to block, use the Network(s) type instead.

          Once all of the addresses are in the alias, save it and go to Firewall > Schedules.
          Add a new schedule and name is something like "BlockAccess".
          Click all of the days of the week you want the schedule to apply.
          Set the start time to 7:00 and the stop time to 11:59 and click Add time.
          Do it one more time for the 13:00 to 19:59 range. Then click Save.

          Then head to Firewall > Rules and create a new rule on the interface that the clients reside on.
          Set the type to Block, the protocol to any, the Source to "Single host or alias" and type the alias name you made earlier. Finally, select the schedule you made from the drop-down in the schedule section, and click save. 
          Make sure the block rule is above the default allow rule. This rule tells the firewall to block traffic from those specific machines during the time frames you entered in the schedule.

          Should look similar to this

          What If my client using a password auth setting in proxy server..if this setting will do?

          n6t8if.png
          n6t8if.png_thumb

          1 Reply Last reply Reply Quote 0
          • B
            blak111
            last edited by

            You can use the squidguards time rules in conjunction with squid, but the firewall rules method is a lot easier for simple times.

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