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

    PFSense FreeRadius Quota

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 3 Posters 1.0k 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.
    • B
      bakwenawireless Galactic Empire
      last edited by bakwenawireless

      Good day All,

      I'm sure this has been asked a million times so i'll be million and one.. I'm running PFSense 2.4.4 and Freeradius 2.0 I want to use free radius for auth and accounting without Captive Portal. I set it up and all is working fine execpt one thing. The quota limit is not working and there is no log of a user using any data.. i.e everytime the created user logs in its simply logs "username" has logged in and has used 0 of 30Mb(My test quota).. I'll downloaded over 1gb of video's and the user doesnt reach it's quota and the counter remains at 0Mb of 30Mb.

      Is it a must to user CP for this "quota" limit to work ?

      Please assist anyone , I'm no pro here but have tried various methods for the entire week..

      GertjanG 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        @bakwenawireless said in PFSense FreeRadius Quota:

        m sure this has been asked a million times so i'll be million and one.. I'm running PFSense 2.4.4 and Freeradius 2.0 I want to use free radius for auth and accounting without Captive Portal. I set it up and all is working fine execpt one thing. The quota limit is not working and there is no log of a user using any data.. i.e everytime the created user logs in its simply logs "username" has logged in and has used 0 of 30Mb(My test quota).. I'll downloaded over 1gb of video's and the user doesnt reach it's quota and the counter remains at 0Mb of 30Mb.
        Is it a must to user CP for this "quota" limit to work ?
        Please assist anyone , I'm no pro here but have tried various methods for the entire week..

        Quotas IIRC only work if the user exceeds the limit, then logs out and then tries to log in again.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • B
          bakwenawireless Galactic Empire
          last edited by

          @NogBadTheBad Even after exceeding the limit and signing in again it doesn't stop the user from browsing and using more .... I dont know what I may be missing here ?? Or is Captive POrtal a must ?? even when I enable it , it loads the CP for auth but fails to connect to auth server ??

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

            @bakwenawireless said in PFSense FreeRadius Quota:

            I'm running PFSense 2.4.4 and Freeradius 2.0

            pfSense 2.4.4-p3 that is. Otherwise : no.
            Freeradius 2.0 ?? : doesn't exist.
            This is actual today : June 2019 :

            91cf4044-a4f0-41ae-988a-f39a64de0099-image.png

            FreeRadius 2 is dead for several years now.

            @bakwenawireless said in PFSense FreeRadius Quota:

            accounting without Captive Portal.

            That is new to me.
            But I'm open to new situations.
            I know that the FreeRadius can replace the build Authentication system (Local User Manager). But why do you want users to login into ... pfSense ? pfSense is a firewall, not a NAS, not a game server or something like that.

            All Radius accounting code is present in the captive portal's main file : /etc/inc/captiveportal.inc, so I tend to say : yes, FreeRadius needs an active captive portal so it can 'count bytes'.
            It needs an interface with ipfw, probably. Something like that. ipfw is the firewall used by the captive portal.

            edit : Consider FreeRadius as a server. Something has to be the client then. That role would be built into the captive portal code.
            This means you could try to write your own.

            @bakwenawireless said in PFSense FreeRadius Quota:

            Is it a must to user CP for this "quota" limit to work ?

            I tend to say yes - but sorry, can't explain exactly why.

            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
            • B
              bakwenawireless Galactic Empire
              last edited by

              @Gertjan thanks, for the reply.. I'll try your suggestion.

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