How to send disconnect message to the NAS?

Xin knightluffy at
Sat Sep 27 17:07:50 CEST 2014

Btw, what' the mean of the sql in the following script:
    sql        (here)
I got it from

-----Original Message-----
From: at
[ at]
On Behalf Of Alan DeKok
Sent: Saturday, September 27, 2014 9:39 PM
To: FreeRadius users mailing list
Subject: Re: How to send disconnect message to the NAS?

Xin wrote:
> I have fully read the document you specified. I see I can use "update coa"
> section in order to send the disconnect packet, but my question is: 
> the traffic data are stored in MySQL, Can I write a SQL statement in 
> "originate-coa" file in order to get the user who has ran out of data 
> and he can send the disconnect message.

  The username is in the accounting packet.  Do this in the "accounting"

	update disconnect {
		User-Name = "%{request:User-Name}"


  Alan DeKok.
List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list