update disconnect is not working in accounting section

Alan DeKok aland at deployingradius.com
Sat May 11 23:48:52 CEST 2019


On May 11, 2019, at 4:53 PM, One Zero Art <onezeroartapps at gmail.com> wrote:
> 
> I am trying to disconnect the user in the accounting section. Is FreeRadius
> support auto disconnection?

  There's no "auto" disconnection.  It sends Disconnect-Request packets when you tell it to.

> In the accounting section, I tried this
> 
> update disconnect {
> Framed-IP-Address = "%{Framed-IP-Address}"
> User-Name = "%{request:User-Name}"
> }

  You may need more than that.  See the NAS documentation for what information is needed in Disconnect packets.

> This giving me error in accounting section when debuging. I am also using
> CoA successfully. CoA is working great.
> 
> This error message showing in debug
> 
> 
> (7) if (&control:Tmp-Integer-4 == 1){ (7) if (&control:Tmp-Integer-4 == 1)
> -> TRUE (7) if (&control:Tmp-Integer-4 == 1) { (7) if
> (&control:Tmp-Integer-2 > &control:Tmp-Integer-3){ (7) if

  Please post *correctly* formatted output.

> (&control:Tmp-Integer-2 > &control:Tmp-Integer-3) -> TRUE (7) if
> (&control:Tmp-Integer-2 > &control:Tmp-Integer-3) { (7) update disconnect {
> (7) *WARNING: List "disconnect" is not available (7) ERROR: Mapping
> "%{Framed-IP-Address}" -> "Framed-IP-Address" invalid in this context* (7)
> } # update disconnect = invalid (7) } # if (&control:Tmp-Integer-2 >
> &control:Tmp-Integer-3) = invalid (7) } # if (&control:Tmp-Integer-4 == 1)
> = invalid (7) } # accounting = invalid (7) Sent CoA-Request Id 89 from
> 0.0.0.0:53274 to 192.168.0.10:3799 length 47 (7) Framed-IP-Address =
> 0.0.0.0 (7) User-Name = "user" (7) Mikrotik-Rate-Limit = "10M/10M" (7) Not
> sending reply to client. (7) Finished request (7) Cleaning up request
> packet ID 52 with timestamp +266 Waking up in 2.4 seconds. (7) Clearing
> existing &reply: attributes (7) Received CoA-NAK Id 89 from

  The NAS is NAKing it.

> 192.168.0.10:3799 to 192.168.0.2:53274 length 42 (7) Error-Cause =
> Unsupported-Extension

  Which is explained in the NAS documentation.

  See the NAS documentation for what should be in the packets.  We didn't create the NAS, so we don't know this information.

  Alan DeKok.




More information about the Freeradius-Users mailing list