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

    freeradius limit speed per user

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 3 Posters 4.3k Views 3 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.
    • E Offline
      ed-tech
      last edited by

      i just want to control the speed of my client based on username so the only way to do that i think its with pppoe

      1 Reply Last reply Reply Quote 0
      • E Offline
        ed-tech
        last edited by

        this is how i made it to work for now: In captive protal add mac address for that user and speed limit (not sure why it only works with mac adress), in free radius Users the Amount of Download and Upload Traffic works but the speed limit is not working. So the speed limit works with captive protal and the amount of traffic works in freeradius Users

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

          If you do not have many users, and every user has it's own access firewall rule, you could add - manually - to each rule a 'pipe' that controls the speed of that user.

          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
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            mpd5 should do the rate limiting here as long as it's passed the correct attributes by radius.
            For example: https://forum.netgate.com/topic/141034/rate-limit-on-radius-reply-attributes-for-pppoe-connections-not-working

            I was pretty sure I had tested this at some point but looking back I may only have tested radius accounting.

            Steve

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              ed-tech
              last edited by

              Its interesting because when i add a mac address from freeradius for a user with speed limit here is what is see on the LIMITER INFO: Limiters: No limiters were found on this system. But when i add a mac address on the captive portal with speed limit here is what i see on the LIMITER INFO: Limiters:
              02002: 1.700 Mbit/s 0 ms burst 0
              q133074 100 sl. 0 flows (1 buckets) sched 67538 weight 0 lmax 0 pri 0 droptail
              sched 67538 type FIFO flags 0x0 16 buckets 0 active
              02003: 1.700 Mbit/s 0 ms burst 0
              q133075 100 sl. 0 flows (1 buckets) sched 67539 weight 0 lmax 0 pri 0 droptail
              sched 67539 type FIFO flags 0x0 16 buckets 0 active

              I dont know why it works with captive portal and not with freeradius

              1 Reply Last reply Reply Quote 0
              • E Offline
                ed-tech @stephenw10
                last edited by

                @stephenw10 so it looks like it needs some modification to work, now its working with those modifications

                1 Reply Last reply Reply Quote 0
                • stephenw10S Offline
                  stephenw10 Netgate Administrator
                  last edited by stephenw10

                  You have tested that and it's working for you?

                  Seems like we would only need that dictionary file added to Freeradius.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    ed-tech
                    last edited by

                    Yes its working for me

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S Offline
                      stephenw10 Netgate Administrator
                      last edited by

                      Ah good to hear!

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S Offline
                        stephenw10 Netgate Administrator
                        last edited by

                        Opened a feature request: https://redmine.pfsense.org/issues/11102

                        Add a comments there if more is needed.

                        Steve

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