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

    Authenticating Users with Google Cloud Identity

    Scheduled Pinned Locked Moved General pfSense Questions
    103 Posts 3 Posters 15.6k 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.
    • L
      leonida368 @leonida368
      last edited by

      maybe I found it: Stunnel is not started!
      I was suspicious of the fact that in Stunnel there is a "Start service" arrow and then in Status / Services it says Stopped. How come? How can I solve it? Thank you

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Ok, that would do it!

        Try to start it with the button there. Then check the system logs if it fails to start.

        L 1 Reply Last reply Reply Quote 0
        • L
          leonida368 @stephenw10
          last edited by

          Hi, ok I'll check, in the meantime if you kindly answer me to a previous question I asked, i.e. if I did the right thing regarding the uploading of the certificate and the related key downloaded from the LDAP app created in the Google Workspace administration console:
          I opened the certificate .crt file with notepad and copied all the text (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) and pasted into the Certificate text box initially given as Certificate Type: X.509 (PEM).
          Same thing for the key file I pasted into the Private Key Data text box.
          Thank you

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            That's the Google CA cert they are using for your domain?

            pfSense needs that to trust the LDAP server cert but it shouldn't need the key. You'd only need that to create certs from the CA. So only if you need to create a client cert perhaps.

            L 1 Reply Last reply Reply Quote 0
            • L
              leonida368 @stephenw10
              last edited by

              I understand, but is the procedure with which I pasted the certificate file correct?

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Yes, that's fine for importing a cert.

                L 1 Reply Last reply Reply Quote 0
                • L
                  leonida368 @stephenw10
                  last edited by

                  Hi @stephenw10 , Where can I see the cause of Stunnel not starting?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Well as I suggested I would try to start the service then check the logs.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      leonida368 @stephenw10
                      last edited by

                      @stephenw10 said in Authenticating Users with Google Cloud Identity:

                      Well as I suggested I would try to start the service then check the logs.

                      Reply

                      I find Stunnel only in System/General and it only affects the installation phase. Then I don't see it anywhere else

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        How do you have it configured? What happens when you try to start it?

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          leonida368 @stephenw10
                          last edited by

                          3a9b3cfe-0072-446a-ab1e-f7bd7dfc772a-image.png

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            leonida368 @leonida368
                            last edited by

                            both in Services/Stunnel and in Status/Services if I click on the arrow to start it after a while it returns again

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              @leonida368 said in Authenticating Users with Google Cloud Identity:

                              https://docs.netgate.com/pfsense/en/latest/recipes/auth-google-gsuite.html

                              Ok so reviewing that it is a cert and not a CA cert. So did you import it with the key as described there?

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                leonida368 @stephenw10
                                last edited by

                                yes

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Try setting logging to DEBUG, see if that generates something when it tries to start.

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    leonida368 @stephenw10
                                    last edited by

                                    unfortunately nothing

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Does it start correctly if you don't set a cert at all?

                                      Otherwise check if you have something else listening on port 1636 already for some reason.

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        leonida368 @stephenw10
                                        last edited by

                                        hi, the Certificate field cannot remain empty

                                        L stephenw10S 2 Replies Last reply Reply Quote 0
                                        • L
                                          leonida368 @leonida368
                                          last edited by

                                          Up until last year I used Packetfence to do this. Even if it is a different product (it is a nac not a firewall) for better or worse the authentication with Google Workspace worked, but this involved the simultaneous presence of Packetfence for authentication and PFSense as a firewall and furthermore Packetfence registers a device with the user who authenticates and then the captive portal no longer appears on that device. Instead I would have liked to do everything with PFsense but I find it hard....

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator @leonida368
                                            last edited by

                                            @leonida368 said in Authenticating Users with Google Cloud Identity:

                                            the Certificate field cannot remain empty

                                            It throws an error when you try?

                                            You have to have a client cert for Google Auth to accept it but Stunnel should start OK without a cert defined there. If it does then we know the problem is with the certificate.

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