Captive Portal Basics
-
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
-
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 :)
-
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 vouchersIf 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 ?
-
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 vouchersExact.
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.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.
-
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 - OKSTEP 2 - ACTIVATE VOUCHERS Click over EDIT CREATED CAPTIVE PORTAL
Click over VOUCHERSEnable X - Enable the creation, generation and activation of rolls with vouchers
Click SAVE - OKSTEP 3 - CREATE AND GENERATE A VOUCHER ROLL Click over VOUCHER ROLLS
Click over ADDRoll # - 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 - OKSTEP 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.htmlClick SAVE - OK
5 - TEST It worked fine
Thanks to all the community again !!!