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

Control Users Bandwidth in CP

Scheduled Pinned Locked Moved Captive Portal
16 Posts 5 Posters 1.7k 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
    mohkhalifa
    last edited by Dec 14, 2019, 5:26 PM

    Dear All,
    Really I'm in-love with pfSense so much but there is some missing options making my crazy. one of my problems, that I have CP in for zone (x) and in this zone there are some types of users and devices. for example: employees, Managers, Printers ..... etc
    So, the problem I need to limit the download and upload for all mentioned above, the only option I found that I can user bandwidth for the ALL zone members without exceptions. I will be more than happy if someone here try to find a solution for me to manage internet bandwidth for the users as a groups or as individuals. on my old firewall there is an option to choose the username from the firewall rule to add a QoS for specific user or device ... etc but in pfSense the filewall rules sources are very limited to Alias, Network, Address and no more options. Also if there is an idea to use any external user or device authentication Server please help.
    Thanks

    1 Reply Last reply Reply Quote 0
    • F
      free4 Rebel Alliance
      last edited by free4 Dec 14, 2019, 6:18 PM Dec 14, 2019, 6:17 PM

      well,

      there is two options that could fulfill your needs:

      • you could use limiters (codel), which are firewall QOS rules
      • you could use a radius server to define per-user bandwidth control. this is an avanced feature..please see the documentation for details : https://docs.netgate.com/pfsense/en/latest/captiveportal/captive-portal-configuration.html#authenticating-captive-portal-users-using-a-radius-server
      M 1 Reply Last reply Dec 14, 2019, 6:42 PM Reply Quote 0
      • M
        mohkhalifa @free4
        last edited by Dec 14, 2019, 6:42 PM

        Dear @free4
        Thanks for your reply. What do u mean by "Codel'and for the freeradius, the documentation not covered it totally in details. if you have a better documentation or videos it will be better. also I need to integrate it with LDAP windows AD

        G 1 Reply Last reply Dec 16, 2019, 7:39 AM Reply Quote 0
        • G
          Gertjan @mohkhalifa
          last edited by Dec 16, 2019, 7:39 AM

          @mohkhalifa said in Control Users Bandwidth in CP:

          What do u mean by "Codel'

          It starts here Firewall > Traffic Shaper > By Interface

          Read https://forum.netgate.com/category/26/traffic-shaping and related Netgate videos. he subject is huge.

          Btw : I use myself the captive portal and combination with FreeRadius, so I can attribute speeds for each user.

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

          M A 2 Replies Last reply Dec 16, 2019, 10:48 AM Reply Quote 0
          • M
            mohkhalifa @Gertjan
            last edited by Dec 16, 2019, 10:48 AM

            Dear @Gertjan,
            Thanks for your reply. How can I integrate my Active Directory "LDAP"with FreeRadius to control user bandwidth ?
            it will be appreciated if you send me some detailed documentation.
            Thanks

            G F 2 Replies Last reply Dec 16, 2019, 11:12 AM Reply Quote 0
            • G
              Gertjan @mohkhalifa
              last edited by Dec 16, 2019, 11:12 AM

              I don't know what this is :

              @mohkhalifa said in Control Users Bandwidth in CP:

              Active Directory "LDAP"

              Some Microsoft functionality ?

              I'm using FreeRadius with some sort of MySQL (MariaDB) database back end.

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

              M 1 Reply Last reply Dec 17, 2019, 12:57 AM Reply Quote 0
              • F
                free4 Rebel Alliance @mohkhalifa
                last edited by Dec 16, 2019, 3:22 PM

                @mohkhalifa https://wiki.freeradius.org/guide/FreeRADIUS-Active-Directory-Integration-HOWTO

                M 1 Reply Last reply Dec 16, 2019, 8:36 PM Reply Quote 0
                • M
                  mohkhalifa @free4
                  last edited by Dec 16, 2019, 8:36 PM

                  @free4 thanks but it's not for pfSense, it's general

                  F 1 Reply Last reply Dec 16, 2019, 10:47 PM Reply Quote 0
                  • F
                    free4 Rebel Alliance @mohkhalifa
                    last edited by free4 Dec 16, 2019, 10:54 PM Dec 16, 2019, 10:47 PM

                    @mohkhalifa yeah...im not talking About pfsense here

                    if you are looking for having per-user bandwidth, then you will have to use a Radius server. pfsense does not allow you to perform per-user bandwidth control when using LDAP authentication method

                    my recommendation : install a freeradius on a separate server/virtual machine. this radius server would use your LDAP server as source, and would define other rules for per user bandwidth

                    this Radius server would then be used by your pfsense for authenticating users

                    for information, It is technically possible to install freeradius directly on pfsense(using freeradius3 package)...but I would not recommend it to you: this package is mostly unmaintained, and suffers from bugs. if you are still interested, you should have a look to this forum post

                    M 1 Reply Last reply Dec 17, 2019, 11:29 AM Reply Quote 0
                    • M
                      mohkhalifa @Gertjan
                      last edited by Dec 17, 2019, 12:57 AM

                      @Gertjan "I don't know what this is :" I want to authenticate using the Windows Server Active Directory users. also, to add bandwidth limit for each one. that's it

                      G 1 Reply Last reply Dec 17, 2019, 10:32 AM Reply Quote 0
                      • G
                        Gertjan @mohkhalifa
                        last edited by Dec 17, 2019, 10:32 AM

                        @mohkhalifa said in Control Users Bandwidth in CP:

                        "I don't know what this is :"

                        I was kidding ^^

                        What I know is : pfSense can interface with the package FreeRadius, and for that matter with any Radius server.
                        You'll be needing the latter.

                        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
                          mohkhalifa @free4
                          last edited by Dec 17, 2019, 11:29 AM

                          @free4 said in Control Users Bandwidth in CP:

                          my recommendation : install a freeradius on a separate server/virtual machine. this radius server would use your LDAP server as source, and would define other rules for per user bandwidth

                          Dear @free4 really Thanks for your kind help. If you please can you send me a links for a documentation or video tutorials to do that task.

                          1 Reply Last reply Reply Quote 0
                          • A
                            alpax8 @Gertjan
                            last edited by Sep 11, 2020, 7:40 AM

                            @Gertjan can you point me to a video tutorial or any tutorial on how to this. i have CP and also using SQUID proxy transparent, the only lacking is to connect freeradius so i could also limit bandwidth per user in a single lan. thanks.

                            M 1 Reply Last reply Sep 12, 2020, 1:58 PM Reply Quote 0
                            • M
                              mohkhalifa @alpax8
                              last edited by Sep 12, 2020, 1:58 PM

                              @alpax8 said in Control Users Bandwidth in CP:

                              @Gertjan can you point me to a video tutorial or any tutorial on how to this. i have CP and also using SQUID proxy transparent, the only lacking is to connect freeradius so i could also limit bandwidth per user in a single lan. thanks.

                              Dear @alpax8,
                              Please note that I'm NOT using FreeRADIUS, I'm using pfSense with Windows RADIUS Server and everything is working amazing.

                              A Y 2 Replies Last reply Sep 17, 2020, 8:19 AM Reply Quote 0
                              • A
                                alpax8 @mohkhalifa
                                last edited by Sep 17, 2020, 8:19 AM

                                @mohkhalifa oh ok. thanks.

                                1 Reply Last reply Reply Quote 0
                                • Y
                                  yanqian @mohkhalifa
                                  last edited by yanqian Sep 26, 2020, 2:28 PM Sep 26, 2020, 2:26 PM

                                  @mohkhalifa
                                  Well, I found 2 threads about Microsoft NPS posted by you in CaptivePortal category, and I am glad that you figured out how to use Microsoft NPS as radius server for pfSense authentication.

                                  It's better that you can take some time to share your experience in your own thread, It will help me and others who may got the same issue.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received