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

    Per user bandwidth limit

    Scheduled Pinned Locked Moved Captive Portal
    17 Posts 9 Posters 21.6k 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.
    • Z
      Zare
      last edited by

      Hello guys, i found a document;

      http://www.theitmassive.com/home/2009/7/22/pfsense-captive-portal.html

      where the author describes with screenshot direct captive portal option for bandwidth limiting. I don't have such an option in 1.2.2. Basically, i want to throttle users accessing my wireless network. Using squid for transparent proxy/url filter, and it's bandwidth limiting option doesn't work. Although url filtering works fine.

      Thanks in advance,
      Zarko Bulatovic.

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

        This feature is in pfsense 2.0, take a look at one of the snapshots to try it out.

        http://snapshots.pfsense.org/FreeBSD_RELENG_7_2/pfSense_HEAD/livecd_installer/

        Josh

        Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

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

          Hi guys

          I'm now trying with pfsense 1.2.2, 1.2.3 and 2.0 alpha to work with some radius attributes.
          I want to dynamically use "per user bandwidth" with radius attributes.
          Therefore, I used "WISPr-Bandwidth-Max-Down" and "WISPr-Bandwidth-Max-Up" in mysql database radius.radgroupreply or even radius.radreply, but the bandwidth was up to the Max. Is there any way to make this thing done?
          I don't want to use per user bandwidth in pfsense2.0alpha because it's not dynamic.

          I used to use chillispot and it works fine with bandwidth limit with those attributes.

          Thanks ;D

          1 Reply Last reply Reply Quote 0
          • E
            eri--
            last edited by

            pfSense uses this radius attributes.
            They are expected from this vendor if ($vendor == 14122) { /* RADIUS_VENDOR_WISPr Wi-Fi Alliance */

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

              @ermal:

              pfSense uses this radius attributes.
              They are expected from this vendor if ($vendor == 14122) { /* RADIUS_VENDOR_WISPr Wi-Fi Alliance */

              So I can't use those attributes?? or what you mean?? Then how to make QoS work with radius attributes??

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

                I found this statement in /etc/inc/radius.inc
                  if ($vendor == 14122) { /* RADIUS_VENDOR_WISPr Wi-Fi Alliance */

                I think pfsense support those bandwidth attributes, right?? but it's not working at all.?? why??

                1 Reply Last reply Reply Quote 0
                • E
                  eri--
                  last edited by

                  Check your radius server maybe it is not a supported vendor.
                  Add a log_error("Trying to work with " . $vendor);
                  in radius.inc and see what is the value.

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

                    @ermal:

                    Check your radius server maybe it is not a supported vendor.
                    Add a log_error("Trying to work with " . $vendor);
                    in radius.inc and see what is the value.

                    i use echo log_error("Trying to work with " . $vendor);
                    When i log in to captive portal, I got the result: Trying to work with 14122

                    Below it is my radius debug when i log in:

                    Sending Access-Accept of id 68 to 127.0.0.1 port 20474
                            Session-Timeout == 300
                            Idle-Timeout := 300
                            WISPr-Bandwidth-Max-Down := 262144
                            WISPr-Bandwidth-Max-Up := 131072
                    Finished request 0
                    Going to the next request
                    –- Walking the entire request list ---
                    Waking up in 6 seconds...
                    rad_recv: Accounting-Request packet from host 127.0.0.1:38744, id=165, length=122
                            NAS-IP-Address = 192.168.11.22
                            NAS-Identifier = "pfSense.local"
                            User-Name = "test"
                            Acct-Status-Type = Start
                            Acct-Authentic = RADIUS
                            Service-Type = Login-User
                            NAS-Port-Type = Ethernet
                            NAS-Port = 0
                            Acct-Session-Id = "cc9ef9fca9c06875"
                            Framed-IP-Address = 192.168.169.105
                            Called-Station-Id = ""
                            Calling-Station-Id = "00:0c:29:40:c3:f1"
                      Processing the preacct section of radiusd.conf

                    But the bandwidth is still not working.
                    Anything wrong???

                    1 Reply Last reply Reply Quote 0
                    • E
                      eri--
                      last edited by

                      The option is only active on 2.0 iirc.
                      For activating it on 1.2.3 search the 2.0 section of the forum.

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

                        I can't find it. Can u guys show me how to make it work then?
                        I need it so much

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • R
                          renoid
                          last edited by

                          Hi,

                          I have installed Pfsense 1.2.3 rc3 with captive portal and Per user bandwidth limit, it works fine.

                          I wondered if is possible to assign more bandwith to determinate user.

                          Thanks in advance

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

                            @renoid:

                            Hi,

                            I have installed Pfsense 1.2.3 rc3 with captive portal and Per user bandwidth limit, it works fine.

                            I wondered if is possible to assign more bandwith to determinate user.

                            Thanks in advance

                            Yes, Per user bandwidth in pfsense is ok for me too. I think if we want to use multiple bandwidth, we have to use radius.
                            But I'm testing now, it's not working yet.
                            I asked anyone here to help me with 1.2.3 or alpha version, plz????

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • dotdashD
                              dotdash
                              last edited by

                              On 1.2.3RC3, you just run the wizard to configure some simple load balancing, then go to the CP and check the box.

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

                                hi guys

                                "Per-user bandwidth restriction" in 1.2.3 RC3 is ok, but i see some notes below this option:

                                If this option is set, the captive portal will restrict each user who logs in to the specified default bandwidth. RADIUS can override the default settings. Leave empty or set to 0 for no limit. You will need to enable the traffic shaper for this to be effective.

                                But i've again and again to restrict bandwidth per user with radius attribute, it's not worked at all.

                                help please?

                                1 Reply Last reply Reply Quote 0
                                • I
                                  izzi
                                  last edited by

                                  yes i have the same problem.
                                  I can use "per user bandwidth" in both pf 1.2.3 or alpha version.
                                  I've tried to use with radius bandwidth attributes but it didn't work with those attribute.
                                  Why? anyone have any experience about this?

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

                                    @izzi:

                                    yes i have the same problem.
                                    I can use "per user bandwidth" in both pf 1.2.3 or alpha version.
                                    I've tried to use with radius bandwidth attributes but it didn't work with those attribute.
                                    Why? anyone have any experience about this?

                                    bump anyone?

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

                                      @renoid:

                                      Hi,

                                      I have installed Pfsense 1.2.3 rc3 with captive portal and Per user bandwidth limit, it works fine.

                                      I wondered if is possible to assign more bandwith to determinate user.

                                      Thanks in advance

                                      tutorials please ? i'am very need it

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