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

Problem with squid and squidGuard

Scheduled Pinned Locked Moved Cache/Proxy
8 Posts 2 Posters 1.4k 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.
  • S
    ssbostan
    last edited by ssbostan May 6, 2019, 5:54 AM May 6, 2019, 5:52 AM

    Hi,

    I have a medium network, my users access to internet through squid proxy and we filter sites with squidGuard.

    Currently i have a problem with squid.

    My squid server not response to users after few minutes and when i restart squid service, it works again for few minutes and after some time not responding again! and again, again, again!

    What is a problem and how can i check what goes wrong?

    Best regards.

    1 Reply Last reply Reply Quote 0
    • K
      KOM
      last edited by May 7, 2019, 1:43 PM

      If you have a busy network, you may need to spawn more squidguard child threads to keep up. Anything in the System log? Anything in Squid's logs? Anything in squidguard's filter log?

      1 Reply Last reply Reply Quote 0
      • S
        ssbostan
        last edited by May 7, 2019, 7:10 PM

        Yes, i have a busy network.

        How can i spawn child threads of squidguard?

        No any abnormal logs, just a lot of connections in FIN_WAIT_2 state.

        And not any logs...

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by May 7, 2019, 7:14 PM

          Services - Squid Proxy Server - General - Show advanced options - Advanced Features - Integrations has this line:

          url_rewrite_children 16 startup=8 idle=4 concurrency=0
          

          Try increasing it as per the doc below.

          http://www.squid-cache.org/Doc/config/url_rewrite_children/

          1 Reply Last reply Reply Quote 1
          • S
            ssbostan
            last edited by May 7, 2019, 7:18 PM

            Thanks KOM, i will check and back results to you.

            1 Reply Last reply Reply Quote 0
            • K
              KOM
              last edited by May 7, 2019, 7:30 PM

              You may also have to increase the sslcrtd_children value as well.

              http://www.squid-cache.org/Doc/config/sslcrtd_children/

              1 Reply Last reply Reply Quote 0
              • S
                ssbostan
                last edited by May 8, 2019, 10:46 AM

                Not change after testing "url_rewrite_children" and "sslcrtd_children".

                I'm test squid without squidGuard enabled and my problem exists again.

                squid is not working after few minutes when squidGuard is disabled!

                1 Reply Last reply Reply Quote 0
                • K
                  KOM
                  last edited by May 8, 2019, 2:03 PM

                  There must be something in one of the logs:

                  Status - System Logs - System - General

                  Services - Squid Proxy Server - Realtime

                  Try increasing the squid debug log level by adding this to the Advanced Options - INtegrations section for squid:

                  debug_options ALL,5
                  

                  Increase the value after ALL, to get more and more detailed logging.

                  http://www.squid-cache.org/Doc/config/debug_options/

                  http://etutorials.org/Server+Administration/Squid.+The+definitive+guide/Chapter+16.+Debugging+and+Troubleshooting/16.2+Debugging+via+cache.log/

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received