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

    Captive Portal template dialouge box for K-12 school

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 3 Posters 6.0k 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.
    • B Offline
      brcisna
      last edited by

      Hello All,

      Would someone here be able to guide me to a template example for a K-12 school setting?
      In other words a dialouge box  similar to defalt CP but with "Clicking here you agree to the ACME School District terms",,,etc..

      Thank You,
      Barry

      1 Reply Last reply Reply Quote 0
      • W Offline
        wallabybob
        last edited by

        You want authentication in addition to agreeing to the terms?

        1 Reply Last reply Reply Quote 0
        • B Offline
          brcisna
          last edited by

          I only want a fairly simple "You are responsible for your actions using this computer"  with NO authentication.
          This being on the 'pop-up' dialogue box if possible, below the "Welcome to pfsense" From what I have read manually editing this,,gets restored to default on a reboot,though?
          Could you give me a 1.2.3 how to edit this to survive a reboot?
          .  wallabybob

          thank You,
          Barry

          1 Reply Last reply Reply Quote 0
          • W Offline
            wallabybob
            last edited by

            I have not tried this but my first attempt at doing what you ask would proceed along the following lines:

            1. Use a pfSense 2.1 snapshot so I can use the user privileges.
            2. Add a user in System -> User Manager with only one privilege: User - Services - Captive portal login
            3. In a file portal.html create a custom portal page of the form:```

            <center>

            ACME School District terms of internet use

            </center>

            --------- Insert terms here -----

            <form method="post" action="$PORTAL_ACTION$">

            Click the Continue button below if you accept the above terms of internet use:

            </form>

            where _cpuser_ and _cppassword_ in portal.html are replaced by the username and password (respectively) of the user specified in step 2.
            4\. Upload the file portal.html through the Portal page contents field of the _Services_ -> _Captive Portal_ page.
            5\. Test and report back.
            1 Reply Last reply Reply Quote 0
            • B Offline
              brcisna
              last edited by

              wallabybob,

              Thank You. The code/ CP login page you provided worked perfect for our school's needs. I simply edited the file you placed here with a few simple "terms of service " and placed the cpuser name & password were needed to be and the setup works like a champ.
              Exactly what we need, a single button to "continue" which (hopefully) is idiot proof.

              Barry

              1 Reply Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate
                last edited by

                Just curious, but why not just use the "No Authentication" mode of 2.1's captive portal?

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wallabybob
                  last edited by

                  @Derelict:

                  Just curious, but why not just use the "No Authentication" mode of 2.1's captive portal?

                  Sorry I didn't reply sooner.
                  1. Despite reading the voucher setup page a few times a while ago I had forgotten about that option.
                  2. I don't know what that "No Authentication" mode means - perhaps it displays the portal "home" page then allows access. This is possibly not quite was originally requested:
                  @brcisna:

                  In other words a dialouge box  similar to defalt CP but with "Clicking here you agree to the ACME School District terms",,,etc..

                  3. At the time I didn't have the capability of testing "No Authentication" mode to discover more precisely what it meant.
                  4. The solution I proposed was pretty easy to implement.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    brcisna
                    last edited by

                    Hello,

                    We are currently running version pfSense-2.0.1-RELASE (which does have the "no authentication" radio button),,,,but more,,, wanted a "TOS" or "disclaimer"  to be displayed to our likeing, which wallabybob,,supplied.

                    thanks,

                    Barry

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