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

    Custom webgui for user manager

    Scheduled Pinned Locked Moved webGUI
    5 Posts 3 Posters 920 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.
    • K
      kenny.t
      last edited by

      Hi, I'm looking for a way to create a custom webgui for some functions in user manager only. Is the only way about it via package development?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @kenny.t
        last edited by

        Hi,

        If it's just for you, no package building is needed. Making a package just adds to the complexity.

        You can use exiting packages, so you can learn how to add menus into the pfSense GUI menu, which will bring you to your 'page' where you do your own 'user' stuff.

        Btw :
        Some serious knowledge about PHP, and how the GUI of pfSense is essential.
        The source code will be your manual.

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

        K 1 Reply Last reply Reply Quote 1
        • K
          kenny.t @Gertjan
          last edited by

          @gertjan

          Thanks for the prompt & concise reply!

          I'm looking to create a basic webgui to manage my premise's guest wifi portal. The current rough idea involves a custom webgui to create user accounts and determine their expiration dates via a drop down menu.

          I tried using the captive portal and its voucher system but it's not what I'm looking for in managing the guests wifi access.

          Is there a place where I can start learning how to modify existing packages for these purposes?

          JeGrJ GertjanG 2 Replies Last reply Reply Quote 0
          • JeGrJ
            JeGr LAYER 8 Moderator @kenny.t
            last edited by

            @kenny-t said in Custom webgui for user manager:

            I tried using the captive portal and its voucher system but it's not what I'm looking for in managing the guests wifi access.

            Captive Portal has the ability to e.g. use FreeRadius as a backend. Radius can use MySQL or LDAP as supporting database. If you' build on top of that (or upload custom portal pages with added PHP etc.) you could dock it to an external application. So for example you could set up your "admin GUI to manage users" with some framework that also utilizes Radius/LDAP or Radius/MySQL and then dock pfSense portal to that external Radius/SQL or Radios/LDAP instance and you'd have your guest portal without any modifications on pfSense itself.

            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

            1 Reply Last reply Reply Quote 1
            • GertjanG
              Gertjan @kenny.t
              last edited by Gertjan

              @kenny-t said in Custom webgui for user manager:

              Is there a place where I can start learning how to modify existing packages for these purposes?

              As it is open source .... github pfsense.

              There is a solution where you don't have to look at pfSense at all.
              You use a captive portal. Activate it on pfSense and you're close to done.
              As the identification mechanise,, don't use the build in user manager, but Freeradius. It's a pfSense package. Read all about how to use Freeradius and have it use a SQL 'scratchpad' storage.
              Now, all you have to is making a front end that stores user credentials into the SQL database.
              That looks very much like any other (a couple of billion) web site on the Internet. They are nearly all based on a web server, a bunch of PHP scripts and a SQL back end.
              Now, all you have to do is learning how (Free)Radius works .... that's a though one, but still far more easier as learning what pfSense is/does from a programming point of view.

              @edit : busted by @JeGr ;)

              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 1
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.