Accounting setup in freeradius with mikrotik and the "always" module

Posted by Matt on Server Fault See other posts from Server Fault or by Matt
Published on 2011-01-09T21:18:29Z Indexed on 2012/08/31 9:40 UTC
Read the original article Hit count: 390

Filed under:
|

I have a freeradius setup that is being used to provide authentication for users on a wireless network.

The access points are all Mikrotik hardware and the users are connected 24/7.

We've been using Daloradius with mysql and freeradius 2. The boss wants to use the accounting information and while this is all set up and appears to be working, I've found that not all the accounting information is present.

Since our users may be connected for more than 24 hours at a time we keep this in here, it will reset some attributes daily so that the accounting packets work correctly.

So he started poking around at this link: http://wiki.mikrotik.com/wiki/RouterOs_MySql_Freeradius#Configuring_RouterOs_for_Radius_.26_PPP.2A_AAA

And was looking specifically at the following section.

Since our users may be connected for more than 24 hours at a time we keep this in here, it > will reset some attributes daily so that the accounting packets work correctly

   always fail {
           rcode = fail
   }
   always reject {
           rcode = reject
   }
   always ok {
           rcode = ok
           simulcount = 0
           mpp = no
   }

However, that link references freeradius 1 and I can't find this in the radius.conf file for freeradius 2. What does it do and could it be a reason I'm missing data?

EDIT: I have found one issue. We have a backup freeradius server that is also receiving the accounting packets. Although they are replicating, it's only a master/slave configuration. If the slave receives accounting packets it won't replicate them back to the master.

Although I suspect this might solve it, the boss is not convinced due to the always module. Is there anything special I need to configure in the mikrotik AP's or freeradius 2 for clients connected 24/7.

© Server Fault or respective owner

Related posts about mikrotik

Related posts about freeradius