I have successfully configured rlm_sqlcounter and it’s working fine with Max-Daily-Session, Max-All-Session and Max-Monthly-Session.
I would like to know can I use this module for checking data usage as well. Or is there any other module available for checking data usage limit and disconnects users if it exceeds. (I suppose one option would be rlm_counter, but don’t know how to implement that in freeradius. I checked on the net but no luck).
Any help with procedure/documentation on the same is appreciable.
thanks for your help. have configured this module successfully, but have some queries:
can I change dataunit from GB to KB
If users data limit is full is it possible to send reply msg like " Your data download limit is full"
When I entered Mikrotik-Xmit-Limit-Gigawords := 1 in radcheck table, in debug mode it shows Mikrotik-Xmit-Limit = 1000000000, what does it mean ?
in your configuration counter name is monthlycounter, but same countername is available in rlm_sqlcounter for time check. I changed monthlycounter to monthlydatacounter.
Also have you made changes regarding 1.5 GB limitation ?
I think it may be because you changed the countername. They are in built to freeradius and you need to use monthlycounter if you want the limit to reset monthly. So you can have a monthly limit or a once only limit or whatever.
I changed counter name only because I’m using rlm_sqlcounter for checking time limit as well. In rlm_sqlcounter there is monthlycounter which I think will conflict with monthlycounter of rlm_sqldatacounter. Please let me know if I can use same countername.
Also I changed data unit from GB to MB. GB, MB & TB are defined in module.
Hello Ravin,
Can you give me little howto setting freeradius + rlm_counter ?
I’ve been search all over the internet but cannot find any better howtos.
Thank You