0

I am using coovachilli + mysql + freeradius 3.0. I have configured coa support on port 3799 for coovachilli and then once you have configured for example Chilli-MaxTotal-Octets =: 10240 . The client will be limited to only 10mbs upload/download. The behavior of the client is that once the allocated bandwidth is exhausted; The client will still be associated to the network and has to manually disconnect and reconnect to the Access Point in order to be redirected to the Coova Captive portal. This is not reliant and I was looking for a method that would make the radius server send an originate-coa having a Packet Of Disconnect (POD) requesting the NAS to log off the user by the %User-Name% once it checks that the radcheck and radreply allocated bandwidth has been exhausted.

Disconnecting the user Manually look like :

chilli_query logoff mac [client_mac_address] 

or through radius:

echo "User-Name=radusertester,Calling-Station-ID=80-CE-B9-70-42-BD,NAS-IP-Address=10.1.0.1" | radclient 127.0.0.1:3799 disconnect radpass

But I'de prefer if the POD is sent from the radius using the originate-coa configuration. The challenge is in the sql statement that'll be used to

  1. check if a user has exhausted their bandwidth
  2. check if the acct.terminatecause == SessionTimeout and then send the POD to disconnect the particular user-device that should be logged off and redirected to the captive portal.

0 Answers0