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

    Squid random disconnects random webpages

    Scheduled Pinned Locked Moved pfSense Packages
    31 Posts 3 Posters 4.4k Views 2 Watching
    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.
    • L Offline
      La6er
      last edited by

      Dear pfSense masters

      I have installed pfSense 2.4.4 running squid, squidguard and snort, I have configured them, squid is currently configured on transparent mode, and so far it works... but my users get random disconnects from webpages such as gmail, and sometines they receive an error stating SSL_ERROR after this, they keep reloading the page and after a while they manage to access to the site, my pfsense is currently using DNS resolver... and I have configured 1.1.1.1 and 1.0.0.1 dns servers configured on the general configuration tab. any ideas for this issue?

      I have configured DNS resolver configured this way:

      0_1542032190357_de540506-bc3c-474d-b78e-5b0addd19c06-image.png

      0_1542032211809_dc1f52a6-a00c-456c-b11d-15136062b7cd-image.png

      0_1542032238407_603d19bd-0edf-445f-9179-5338f79b2f1c-image.png

      0_1542032289826_699e31c3-df10-4237-b80c-c4a9ce6287e4-image.png

      0_1542032329604_b924111c-fc9d-435e-ba31-5a5ff748bfb0-image.png

      and squid configured this way:

      0_1542032370826_f50f4857-ea44-4f3b-85d1-8084f286d155-image.png

      0_1542032394352_f6d092e0-1eaf-41e2-9109-ccc3648d100e-image.png

      0_1542032416996_ef09be2e-2c57-49e6-adfd-6f5c9027f4a6-image.png

      0_1542032440514_f98e3940-3a4c-4cf5-af0f-a677255eff9c-image.png

      0_1542032466749_e8c987be-7e3f-4b7c-af47-34d4c2b4b4ae-image.png

      I hope you can help me with this issue, it's been a rough month trying to give my pfsense complete stability

      1 Reply Last reply Reply Quote 0
      • Raffi_R Offline
        Raffi_
        last edited by

        What is the main purpose of squid in your setup? Is it URL filtering via squid guard?
        If you disable squid, do your problems go away?

        On a separate note, I don't think you need 1.1.1.1 or 1.0.0.1 in the System > General Setup. You don't have forwarding mode enabled in Resolver so pfSense should still be the first option. That's a good thing. pfSense (Unbound) is going to generally be the best option for DNS resolution. That's my personal opinion, but I rather not use external servers. The main reason being security. External servers are much bigger targets for an attack. Privacy is another one. I don't care but some people who are also concerned about privacy avoid external servers. You don't know what they're doing with the information that goes to their DNS servers. Oh and it's not really going to be speeding up queries anyway. Unbound will be caching the sites you visit so the external servers will not be used for the most part. The majority of the time Unbound should resolve almost instantly from cache.

        1 Reply Last reply Reply Quote 0
        • L Offline
          La6er
          last edited by

          Yes I am using squid along with squidguard for web filtering and yes If I stop squid it works fine... with squid I randomly get issues like no DNS resolutions or the SSL_ERROR, I have deleted both DNS servers on my general and overrides on the DNS resolver, I will check how it performs

          1 Reply Last reply Reply Quote 0
          • Raffi_R Offline
            Raffi_
            last edited by

            That's good to know. For URL filtering, I would suggest giving the package pfblockerNG-devel a try. It's very easy to setup, very effective and doesn't require squid. SSL filtering via squid can cause problems, so avoiding it if possible would be best.

            1 Reply Last reply Reply Quote 0
            • L Offline
              La6er
              last edited by

              I did considered pfblocker but the thing is... I have several subnets with different kinds of web access permissions, Maybe I did not looked for the whole information... but... Is it possible to set this kind of web access groups?

              1 Reply Last reply Reply Quote 0
              • L Offline
                La6er
                last edited by

                still having the same issue, lots of pages are failing :(

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

                  How many users in your environment? You are probably having an issue with a low number of rewrite & SSL child threads. Look into sslcrtd_children and url_rewrite_children which are configured under Services - Squid proxy server - General - Advanced Options - Integrations.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    La6er
                    last edited by

                    around 500 users at this time, I have SSL Certificate Deamon Children set to 20 and url_rewrite_children 64 startup=32 idle=16 concurrency=0

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

                      What do you mean? You already had those set, or you just set them now?

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        La6er
                        last edited by

                        I had them configured that way already

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

                          Perhaps not enough?

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            La6er
                            last edited by

                            I have increeased besides I am currently using just 1 pc for testing purposes... and I still received error err_ssl_protocol_error, any ideas? :(

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              La6er
                              last edited by

                              currently testing with just squid... squidguard is currently disabled, still getting SSL errors

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

                                @la6er said in Squid random disconnects random webpages:

                                err_ssl_protocol_error

                                Post the squid access.log details from the time that the error happens. You may need to increase the default level of logging via the debug_options directive.

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  La6er
                                  last edited by

                                  this are the logs I received when a wp fails

                                  1542122446.776 0 10.16.20.191 TAG_NONE/409 3938 CONNECT twitter.com:443 - HIER_NONE/- text/html
                                  1542122446.946 11 10.16.20.191 TAG_NONE/200 0 CONNECT 104.244.42.65:443 - HIER_NONE/- -
                                  1542122446.947 0 10.16.20.191 TAG_NONE/409 3938 CONNECT twitter.com:443 - HIER_NONE/- text/html
                                  1542122446.960 9 10.16.20.191 TAG_NONE/200 0 CONNECT 104.244.42.65:443 - HIER_NONE/- -

                                  1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    La6er
                                    last edited by

                                    currently the main issue looks to be sites related to google, but sometimes if I wait just a few minutes without doing anything they work after I refresh

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

                                      A 409 is a conflict. Strange. I don't have a definitive answer for you but start by Googling 'squid 409 conflict err_ssl_protocol_error'

                                      1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        La6er
                                        last edited by

                                        I have, I disabled 2 different things on my browsers, and so far looks stable, but it means I have to do that on over a 1000 pcs

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

                                          Does the problem occur when the proxy is running in explicit mode? I've always hated transparent mode for the issues it has always caused me. Explicit + WPAD has worked for me for years now.

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            La6er
                                            last edited by

                                            I indeed have it configured using transparent mode, everytime I tried using WPAD it does not let me download the files on the browser so I asummed it is not working properly in that way

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