Authenticating Users with Google Cloud Identity
-
Check the state table when you try to connect. Do you see states for the in and out connections from Stunnel?
If that's difficult to see I would try running a pcap on WAN filtered by port 636 to make sure there is at least a TCP connection happening.
-
hi @stephenw10 and thanks for the reply
Since I have worked with other firewalls up to now, I don't know PFsense very well yet. Could you tell me how to check the state table regarding Stunnel and do a pcap on the WAN filtered by port 636?
I would also kindly like to know if I did the right thing with regards to uploading the certificate and related key downloaded from the LDAP app created in the Google Workspace admin console:
I opened the certificate's .crt file with notepad and copied all the text (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) and pasted it into the Certificate text box given leaving as Certificate Type: X.509 (PEM).
Same thing for the key file that I pasted into the Private key data text box.
I did well?A thousand thanks
-
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 -
Ok, that would do it!
Try to start it with the button there. Then check the system logs if it fails to start.
-
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 -
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.
-
I understand, but is the procedure with which I pasted the certificate file correct?
-
Yes, that's fine for importing a cert.
-
Hi @stephenw10 , Where can I see the cause of Stunnel not starting?
-
Well as I suggested I would try to start the service then check the logs.
-
@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
-
How do you have it configured? What happens when you try to start it?
-
-
both in Services/Stunnel and in Status/Services if I click on the arrow to start it after a while it returns again
-
@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?
-
yes
-
Try setting logging to DEBUG, see if that generates something when it tries to start.
-
unfortunately nothing
-
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.
-
hi, the Certificate field cannot remain empty