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.2k 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.
    • KOMK
      KOM
      last edited by

      or go to pfSense console and select option 8) Shell

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

        yes i did that,
        i get same result as from webgui. (attached in reply before this one)

        and isnt that exact same thing?

        also i think this may be related to the fact i cant make fresh install to 2.2.5,
        and i realized that few minutes ago.
        freebsd does not communicate good with sata controller on mainboard.

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

          Well, that's not a good sign.

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

            agree :(
            i think this two issues are related
            https://forum.pfsense.org/index.php?topic=103090.0

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

              update,
              fresh install of 2.2.5 us up (with new HDD and new RAM)
              i didnt restore config.xml

              squidclient -h LAN_IP_ADDRESS -p 3128 mgr:info

              gives same error as before

              BUT this time it  seems squidguard is working well, no crashing anymore.

              $ squidclient -h 192.168.7.254 -p 3128 mgr:info
              Sending HTTP request … done.
              HTTP/1.1 403 Forbidden
              Server: squid/3.4.10
              Mime-Version: 1.0
              Date: Wed, 09 Dec 2015 10:14:36 GMT
              Content-Type: text/html
              Content-Length: 3102
              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.7.254/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.


              Generated Wed, 09 Dec 2015 10:14:36 GMT by localhost (squid/3.4.10)

              i guess until it works i dont have to be worried about ?

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

                I get the same error with

                squidclient -h LAN_IP_ADDRESS -p 3128 mgr:info
                
                

                But it does not affect squid or squidguard, so don't know.

                Never Fear, A Geek is Here!

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

                  Do NOT use LAN_IP, use 127.0.0.1

                  
                  squidclient -h 127.0.0.1 -p 3128 mgr:info
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • J
                    josey
                    last edited by

                    i did, before posting (updating topic)
                    tried with localhost and with 127.0.0.1

                    $ squidclient -h 127.0.0.1 -p 3128 mgr:info
                    client: ERROR: Cannot connect to 127.0.0.1:3128: Operation timed out

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

                      Then make Squid listen on loopback.

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

                        finally

                        squidclient -h 127.0.0.1 -p 3128 mgr:info
                        

                        do the trick

                        from "broken" machine, but everything looks fine :(

                        $ squidclient -h 127.0.0.1 -p 3128 mgr:info
                        Sending HTTP request … done.
                        HTTP/1.1 200 OK
                        Server: squid
                        Mime-Version: 1.0
                        Date: Wed, 09 Dec 2015 11:14:42 GMT
                        Content-Type: text/plain
                        Expires: Wed, 09 Dec 2015 11:14:42 GMT
                        Last-Modified: Wed, 09 Dec 2015 11:14:42 GMT
                        X-Cache: MISS from localhost
                        X-Cache-Lookup: MISS from localhost:3128
                        Via: 1.1 localhost (squid)
                        Connection: close

                        Squid Object Cache: Version 3.4.10
                        Build Info:
                        Start Time: Thu, 03 Dec 2015 09:42:00 GMT
                        Current Time: Wed, 09 Dec 2015 11:14:42 GMT
                        Connection information for squid:
                        Number of clients accessing cache: 71
                        Number of HTTP requests received: 316414
                        Number of ICP messages received: 0
                        Number of ICP messages sent: 0
                        Number of queued ICP replies: 0
                        Number of HTCP messages received: 0
                        Number of HTCP messages sent: 0
                        Request failure ratio: 0.00
                        Average HTTP requests per minute since start: 36.2
                        Average ICP messages per minute since start: 0.0
                        Select loop called: 22462701 times, 23.326 ms avg
                        Cache information for squid:
                        Hits as % of all requests: 5min: 9.7%, 60min: 12.7%
                        Hits as % of bytes sent: 5min: 0.8%, 60min: 2.9%
                        Memory hits as % of hit requests: 5min: 28.7%, 60min: 17.4%
                        Disk hits as % of hit requests: 5min: 5.7%, 60min: 10.1%
                        Storage Swap size: 2750244 KB
                        Storage Swap capacity: 1.3% used, 98.7% free
                        Storage Mem size: 64592 KB
                        Storage Mem capacity: 98.6% used,  1.4% free
                        Mean Object Size: 25.29 KB
                        Requests given to unlinkd: 8463
                        Median Service Times (seconds)  5 min    60 min:
                        HTTP Requests (All):  0.10281  0.12783
                        Cache Misses:          0.28853  0.18699
                        Cache Hits:            0.00000  0.00000
                        Near Hits:            0.00286  0.10857
                        Not-Modified Replies:  0.00000  0.00000
                        DNS Lookups:          0.08334  0.06963
                        ICP Queries:          0.00000  0.00000
                        Resource usage for squid:
                        UP Time: 523961.789 seconds
                        CPU Time: 961.271 seconds
                        CPU Usage: 0.18%
                        CPU Usage, 5 minute avg: 1.89%
                        CPU Usage, 60 minute avg: 0.96%
                        Maximum Resident Size: 1006864 KB
                        Page faults with physical i/o: 0
                        Memory accounted for:
                        Total accounted:      106905 KB
                        memPoolAlloc calls:  67766971
                        memPoolFree calls:  69055066
                        File descriptor usage for squid:
                        Maximum number of file descriptors:  116910
                        Largest file desc currently in use:    363
                        Number of file desc currently in use:  111
                        Files queued for open:                  0
                        Available number of file descriptors: 116799
                        Reserved number of file descriptors:  100
                        Store Disk files open:                  0
                        Internal Data Structures:
                        108796 StoreEntries
                        13048 StoreEntries with MemObjects
                        13045 Hot Object Cache Items
                        108741 on-disk objects

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

                          Nothing too bad here.  You say that squid & squidguard seem to be working now?

                          1 Reply Last reply Reply Quote 0
                          • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.