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

Authenticating Users with Google Cloud Identity

General pfSense Questions
3
103
9.3k
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
    stephenw10 Netgate Administrator
    last edited by May 18, 2024, 2:22 PM

    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 May 19, 2024, 8:33 PM Reply Quote 0
    • L
      leonida368 @stephenw10
      last edited by May 19, 2024, 8:33 PM

      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
      • S
        stephenw10 Netgate Administrator
        last edited by May 19, 2024, 9:36 PM

        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 May 19, 2024, 9:38 PM Reply Quote 0
        • L
          leonida368 @stephenw10
          last edited by May 19, 2024, 9:38 PM

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

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by May 19, 2024, 10:21 PM

            Yes, that's fine for importing a cert.

            L 1 Reply Last reply May 20, 2024, 2:26 PM Reply Quote 0
            • L
              leonida368 @stephenw10
              last edited by May 20, 2024, 2:26 PM

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

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by May 20, 2024, 2:45 PM

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

                L 1 Reply Last reply May 20, 2024, 2:52 PM Reply Quote 0
                • L
                  leonida368 @stephenw10
                  last edited by May 20, 2024, 2:52 PM

                  @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
                  • S
                    stephenw10 Netgate Administrator
                    last edited by May 20, 2024, 3:23 PM

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

                    L 1 Reply Last reply May 20, 2024, 3:32 PM Reply Quote 0
                    • L
                      leonida368 @stephenw10
                      last edited by May 20, 2024, 3:32 PM

                      login-to-view

                      L 1 Reply Last reply May 20, 2024, 3:35 PM Reply Quote 0
                      • L
                        leonida368 @leonida368
                        last edited by May 20, 2024, 3:35 PM

                        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
                        • S
                          stephenw10 Netgate Administrator
                          last edited by May 20, 2024, 4:07 PM

                          @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 May 20, 2024, 4:12 PM Reply Quote 0
                          • L
                            leonida368 @stephenw10
                            last edited by May 20, 2024, 4:12 PM

                            yes

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by May 20, 2024, 4:18 PM

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

                              L 1 Reply Last reply May 20, 2024, 4:27 PM Reply Quote 0
                              • L
                                leonida368 @stephenw10
                                last edited by May 20, 2024, 4:27 PM

                                unfortunately nothing

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by May 20, 2024, 5:15 PM

                                  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 May 21, 2024, 6:51 AM Reply Quote 0
                                  • L
                                    leonida368 @stephenw10
                                    last edited by May 21, 2024, 6:51 AM

                                    hi, the Certificate field cannot remain empty

                                    L S 2 Replies Last reply May 21, 2024, 7:15 AM Reply Quote 0
                                    • L
                                      leonida368 @leonida368
                                      last edited by May 21, 2024, 7:15 AM

                                      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
                                      • S
                                        stephenw10 Netgate Administrator @leonida368
                                        last edited by May 21, 2024, 11:55 AM

                                        @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
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by May 21, 2024, 11:57 AM

                                          Like:
                                          login-to-view

                                          L 1 Reply Last reply May 21, 2024, 4:00 PM Reply Quote 1
                                          18 out of 103
                                          • First post
                                            18/103
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.