PFSense FreeRadius Quota
-
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..
-
@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.
-
@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 ??
-
@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 :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.
-
@Gertjan thanks, for the reply.. I'll try your suggestion.