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

    Dansguardian Multiple time limit blocks

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 4 Posters 4.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.
    • C
      cirkit
      last edited by

      I am running Pfsense 2.0.3 with squid 2.79 stable and dansguardian 2.12 perfectly.
      I want to allow bbc.co.uk and cnn.com from 10:00 to 12:00 0123456
      and intel.com and amd.com between 18:00 to 20:00 0123456
      How do I block all 4 websites for the times other than given and give access at the time given
      In my configuration only one time blocking slot works
      How do I achieve multiple time blocking with dansguardian in Pfsense 2.0.3
      Thanks in anticipation
      cirkit

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

        UP

        1 Reply Last reply Reply Quote 0
        • R
          rjcrowder
          last edited by

          Never played with doing it in DG… I believe it should be possible although I'm not sure about the "multiple ranges". Another option would be to do it with firewall rules.

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            I've never tested it too.

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • C
              cirkit
              last edited by

              tried it today…it works

              1 Reply Last reply Reply Quote 0
              • marcellocM
                marcelloc
                last edited by

                @cirkit:

                tried it today…it works

                can you post how you did it?

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • C
                  cirkit
                  last edited by

                  Step 1. Go to Site Lists under ACLs in dansguardian
                  Step 2. Edit the Default profile….Under banned.....type all the sites which you want  time based access...Site1.com,Site2.org,Site3.net,Site4.com,Site5.org,Site6.info
                  Step 3. Create a new profile, example Time1.
                  Step 4. Under Exception lists of Time1 type the list of sites you want to grant access to
                  For eg you want to grant access to Site1.com, Site2.org & Site2.net from 17:00 hrs to 18:00 Mon-sat
                  Hence Under Exception list you will add
                  #time: 17 00 18 00 012345
                  Site1.com
                  Site2.org
                  Site3.net

                  Step 5. Create another profile Time2....type the list of sites you want to grant access to
                  For eg you want to grant access to Site4.com, site5.org, Site6.info from 09:00 to 13:00 Mon-Fri
                  hence Under Exception list you will add
                  #time: 09 00 13 00 01234
                  Site4.com
                  Site5.org
                  Site6.info

                  Step 7. Include the paths of the profiles Time1 & Time2 under the exceptionlists of Default Profile
                  eg..under Exceptionlist of Default profile it should be
                  .Include
                  .Include

                  Adding these two lines instructs dansguardian to parse these files one by one

                  Similarly any number of banned, exception & greylists with different access times can be created.

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