update disconnect is not working in accounting section
Hi, I am trying to disconnect the user in the accounting section. Is FreeRadius support auto disconnection? In the accounting section, I tried this update disconnect { Framed-IP-Address = "%{Framed-IP-Address}" User-Name = "%{request:User-Name}" } 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 (&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 192.168.0.10:3799 to 192.168.0.2:53274 length 42 (7) Error-Cause = Unsupported-Extension (7) NAS-Identifier = "MikroTik" (7) NAS-IP-Address = 192.168.0.10 (7) # Executing section post-proxy from file /etc/freeradius/3.0/sites-enabled/default (7) post-proxy { (7) eap: No pre-existing handler found (7) [eap] = noop (7) } # post-proxy = noop (7) Cleaning up request packet ID 52 with timestamp +266 Ready to process requests Thank you
On May 11, 2019, at 4:53 PM, One Zero Art <onezeroartapps@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.
participants (2)
-
Alan DeKok -
One Zero Art