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

    Certificate issue after starts squid proxy

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 4 Posters 1.1k 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.
    • fmoragasF
      fmoragas @johnpoz
      last edited by

      @johnpoz said in Certificate issue after starts squid proxy:

      You want to have some billy bob users cell phone that connects to your wifi trust your proxy cert - automatically? Yeah not going to happen..

      If you could do something like that - it would be a huge security issue..

      I do not know if i was clear.
      I would like internal devices, connected to my structure. once the transparent proxy was configured, they installed and updated the certificate automatically.
      I understand that cell phone control can be much more complex. But is there any way to bypass their connection?

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

        @fmoragas said in Certificate issue after starts squid proxy:

        I would like internal devices, connected to my structure. once the transparent proxy was configured, they installed and updated the certificate automatically.

        To load certificates on devices you control then you need to either do it manually or do it using GPO (assuming Windows infrastructure),.

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

        johnpozJ 1 Reply Last reply Reply Quote 1
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @michmoor
          last edited by johnpoz

          @michmoor ^ yup, for stuff like iphones you could use the "mobile device management (MDM)"

          For android I am not sure..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • fmoragasF
            fmoragas
            last edited by

            Is it possible to allow browsing, even for machines that do not have the certificate installed?
            I tried to do this, using the "Bypass Proxy for These Source IPs" field, but I ended up losing the real-time statcs.

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

              @fmoragas I would be remiss if i don't bring up that Squid will no longer be available after the next pfSense update.

              https://www.netgate.com/blog/deprecation-of-squid-add-on-package-for-pfsense-software

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

              fmoragasF 1 Reply Last reply Reply Quote 1
              • fmoragasF
                fmoragas @michmoor
                last edited by

                @michmoor
                Thanks for the info.

                Do you know if there are any other similar resources available?

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

                  @fmoragas
                  Im familiar with two alternatives.

                  1. Stand up a local proxy on the LAN and redirect clients to that
                  2. Dont use a proxy but instead DNSBL

                  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 1
                  • stephenw10S
                    stephenw10 Netgate Administrator @fmoragas
                    last edited by

                    @fmoragas said in Certificate issue after starts squid proxy:

                    Is it possible to allow browsing, even for machines that do not have the certificate installed?
                    I tried to do this, using the "Bypass Proxy for These Source IPs" field, but I ended up losing the real-time statcs.

                    Yes if those IPs bypass the proxy then you will see no stats from them. You only see stats from traffic that is proxied.

                    It would be better to use a non-transparent proxy so that all clients have to add the proxy to their config. Most client devices will then allow connections to it without adding a cert.

                    The other option is to use peek/slice to view the SNI data for connections which doesn't require a cert. That gives only domain level data though and will likely stop working at some point with the advent of encrypted SNI.

                    Steve

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

                      @stephenw10
                      Bypass Proxy part of the config is only applicable to transparent proxy config anyway i believe
                      The only caveat about using transparent mode is that it will break connectivity as documented by a few of us here: https://redmine.pfsense.org/issues/14390
                      So its highly recommended to use it as an explicit proxy otherwise Squid will break the majority of the outbound flows in transparent mode which otherwise works well enough.

                      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
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        @michmoor said in Certificate issue after starts squid proxy:

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

                        It does depend on what you're connecting to but yeah the 409 error can be painful.

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