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

    Squidguard, problem and error.

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 2 Posters 2.9k 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.
    • B
      Brasse
      last edited by

      I have latest Squid(2.6.18), and SquidGuard(1.2.0_1) installed on my pFsense(1.2-RC5).
      I have two problems, first i cant choose what times the rules should apply, i could from the start but now i cant anymore, i dont know what setting i have set to make theese choices dissapear. Ive tried everything i can think of.
      Also at the top of the page on all tabs in the "Proxy Content filter" i have this error "Warning: Invalid argument supplied for foreach() in /usr/local/pkg/squidguard.inc on line 1306"
      In the screenshot both my problem and the error/bug should be visible.

      The thing i want to be able to configure is that i want to block certain sites special times during the day, or rather allow them certain times during the day.
      I.e, i want google.se to be blocked all day except 13:45-14:00.
      How should i configure the package to make it behave like this?

      Best Regards // Lars

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

        Thanks for you post.
        I fixed error - pls reinstall SG and check for this error msg once more.

        About time
        You can use Time option in ACL's only (squidGuard future)
        For example

        • Select in Default page 'Default access - block all'
        • Add Time in 'Time' page
        • Add ACL with Source IP = you_subnet (for my example 10.0.0.0/24) or single ip's
        • Select Time in this ACL and define Destination rules

        You can use more ACL's, only remember about 'Order option'

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

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

          Oh nice, thanks for the bugfix.

          Yes, ofcourse, stupid of me. Thanks:)

          However, now ive bumped in to a new bug, when i press "Apply" on the first page, i get this message:
          "Warning: Invalid argument supplied for foreach() in /usr/local/pkg/squidguard_configurator.inc on line 992 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/squidguard_configurator.inc:992) in /usr/local/www/pkg_edit.php on line 35 "

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

            Thanks!
            Fixed, pls testing new.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

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

              No more errors. Thank you very much.
              Will write again if i find anything else:)

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

                Welcome  ;)

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

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