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

    Freeradius3 accounting bugs

    Scheduled Pinned Locked Moved Captive Portal
    40 Posts 9 Posters 5.9k Views 5 Watching
    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.
    • J Offline
      jaspras
      last edited by

      Alright try this

      Set Accounting to Stop/Start (FreeRadius)

      Enable Reauthenticate connected users every minute

      in radcheck table

      –---------------------------------------
      john | Simultaneous-use | := | 1

      forget about noresetcounter

      also works for me

      1 Reply Last reply Reply Quote 0
      • F Offline
        FrottyZ
        last edited by

        Hi, thanks for the replies.
        I will test Start/Stop radius accounting again, but as I said before, this makes users timeout since Last Activity is broken.

        @jaspras If you say it works for you, the only possibility I can think about is a regression in the update from freeradius2 package to 3.
        Then my only option seems to be a clean reinstall.

        1 Reply Last reply Reply Quote 0
        • M Offline
          mke
          last edited by

          When I paste that exactly as below, freeradius stops working some this must be syntax

          john | Simultaneous-use | := | 1

          P 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan
            last edited by

            @mke:

            When I paste that exactly as below, freeradius stops working some this must be syntax

            john | Simultaneous-use | := | 1

            Pasting where ?  ;D

            I strongly advise you to use phpmyadmin.
            Or you could use the mysql command line to INSERT, the web is filled up with zillion examples how to do that.

            No "help me" PM's please. Use the forum, the community will thank you.

            1 Reply Last reply Reply Quote 0
            • M Offline
              mke
              last edited by

              here

              ![Screen Shot 2018-04-30 at 7.27.33 PM.png](/public/imported_attachments/1/Screen Shot 2018-04-30 at 7.27.33 PM.png)
              ![Screen Shot 2018-04-30 at 7.27.33 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2018-04-30 at 7.27.33 PM.png_thumb)

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

                This is my source : https://www.google.com/search?client=firefox-b&ei=rCDoWsrZPMamsAGTxL64Bg&q=FreeRadius++Simultaneous-Use&oq=FreeRadius++Simultaneous-Use&gs_l=psy-ab.3..0i7i30i19k1l4j0i7i10i30i19k1j0i7i30i19k1j0i19k1l3j0i30i19k1.7776.7776.0.8408.1.1.0.0.0.0.122.122.0j1.1.0….0...1.1.64.psy-ab..0.1.120....0.LJD31UiPcwU (sorry, you have to read a little bit, many people are posting about how not to do it …)

                So, after some reading, you'll discover that you should add at the top of the "users file" this :

                DEFAULT Simultaneous-Use := 1
                 Fall-Through = Yes
                

                This can be done using the FreeRadius package like this (edit the first user !) and then add this : see image.

                Over there is also explained why and how to use the command separator, the "|".

                Btw : another solution would be using a sql table, and setting for each user the "Simultaneous-Use := 1" or assign user to a group and make that group using "Simultaneous-Use := 1". This all works.

                simulusage.PNG
                simulusage.PNG_thumb

                No "help me" PM's please. Use the forum, the community will thank you.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mke
                  last edited by

                  The option you did on the screenshot also does not work

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

                    If you edited the first user on the Radius list, you should have this when you inspect the "users" file :
                    see image.

                    I limit users to 2.

                    edit : I also limit every user to 200 Mbytes a day.

                    radiusfree.PNG
                    radiusfree.PNG_thumb

                    No "help me" PM's please. Use the forum, the community will thank you.

                    P 1 Reply Last reply Reply Quote 0
                    • M Offline
                      mke
                      last edited by

                      Yep, it does not work

                      Moreover what I want to accomplish is different limit per user.

                      Also I do have checked "Send RADIUS accounting packets to the primary RADIUS server." and start/stop freeradius

                      ![Screen Shot 2018-05-16 at 2.59.42 PM.png](/public/imported_attachments/1/Screen Shot 2018-05-16 at 2.59.42 PM.png)
                      ![Screen Shot 2018-05-16 at 2.59.42 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2018-05-16 at 2.59.42 PM.png_thumb)

                      1 Reply Last reply Reply Quote 0
                      • ontzuevanhussenO Offline
                        ontzuevanhussen
                        last edited by

                        I think you are must studying how to upload picture on forum negate.

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

                          When you enjoy digging up burried threads a bit too much
                          alt text

                          1 Reply Last reply Reply Quote 0
                          • KOMK Offline
                            KOM
                            last edited by

                            Those are placeholders from when the old forum transitioned to the new one. Images from old posts were lost.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Aubin @jaspras
                              last edited by

                              @jaspras
                              Can you help me with the settings for accounting with MySQL database?

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                Pepito Payet @mke
                                last edited by

                                @mke or should we insert this parameter john | Simultaneous-use | := | 1 please ?

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  Pepito Payet @Gertjan
                                  last edited by

                                  @Gertjan can you explain to me how you make it work please?

                                  GertjanG 1 Reply Last reply Reply Quote 0
                                  • GertjanG Offline
                                    Gertjan @Pepito Payet
                                    last edited by Gertjan

                                    @Pepito-Payet

                                    For the Radius user that you want to limit to "5" max, add :

                                    44c0db99-8e3c-48e8-a850-a0bb83ff9275-image.png

                                    but don't take my words for it.
                                    Fact check this, as its easy to test : get 6 phones, login with all o them. The 6 phone/login should be refused (or way more funnier : it will be allowed, and the first one will be thrown of, the portal ^^).

                                    For myself, I actually don't use it anymore.
                                    Keep us posted.

                                    edit : I've read the thread again.
                                    My proposal - today, above, is : adding some stuff in the GUI.

                                    If you use MySQL (MariaDB) as a Radius "storage", and you know how to add / edit the SQL tables, you can also add the "Simultaneous-Use" criteria into of one the tables. For the format and how to, check with world's most notorious software manual : the one of freeradius.

                                    Take note that by default the freeradius users are not been taken from the SQL tables, but from a flat ASCI file : this one :

                                    3514d99f-193c-4b7d-a134-0ddf20307d08-image.png

                                    and you can see your

                                    DEFAULT Simultaneous-Use := 5 
                                     Fall-Through = Yes
                                    

                                    No "help me" PM's please. Use the forum, the community will thank you.

                                    P 2 Replies Last reply Reply Quote 0
                                    • P Offline
                                      Pepito Payet @Gertjan
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        Pepito Payet @Gertjan
                                        last edited by

                                        @Gertjan I tried but it doesn't work... maybe I have a misconfiguration of the portal captive elsewhere?

                                        GertjanG 1 Reply Last reply Reply Quote 0
                                        • GertjanG Offline
                                          Gertjan @Pepito Payet
                                          last edited by Gertjan

                                          @Pepito-Payet

                                          Gime 30 minutes and I'll post a step by step "what to do".


                                          I created a user, just a use name "cuisine" and a password :

                                          50503353-189f-4012-87ff-323ce924c5c0-image.png

                                          and I added :

                                          b529efb4-e965-443e-bbe0-6a3bc7718925-image.png a8dc8dce-da93-45d5-af8a-1881a0f5923e-image.png

                                          DEFAULT Simultaneous-Use := 1 | Fall-Through = Yes
                                          

                                          and Save.

                                          Check that FreeRadius successfully restarted. You can do this on the dashboard.

                                          I presume you've set up the portal use the freeradius auth back-end, not the pfSense user database.

                                          You can test drive the authentification here : Diagnostics -> Authentication
                                          You have to select the Freeradius backend, not the "Local Database".

                                          Now : connect one user to the portal using this user name and check he was logged in correctly (dash board and portal auth log).

                                          A second user using the same user name should get the "portal error login page", this page is the same as the portal login page, but shows one thing more : an error message :
                                          I made this error message stand out in red :

                                          You are already logged in - access denied

                                          And this was also logged :

                                          Status > System Logs > Authentication > Captive Portal Auth

                                          7a500c5c-d675-4e42-a88d-fbe64ad49b8c-image.png

                                          No "help me" PM's please. Use the forum, the community will thank you.

                                          P 4 Replies Last reply Reply Quote 0
                                          • P Offline
                                            Pepito Payet @Gertjan
                                            last edited by

                                            @Gertjan Thank you very much 🙏

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