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

    SquidGuard redirects alot

    Cache/Proxy
    2
    26
    1.9k
    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.
    • JonathanLeeJ
      JonathanLee @michmoor
      last edited by

      @michmoor I get this error all the time on SSL Intercept enabled certificated devices, and port for pfsense firewall open or blocked in Squid Proxy

      Screenshot 2023-08-18 at 2.19.22 PM.png

      However, spliced devices have no issue accessing the error page.

      M JonathanLeeJ 2 Replies Last reply Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @JonathanLee
        last edited by

        @JonathanLee if i change to use an internal error page i get this
        IMO, Redirect mode is a buggy mess. Its hit or miss but mostly miss.

        3724b7d9-5da1-4c4e-a318-77c7e1170305-image.png

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        JonathanLeeJ 1 Reply Last reply Reply Quote 1
        • JonathanLeeJ
          JonathanLee @JonathanLee
          last edited by

          @JonathanLee

          Use this it fixed it ex url move and point it to the internal squid guard URL.

          Screenshot 2023-08-18 at 3.08.12 PM.png

          Screenshot 2023-08-18 at 3.08.27 PM.png

          (ERRORS!!!!)

          M 1 Reply Last reply Reply Quote 0
          • JonathanLeeJ
            JonathanLee @michmoor
            last edited by JonathanLee

            @michmoor

            https://forum.netgate.com/topic/182279/fixed-squidguard-redirect-page-for-error-codes-issues-with-https-ssl-interception

            1 Reply Last reply Reply Quote 0
            • M
              michmoor LAYER 8 Rebel Alliance @JonathanLee
              last edited by

              @JonathanLee the only problem with that solution is that you have to make your management port available to everyone. In your case 8080

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              JonathanLeeJ 2 Replies Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @michmoor
                last edited by

                @michmoor yep and that's a bigger problem

                1 Reply Last reply Reply Quote 0
                • JonathanLeeJ
                  JonathanLee @michmoor
                  last edited by JonathanLee

                  This post is deleted!
                  M 1 Reply Last reply Reply Quote 1
                  • M
                    michmoor LAYER 8 Rebel Alliance @JonathanLee
                    last edited by michmoor

                    @JonathanLee lol oh boy. Not good !!

                    I think the limiting factor is that there is no good or secure way of providing a page to an end user explaining why they are blocked.
                    I’m using an external server and that works half the time. “Too many redirects”. But after some time later it works just fine again. No way to debug either 🤷🏽

                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                    Routing: Juniper, Arista, Cisco
                    Switching: Juniper, Arista, Cisco
                    Wireless: Unifi, Aruba IAP
                    JNCIP,CCNP Enterprise

                    JonathanLeeJ 1 Reply Last reply Reply Quote 1
                    • JonathanLeeJ
                      JonathanLee @michmoor
                      last edited by

                      @michmoor I agree,

                      I just discovered you can just add google into the redirect and it takes you back to the browser.

                      I think I will use this one for a while.

                      Test this or take the redirect back to the office homepage. This way it doesn't feel like a panopticon and users just end up where they started.

                      Screenshot 2023-08-18 at 4.34.26 PM.png

                      I didn't think it would work but it does.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        michmoor LAYER 8 Rebel Alliance @JonathanLee
                        last edited by

                        @JonathanLee yeah at least if someone can’t download something they will say “it keeps taking me to google” which is funny. I’ll try it out for awhile.
                        My daughter brought home a school laptop so I’m going to see if I can install a certificate and start “investigating “

                        Firewall: NetGate,Palo Alto-VM,Juniper SRX
                        Routing: Juniper, Arista, Cisco
                        Switching: Juniper, Arista, Cisco
                        Wireless: Unifi, Aruba IAP
                        JNCIP,CCNP Enterprise

                        JonathanLeeJ 1 Reply Last reply Reply Quote 0
                        • JonathanLeeJ
                          JonathanLee @michmoor
                          last edited by JonathanLee

                          @michmoor you don't need the certificate as it works in transparent mode also. I only install certs on devices I own, everything else is splice mode. I do custom with both ssl intercept and transparent in use. FYI I also found that /usr/local/www/sgerror.php still is accessible even when using the external web redirect like google.com. I thought that was weird.

                          https://redmine.pfsense.org/issues/14696

                          It should not be accessible if its not in use right?

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            michmoor LAYER 8 Rebel Alliance @JonathanLee
                            last edited by

                            @JonathanLee how is it accessible?
                            How are you accessing that path?
                            Transparent mode is iffy for clients. That /409 error stops websites from working.

                            Firewall: NetGate,Palo Alto-VM,Juniper SRX
                            Routing: Juniper, Arista, Cisco
                            Switching: Juniper, Arista, Cisco
                            Wireless: Unifi, Aruba IAP
                            JNCIP,CCNP Enterprise

                            JonathanLeeJ 1 Reply Last reply Reply Quote 0
                            • JonathanLeeJ
                              JonathanLee @michmoor
                              last edited by JonathanLee

                              @michmoor I just use a custom option and block out the websites I don't want accessed. It splices and looks at the get request is all

                              Keep in mind this type of redirect could be "gaslighting" and cause "crazy making situations" if it just keep going to google over and over. I would recommend to use an official "this website is blocked page" and after to just redirect back to a company page and not just google. This provides clarity and transparency.

                              I changed mine back to the official block page.

                              Screenshot 2023-08-18 at 8.53.27 PM.png

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                michmoor LAYER 8 Rebel Alliance @JonathanLee
                                last edited by

                                @JonathanLee I understand but it’s really not a secure option because of the opening of the management port to everyone.
                                Unfortunately there is an issue with an external redirect that I’m trying to debug. Might be php code related tho.
                                I think the best option is to just have the block page saying “unable to forward this request”.

                                Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                Routing: Juniper, Arista, Cisco
                                Switching: Juniper, Arista, Cisco
                                Wireless: Unifi, Aruba IAP
                                JNCIP,CCNP Enterprise

                                1 Reply Last reply Reply Quote 0
                                • M
                                  michmoor LAYER 8 Rebel Alliance
                                  last edited by michmoor

                                  Still havent been able to solve the multiple redirect issue.
                                  There is no rhbyme or reason as to why squidguard redirects this many times. I rechecked the php script and its good.
                                  Its not a browser cache problem. Its a squid problem.

                                  dffae9b5-158f-4a01-9c8a-d91fc282abe4-image.png

                                  Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                  Routing: Juniper, Arista, Cisco
                                  Switching: Juniper, Arista, Cisco
                                  Wireless: Unifi, Aruba IAP
                                  JNCIP,CCNP Enterprise

                                  JonathanLeeJ 1 Reply Last reply Reply Quote 0
                                  • JonathanLeeJ
                                    JonathanLee @michmoor
                                    last edited by

                                    @michmoor Do you have multiple Group ACL lists with the same IP address? That might cause issues.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      michmoor LAYER 8 Rebel Alliance @JonathanLee
                                      last edited by

                                      @JonathanLee No group ACL used. Just Target

                                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                      Routing: Juniper, Arista, Cisco
                                      Switching: Juniper, Arista, Cisco
                                      Wireless: Unifi, Aruba IAP
                                      JNCIP,CCNP Enterprise

                                      JonathanLeeJ 1 Reply Last reply Reply Quote 0
                                      • JonathanLeeJ
                                        JonathanLee @michmoor
                                        last edited by

                                        @michmoor on your redirect URL do you have https:// in front of the URL? I had mtalk.google.com redirect to google.com without the https, and it would show on the browser to many redirects, I changed it to https://www.google.com the error stopped and it worked without the error on the browser.

                                        Keep in mind mtalk.google.com is used for Android push notifications, so my smart phones have approved access, but my desktops are not smartphone capable so it is disabled. Some devices like my iMac constantly had a connection to mtalk. I did some research and mtalk is also abused it seems by invasive actors. So my network now only lets the phones use it. I have googles assistant disabled on everything.

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