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

    HOW TO SET URL BLOCKING RULES BASED ON TIME SCHEDULE? NEED HELP BADLY!

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 5 Posters 9.1k 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.
    • marcellocM
      marcelloc
      last edited by

      • create an alias called facebook and include apps.facebook.com

      • create an alias called blocked and include a network cidr or individial ips that you wanto to restrict internet

      • create a time schedules with your free hours

      • create a rule on lan before default rule denying access from blocked alias to facebook alias on free_hours_time_schedule

      take a look on docs.pfsense.com to see how to create alias time schedules and rules.

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • G
        gabpirate
        last edited by

        hello sir, can you please elaborate on how to do this? I have tried everything including the proxy server and proxy filter but i just cant seem to make it work like what I wanted…any suggestions?

        1 Reply Last reply Reply Quote 0
        • chpalmerC
          chpalmer
          last edited by

          Heres a couple of screenshots I use to turn my kids machine off and 10:45PM

          In the second picture you see the difference between clicking on the week name (which will go on month to month) and clicking the actual day of the week (which only works that one day that one month)

          I dont use aliases yet (but Im gonna do Facebook real soon!)

          Schedule1.JPG
          Schedule1.JPG_thumb
          Schedule2.JPG
          Schedule2.JPG_thumb

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • G
            gabpirate
            last edited by

            how about blocking facebook sir? any hints?

            1 Reply Last reply Reply Quote 0
            • chpalmerC
              chpalmer
              last edited by

              In the second post down, follow what marcelloc outlined.

              Alias's are found at  /firewall_aliases.php

              Triggering snowflakes one by one..
              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

              1 Reply Last reply Reply Quote 0
              • G
                gabpirate
                last edited by

                Sir in aliases…what will I place in types? i have tried URL but it throws an ERROR telling me that www.facebook.com is not a valid URL type...any idea on this?

                1 Reply Last reply Reply Quote 0
                • chpalmerC
                  chpalmer
                  last edited by

                  Ive not done an alias yet but-

                  http://facebook.com
                  http://www.facebook.com
                  http://apps.facebook.com

                  Triggering snowflakes one by one..
                  Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                  1 Reply Last reply Reply Quote 0
                  • G
                    gabpirate
                    last edited by

                    actually i was able to follow marcelloc's guide but one thing i cannot understand is this part:

                    "create a rule on lan before default rule denying access from blocked alias to facebook alias on free_hours_time_schedule"

                    In my firewall rules page, i cannot see any option on where to add alias…

                    here are some screenies:

                    please clarify on these…thanks

                    1 Reply Last reply Reply Quote 0
                    • M
                      Metu69salemi
                      last edited by

                      Goto: (Firewall: Aliases)

                      1 Reply Last reply Reply Quote 0
                      • D
                        dreamslacker
                        last edited by

                        @ gabpirate
                        To use the Alias in the Firewall Rule go to:

                        Destination -> Type
                        Change to Single Host or Alias
                        In the Address box, type in the name of the Alias (It should auto-complete).

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