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

    Captive Portal Basics

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 1.3k 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.
    • N
      newest_newbie
      last edited by

      Hello folks.

      Well sometimes the basic it's harder than the complex.

      I was able to run captive portal, block access and so on.

      My problem is the understanding of basic of Captive Portal Vouchers.

      I understood PF will generate a list of vouchers.
      But I don't see where to get it.

      At the config it asks for :

      "Synchronize Voucher Database IP - IP address of master nodes webConfigurator to synchronize voucher database and used vouchers from.
      NOTE: this should be setup on the slave nodes and not the primary node!"

      Should I have an MySql server or something to get these vouchers ?
      What is a master node ?
      WebConfigurator looks is the web interface that I am already accessing, right ?

      And after all, how to get the list ?

      A bit confusing to me.

      TIA

      1 Reply Last reply Reply Quote 0
      • The Computer GuyT
        The Computer Guy
        last edited by

        When you create the voucher roll, have a look at the three icons to the right of the roll. One of these lets you download the vouchers as a .csv file :)

        1 Reply Last reply Reply Quote 0
        • N
          newest_newbie
          last edited by

          OK Good ! I found it.  :D

          To generate the voucher I must enable it.

          Services/ Captive Portal / MY PORTAL / Vouchers

          Create, Generate and Activate Rolls with Vouchers
          Enable            X    Enable the creation, generation and activation of rolls with vouchers

          If I do it, it says :
          **The following input errors were detected:

          The field Synchronize Voucher Database IP is required.
              The field Sync port is required.**

          Any tips ?

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

            @newest_newbie:

            OK Good ! I found it.  :D
            To generate the voucher I must enable it.

            Services/ Captive Portal / MY PORTAL / Vouchers

            Create, Generate and Activate Rolls with Vouchers
            Enable            X    Enable the creation, generation and activation of rolls with vouchers

            Exact.
            If you want to use vouchers, you should activate the voucher sub-system first.
            Only then the rest of the page "Create, Generate and Activate Rolls with Vouchers" becomes visible.

            @newest_newbie:

            If I do it, it says :
            **The following input errors were detected:

            The field Synchronize Voucher Database IP is required.
                The field Sync port is required.**
            Any tips ?

            You only fill in this part : "Voucher Database Synchronization" if you want to have the vouchers subsystem synchronized with another pfSense installation (which is quit rare as a setup). In your case, leave all entries empty in this section. As explained, the current system should be a 'slave' of the (other) 'master' setup.

            Btw : I think that you never filled in what so ever, but our 'intelligent' browser will auto-fill some entries - check always everything before you validate a page.

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

            1 Reply Last reply Reply Quote 0
            • N
              newest_newbie
              last edited by

              Btw : I think that you never filled in what so ever, but our 'intelligent' browser will auto-fill some entries - check always everything before you validate a page.

              I didn't try to mess with cookies and stuff like that - just changed from my loved Firefox to Microsoft Edge… and it worked.
              There should be something wrong.

              So I decided to show all my steps just in case.

              STEP 1 - CREATE CAPTIVE PORTAL ZONE >>> X - Enable Captive Portal

              INTERFACES - OPT1
              AUTHENTICATION METHOD - X LOCAL USER MANAGER/VOUCHERS
              Click SAVE - OK

              STEP 2 - ACTIVATE VOUCHERS Click over EDIT CREATED CAPTIVE PORTAL
              Click over VOUCHERS

              Enable    X - Enable the creation, generation and activation of rolls with vouchers
              Click SAVE - OK

              STEP 3 - CREATE AND GENERATE A VOUCHER ROLL Click over VOUCHER ROLLS
              Click over ADD

              Roll # - 0 (zero)
              Minutes per ticket - 10 (minutes only)
              Count - 5 (vouchers code)
              Click SAVE - OK - Voucher created - a new roll line appear at screen
              Click GENERATE - a button besides - asked for where to save a .csv file with vouchers codes - OK

              STEP 4 - CUSTOMIZE CAPTIVE PORTAL PAGE Click over EDIT CREATED CAPTIVE PORTAL

              Created a custom file VOUCHER.HTML to only ask voucher code

              ENTER YOU VOUCHER

              <form method="post" action="$PORTAL_ACTION$">
                      <======= DELETED THIS LINE FROM SAMPLE
                  <======= DELETED THIS LINE FROM SAMPLE

              </form>

              ===============
              Look down for HTML Page Contents / Portal page contents
              Click over SEARCH and load voucher.html

              Click SAVE - OK

              5 - TEST It worked fine

              Thanks to all the community again !!!

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