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

    Squidguard not blocking sites during time restriction

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 4 Posters 1.8k 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.
    • R
      reidhershel09
      last edited by

      hi to all. i am currently trying to setup a time restriction in squidguard to limit the computers access in specific time. for example i want the 192.168.1.10-192.168.1.20 to disable the access of facebook and youtube from 8am-12pm. then after 12:01 to 1:30pm they will be able to access it, and after 1:31pm - 5pm they wont be able to access again facebook and youtube. but when i test this. i can still access the blocked website during the 8:40am. note that i already check the time of pfsense if it is sync correctly to my time zone.
      11234041_173347459680996_2244848114956508381_n.jpg
      11234041_173347459680996_2244848114956508381_n.jpg_thumb
      12189807_173347513014324_3441120298231820028_n.jpg
      12189807_173347513014324_3441120298231820028_n.jpg_thumb
      12190844_173347729680969_4799116813488810397_n.jpg
      12190844_173347729680969_4799116813488810397_n.jpg_thumb
      12191040_173348369680905_9141266829915016863_n.jpg
      12191040_173348369680905_9141266829915016863_n.jpg_thumb
      12191718_173347616347647_8776070006174198391_n.jpg
      12191718_173347616347647_8776070006174198391_n.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • N
        n3by
        last edited by

        And the Squid proxy how is it working ? Transparent or HTTPS/SSL interception because if you run transparent then it will not intercept HTTPS.

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Your first two screenshots are totally unreadable.

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

            Rant on

            I can tell you from past attempts, that the time restrictions are problematic and VERY unstable.

            1. When you cross a time boundary, the filters do not automatically change.  You must setup cron to run "squid -k reconfigure" to tell squid to re-read the config file a minute or so after the time change.  This is not documented anywhere and is not automatically setup.  One would think that squidguard would get an alarm set or something.  There is a log entry that refers to a squid alarm, however, expiration of the alarm does not seem to do anything.

            2. Existing transfers or connections (ie, firewall states) do not normally clear, thus users will not see the rules changes.  If you set squid to clear states when it reloads, then any transfer occuring when the time change is triggered also gets dropped even though it should not be affected by the rule.  If you do not clear the states, then any active transfer continues.  In my case, we allow users to stream in audio outside of business hours.  But, if a user started the radio stream prior to the time change, then they could stream all day long.

            3. On occassion, the entire firewall will crash and corrupt the hard drive during one of these transitions.

            4. Finally, and not insignificantly, every single hour (the exact minute depends upon when squidguard started), there is some sort of garbage collection that causes a 100% CPU spike on the squid process for 30-90 seconds.  I have noted that the problem is either very small or does not occur if squidguard is not enabled.  Further, the size of the cache, RAM allocation, and CPU size does not seem to significantly impact the length of the hourly outage.  NO internet traffic of any kind is transferred during this hourly period and it will often cause VPN tunnels to timeout and drop as well.

            All of these problems have been present for ALL 2.x versions, including current releases.  I find it extremely annoying that I've had difficulty even getting a response, much less any type of resolution on these as I could really use these features, but cannot due to their network impact.  Especially item 4, that occurs anytime squidguard is enabled.  All I have ever gotten is a few responses asking me to check a couple of items, all of which turned out to be fine.

            Rant Off

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

              Interesting results on the hourly squid hang can be found here:

              https://forum.pfsense.org/index.php?topic=96472

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