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

    captive portal with Google Workstation

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 3 Posters 793 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
      last edited by

      Hi, I wanted to configure pfsense to display a captive portal in which to enter Google Workstation credentials to access the Internet. I wanted to know: once I enter these credentials, will the device be registered so it will no longer be necessary to enter them, or will they be requested again after a certain period of inactivity? Thank you

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

        @leonida368
        Who registers what where ?

        I don't know what a "Google Workstation" is (Google makes devices now ?) but you can't grab some personal identification on a captive portal login page from an 'unknown' portal connected user, and then contact a Google API and ask : "Here is the user ID I have, is this ok ?"

        edit : Google Workstation = Google doesn't know what that is neither. Now I'm getting curious ...

        Without entering the rocket science stage, you can do this : FreeRadius on pfSense software for Two Factor Authentication

        You can create your own captive portal login page, and ask a connected user whatever you want, but as soon as these are email addresses and other personal stuff, don't be surprised that no one want to connect to your portal.
        Dealing with the info you've collected is a job you have to do yourself. This means probably some serious adapting of the existing code & scripts.

        A captive portal is meant to be used by people that you don't know, that you don't trust (= you don't want their devices on your trusted LAN), they don't know you, and these visitors just need an "Internet access" for some short time.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          @Gertjan forgive me I meant Google Workspace (formerly Gsuite)

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

            @leonida368

            Let me get this clear : you want to collect the Google account info from some one (login and password to be entered on a captive portal login page) and then have pfSense check up with Google if the account info is valid ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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

              @Gertjan that's right, our client is a school that has a delivery with Google Workspace and all teachers have an account with it. The school director would like access to the Internet via browser to be subject to the inclusion of these credentials in a captive portal

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

                You can setup Google Cloud as an authentication server and then use that.

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

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

                  @stephenw10 ok thanks, in fact, this is exactly the article I intended to study. I just wanted to understand if the captive portal comes out every time after a certain period of inactivity or what the criterion is.
                  I ask you this, because the school has several devices on which various teachers work alternately and therefore they must be able to access from time to time with their Gogle Workspace account

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

                    @leonida368

                    Ah, ok.
                    Something like this : Work or school Google Account ?
                    Which means the account that the potential portal users use has been created by the school.

                    If so, ask the school's Google administrator ? as you'll be needing him.
                    Maybe Google has some API that permits you to do this .... and if so, then yeah, why not.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    L 2 Replies Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      The Captive Portal can be configured to do either.

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

                        @Gertjan said in captive portal with Google Workstation:

                        Ah, ok.
                        Something like this : Work or school Google Account ?
                        Which means the account that the potential portal users use has been created by the school.

                        If so, ask the school's Google administrator ? as you'll be needing him.
                        Maybe Google has some API that permits you to do this .... and if so, then yeah, why not.

                        yes I have already contacted the admin to do it, in the past I have already done it with Packetfence by creating an LDAP client in the Google Workstation admin console and then configuring the join with it. I just wanted to understand if the captive portal comes out every time after a certain period of inactivity or what the criterion is.

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

                          @stephenw10 ah ok. Thanks

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

                            hi @Gertjan thanks for the replies

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