Captive Portal template dialouge box for K-12 school



  • 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



  • You want authentication in addition to agreeing to the terms?



  • 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



  • 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.


  • 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


  • LAYER 8 Netgate

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



  • @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.



  • 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


Log in to reply