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

    Captive Portal + Radius Server : Create a generated users list

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 717 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.
    • M
      moelharrak
      last edited by

      Hi all,
      I Configured captive portal using FreeRadius Server for authentication , it is working how however I have 3 questions if someone can help:
      1- Is the any method to generate a list of users (Like we can do with vouchers) instead of creating one by one.?
      2- How to create account that expired after a specific time?, I did create an account that expired after 30 min and even I selected "forever" for "time period" , I still can use the same account the day after it expired.
      3- Is there any way to delete expired users from database in both cases Local Database and FreeRadius Server?

      F 1 Reply Last reply Reply Quote 0
      • F
        free4 Rebel Alliance @moelharrak
        last edited by free4

        hi,

        1. no.
          you could however create your own system that generates users and insert them into the mysql DB

        2. it is possible, using some tweaks in the freeradius configuration. This forum is not for freeradius, so I won't detail many things here, but in short you could know the login date for each user(using accounting), then only accept logins having loginDate<30 minutes in the past. you can do that by changing the SQL queries that freeradius make on the database

        anyway, this is purely freeradius configuration.

        1. no, but you could use an external script to do that
        1 Reply Last reply Reply Quote 0
        • M
          moelharrak
          last edited by

          Hi,
          Thanks for your replay.
          I have another question I created two captive portal zones (Two VLANs), and I need to know if in FreeRadius Server can separate which users to use for each zone?Because what I noticed is that the users created can be used for any WLAN.

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

            @moelharrak said in Captive Portal + Radius Server : Create a generated users list:

            two captive portal zones (Two VLANs),

            If you use the same FreeRadius instance for both zones, then, yeah : users can use the credentials on both zone.

            6e0d3aa4-df15-4a53-8940-b03487d71cab-image.png

            Up to you to create a second FreeRadius instance.

            The hostname IP, authentication port accounting port and radius NAS IP attribute have to be different of course.

            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
            • M
              moelharrak
              last edited by

              Hi ,
              Thank you for your reply , I have two instances but still can't see where can I separate users for each zone, Because when I create users I see nothing that mention to whom the users will be applied to.
              Selection_225.png

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