Captive Portal & pfSense, can they both meet this requirement?



  • Hi, currently I have 2 clients. 1 is a cafeteria and 1 is a mall.
    The cafeteria person needed a hotspot system, so that users get a voucher entry page and they enter the voucher code and get access for 1 hour free.
    I did this project using UBNT UniFi, as it has voucher system. So, I simply generated 5000 vouchers in the UniFi Panel and gave it to the cafeteria guy, he writes the voucher code to the customers in a small paper and give them with their menu while serving.

    But this mall customer is different. He needs the splash page to ask for Name, Email, Mobile. He needs the voucher code to be sent in SMS.
    And also, it should have paid packages like 1 hour = XX$ , 2 hours = XX$, 12 hours = XX$, likewise.

    And lets say a customer is connected and using his free 30 mins account, then when he closes 25th minute, a warning popup should show up asking him to pay for subscirption to extend his session time more.

    So, basically I need a portal, which should manage plans, connected customers, vouchers, coupons, packages, SMS OTP Authentication and Online Payment Gateway for India.

    For the AP, we will mostly use UBNT UniFi AC or else Ruckus or Cisco wireless AP.

    Let me know, if this is something I can achieve with pfSense, or is there an readymade solution.


  • Banned

    No such thing in pfSense without lots of custom coding. Plus, all this SMS stuff is pretty much country or even operator specific; afraid you won't gain much interest in the community in coding something like this for free. Better post a budget in the bounties forum and see if someone responds.



  • Oh :(
    Okay, so the basic pfsense with captive portal does what ?
    Splash Page, free X minutes usage, pay for packages, etc ?

    That it does ?



  • And also, it should have paid packages like 1 hour = XX$ , 2 hours = XX$, 12 hours = XX$, likewise.

    You can easily build up user groups and set even for each group a different lease time, so you could drive
    it about the user groups you were setting up.  :D

    Related or owed to your german language skills you should be visit this page here where you will find
    many different tutorials about pfSense.  ;)

    CaptivePortal with vouchers over Website, local printer and SMS
    Maintaining Captive Portal vouchers online (SMS)
    pfSense with dual WiFi radio
    VLAN routing with pfSense



  • Hi sir, so basically what is pfsense ?
    Whats its role in a hotspot system ?

    Sorry, Im very new to this forum.



  • Hi sir, so basically what is pfsense ?

    pfSense is a software based firewall, that can be sorted with many features, options and functions
    over a packet system. It can be sorted with Squid & SuidGuard for http proxy function, ClamAV
    fo AV scanning and snort for iDS/IPS tasks to perform as a real UTM device. From start it comes
    with a Captive Portal and voucher system to realize a HotSpot for coffee bars and every other public
    location where WLAN should be served to public or private users.

    Whats its role in a hotspot system ?

    For a WiFi HotSpot it can do many things!

    • Captive Portal with voucher system
    • firewall ALCs and rules to regulate and secure the network traffic
    • client isolation of all WiFi clients
    • VLAN routing during and for many different VLANs with different SSIDs are inside
    • User group management and voucher generation
    • Logging all client traffic during Squid & SquidGuard
    • Traffic shaping for all different WiFi clients
    • Securing and encrypting the WiFi traffic and clients with Certificates over FreeRadius server


  • So basically it already has the captive portal and voucher system, amazing!
    And many SMS and payment gateways must have been integrated too ?
    So, can I get the links, so I can simply see how its done and replace it with my API.

    And I started the download, its an iso file of 108MB.
    So, it needs to be installed on a windows PC or Linux PC and the system needs to be always on to serve the hotspot ?


  • Banned

    No clue what you are talking about really. There are no SMS gateway and payment APIs anywhere in pfSense CP.



  • Okay, I mean, those who use pfsense, what they do ?


  • Banned

    Uhm… when you require a complex commercial solution for specific purpose not reusable anywhere else, you usually don't wait for someone to provide it for free. Since, most people have about zero use for CP with online payment gateway and codes sent via some Indian mobile operator... There are millions of programmers in India for hire, do it. You of course can also talk to ESF and get this implemented for you on a commercial basis so that the money goes towards this project.



  • Yes, I can hire, but I need to understand, what exactly I ask the developer.
    Simply give them pfsense source and ask to integrate sms and payment or anything else.



  • And many SMS and payment gateways must have been integrated too ?

    There is no payment gateway! We were talking about the following, "sending vouchers as
    SMS" to the clients, and nothing else.

    So, can I get the links, so I can simply see how its done and replace it with my API.

    The solution shown under this link is written in PHP and I really don´t know what you can do with it rewriting or what ever.

    The only thing is that many peoples inside of an german administrator forum are using this together
    with pfSense to send the vouchers as a SMS to the clients! Not more and not less.

    And I started the download, its an iso file of 108MB.

    ??? Hm, I really have downloaded it twice and it is only 1 Megabyte (MB) size!
    Voucher Generator

    So, it needs to be installed on a windows PC or Linux PC and the system needs to be always on to serve the hotspot ?

    Description
    The Software manages Voucher for the pfSense Captive Portal in a MySQL-Database