Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Import user database and link to MAC address

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 5 Posters 9.5k 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.
    • B
      bushtor
      last edited by

      Hi,

      First, 'captive portal' is mostly heard in a wireless scenario, but it does work the same way with wired clients…?

      I have a CSV file with usernames and passwords for captive portal users.  How do I import these into pfsense's local user database?

      Also does it exist a way to link a captive portal user to his/her computer nic's MAC address?  Or should I do this with DHCP mappings..?

      Thanks for comments and info

      regards

      Tor

      1 Reply Last reply
      Reply Quote 0
      • H
        hoba
        last edited by

        Yep, you can run that as wired links just in the same way. You should use the static ARP option in combination with DHCP-Mappings at the interface you run the captive portel on to do the static assignments (Services>DHCP , the interface tab the CP is assigned to).

        For importing a CSV you have to create some kind of converter to add your entires to the config.xml and reupload it. I would suggest creating one CP user and then download the config.xml at diagnostics>backup/restore. View the file and the fragment of the CP Users. Then find a way to to reformat your CSV to the correct format, insert it there and reupload it.

        1 Reply Last reply
        Reply Quote 0
        • A
          angelcabello
          last edited by

          I have modify the captive portal to allow import a csv file with users and passwords, how can I submit this to be included in the distributions??

          1 Reply Last reply
          Reply Quote 0
          • S
            sullrich
            last edited by

            I've got an email into the Captive Portal author asking if we can send patches upstream.  All of Captive Portal innovation happens in m0n0wall and we simply benefit for free (so to speak).

            In the meantime, please post the patch here in diff -rub format.

            1 Reply Last reply
            Reply Quote 0
            • B
              buraglio
              last edited by

              @angelcabello:

              I have modify the captive portal to allow import a csv file with users and passwords, how can I submit this to be included in the distributions??

              I would be interested in seeing that patch as well.

              https://www.forwardingplane.net/

              1 Reply Last reply
              Reply Quote 0
              • A
                angelcabello
                last edited by

                @buraglio:

                I would be interested in seeing that patch as well.

                I have sent the pach to Scott (I think so) If you give me your e-mail I will send you the file.

                1 Reply Last reply
                Reply Quote 0
                • S
                  sullrich
                  last edited by

                  @angelcabello:

                  @buraglio:

                  I would be interested in seeing that patch as well.

                  I have send the pach to Scott (I think so) If you give me your e-mail I will send you the file.

                  Haven't seen anything.  sullrich@gmail.com

                  1 Reply Last reply
                  Reply Quote 0
                  • B
                    buraglio
                    last edited by

                    @angelcabello:

                    @buraglio:

                    I would be interested in seeing that patch as well.

                    I have sent the pach to Scott (I think so) If you give me your e-mail I will send you the file.

                    nick@buraglio.com

                    thanks,

                    nb

                    https://www.forwardingplane.net/

                    1 Reply Last reply
                    Reply Quote 0
                    • S
                      sullrich
                      last edited by

                      Got it.  I've sent it to the m0n0wall Captive portal author.

                      1 Reply Last reply
                      Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                      Privacy Policy · Cookie Policy