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

    SquidGuard 1.9.18 crashing

    Scheduled Pinned Locked Moved Cache/Proxy
    35 Posts 4 Posters 8.5k 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.
    • J
      josey
      last edited by

      posted mgr:info is from 2.2.5 machine that crashes after squidguard is enabled.

      i have 2 identical pfs machines,
      one is up and running without squidguard, and second one is for testing, and second one is now working fine squidguard is up and running.

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

        I don't remember if we told you that squidguard needs at least one Target Category or it will not be happy.

        1 Reply Last reply Reply Quote 0
        • J
          josey
          last edited by

          yes i know that ;)
          im crazy in past few days, spent hours and hours trying to get this working.
          everything worked perfectly until i made update :(
          i will swap this two pfs machines and try to make clean install on first one and see how things work then.

          thanks

          1 Reply Last reply Reply Quote 0
          • J
            josey
            last edited by

            update
            format HDD in second machine - which was freezing after enabling squidguard
            make fresh install of PFS 2.2.5
            restore conf file,
            start squit….
            and, everything works.
            Great! perfect, it seems all my problems are gone.
            Think again,
            after i upload blacklist

            www.shallalist.de/Downloads/shallalist.tar.gz
            

            and enable it, squid and squidguard stopped running again.
            It seems that this problems are caused by blacklist.

            oh, yes
            running

            squidclient -h 127.0.0.1 -p 3128 mgr:info
            

            return this

            Sending HTTP request … done.
            Alarm clock

            im going to pull my hair out :(

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

              Anything in /var/squidGuard/log/squidGuard.log?

              1 Reply Last reply Reply Quote 0
              • J
                josey
                last edited by

                i gave up,
                format hdd
                reinstall PFS,
                restore config file

                delete all data regarding squidguard
                reinstall squidguard
                made new target categories
                made new groups acl
                upload blacklist

                and for now its working.

                (now i have some problems with firewall, the second rule in the order run over first, i will test that later, im in the middle of WPAD + SQUID now )

                will test it for few days and let you know.

                1 Reply Last reply Reply Quote 0
                • A
                  aGeekhere
                  last edited by

                  if using Proxy Interface(s) = lan
                  I get

                  squidclient -h 127.0.0.1 -p 3128 mgr:info
                  Sending HTTP request ... done.
                  
                  

                  if using Proxy Interface(s) = loopback
                  I get

                  
                  /root: squidclient -h 127.0.0.1 -p 3128 mgr:info
                  Sending HTTP request ... done.
                  HTTP/1.1 403 Forbidden
                  Expires: Wed, 23 Dec 2015 01:00:46 GMT
                  Cache-Control: max-age=180000
                  Content-Type: text/html
                  Date: Sun, 20 Dec 2015 23:00:46 GMT
                  Server: lighttpd/1.4.37
                  X-Cache: MISS from localhost
                  X-Cache-Lookup: MISS from localhost:3128
                  Via: 1.1 localhost (squid/3.4.10)
                  Connection: close
                  
                  ### Request denied by pfSense proxy: 403 Forbidden
                  
                   **Reason:** 
                  
                  * * *
                  
                   **Client address:** 127.0.0.1 
                  
                   **Client name:** localhost 
                  
                   **Client group:** default 
                  
                   **Target group:** in-addr 
                  
                   **URL:** cache_object://127.0.0.1/info127.0.0.1/localhost-GET <b   ="" r="">* * *</b > 
                  

                  maybe it is just my apu1d4 or i am missing something (squid is running fine).

                  Never Fear, A Geek is Here!

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

                    Do you have your LAN IP and loopback in the External cache managers field?

                    1 Reply Last reply Reply Quote 0
                    • A
                      aGeekhere
                      last edited by

                      no, just a apu1d4 which i installed pfsense to.

                      Never Fear, A Geek is Here!

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

                        /root: squidclient -h 127.0.0.1 -p 3128 mgr:info
                        Sending HTTP request … done.
                        HTTP/1.1 403 Forbidden

                        You have to have your LAN IP address and loopback in that field or the squidclient command will fail on an access check, I believe.

                        1 Reply Last reply Reply Quote 0
                        • A
                          aGeekhere
                          last edited by

                          Proxy Server: General Settings Proxy Interface(s) = changed to loopback
                          

                          result

                          squidclient -h 192.168.1.1 -p 3128 mgr:info
                          Sending HTTP request ... done.
                          Alarm clock
                          

                          net goes down
                          Proxy Server: General Settings Proxy Interface(s) = changed back to lan

                          Never Fear, A Geek is Here!

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

                            What?  You're saying that by changing the External cache-mgr field, your network goes down???

                            1 Reply Last reply Reply Quote 0
                            • A
                              aGeekhere
                              last edited by

                              You're saying that by changing the External cache-mgr field, your network goes down
                              

                              no, if i make Squid listen on loopback then it goes down. so i set it back to lan.

                              I think I am completely confused here.

                              The first command that was suggested to run was

                              squidclient -h LAN_IP_ADDRESS -p 3128 mgr:info  
                              

                              so that would be

                              squidclient -h 192.168.1.1 -p 3128 mgr:info  
                              

                              which resulted to this error

                              
                              1.1 -p 3128 mgr:info
                              Sending HTTP request ... done.
                              HTTP/1.1 403 Forbidden
                              Server: squid/3.4.10
                              Mime-Version: 1.0
                              Date: Mon, 21 Dec 2015 22:32:44 GMT
                              Content-Type: text/html
                              Content-Length: 3094
                              X-Squid-Error: ERR_ACCESS_DENIED 0
                              Vary: Accept-Language
                              Content-Language: en
                              X-Cache: MISS from localhost
                              X-Cache-Lookup: NONE from localhost:3128
                              Via: 1.1 localhost (squid/3.4.10)
                              Connection: close
                              
                              <title>ERROR: The requested URL could not be retrieved</title>
                              
                              # ERROR
                              
                              ## The requested URL could not be retrieved
                              
                              * * *
                              
                              The following error was encountered while trying to retrieve the URL: [cache_object://192.168.1.1/info](cache_object://192.168.1.1/info)
                              
                              > **Access Denied.**
                              
                              Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
                              
                              Your cache administrator is [admin@localhost](mailto:admin@localhost?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&body=CacheHost%3A%20localhost%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Mon,%2021%20Dec%202015%2022%3A32%3A44%20GMT%0D%0A%0D%0AClientIP%3A%20192.168.1.1%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Finfo%20HTTP%2F1.0%0AHost%3A%20192.168.1.1%0D%0AUser-Agent%3A%20squidclient%2F3.4.10%0D%0AAccept%3A%20*%2F*%0D%0AConnection%3A%20close%0D%0A%0D%0A%0D%0A).
                              
                              * * *
                              
                              Generated Mon, 21 Dec 2015 22:32:44 GMT by localhost (squid/3.4.10)
                              
                              

                              Then it was said NOT use LAN_IP, use 127.0.0.1
                              So I then used

                              squidclient -h 127.0.0.1 -p 3128 mgr:info  
                              

                              result

                              Sending HTTP request ... done.
                              Alarm clock
                              
                              

                              if I try making squid listen on loopback I get.

                              
                              Sending HTTP request ... done.
                              HTTP/1.1 403 Forbidden
                              Expires: Wed, 23 Dec 2015 01:00:46 GMT
                              Cache-Control: max-age=180000
                              Content-Type: text/html
                              Date: Sun, 20 Dec 2015 23:00:46 GMT
                              Server: lighttpd/1.4.37
                              X-Cache: MISS from localhost
                              X-Cache-Lookup: MISS from localhost:3128
                              Via: 1.1 localhost (squid/3.4.10)
                              Connection: close
                              
                              ### Request denied by pfSense proxy: 403 Forbidden
                              
                               **Reason:** 
                              
                              * * *
                              
                               **Client address:** 127.0.0.1 
                              
                               **Client name:** localhost 
                              
                               **Client group:** default 
                              
                               **Target group:** in-addr 
                              
                               **URL:** cache_object://127.0.0.1/info127.0.0.1/localhost-GET <b   ="" r="">* * *</b > 
                              

                              and the net goes down

                              So using squidclient -h iphere -p 3128 mgr:info
                              does not work for me, however squid runs fine.

                              Never Fear, A Geek is Here!

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by

                                @aGeekHere:

                                Then it was said NOT use LAN_IP, use 127.0.0.1

                                No. No such thing has ever been said. You were told to make Squid listen on loopback in addition to whatever other interface in case you insist on messing with similar cache managers shit (because that's the only interface allowed by ACLs by default).

                                That's all there's to it.

                                @aGeekHere:

                                I think I am completely confused here.

                                Yeah. Definitely. Way over your head. Just leave the proxy stuff alone and move on.

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