Satus server show statistics per client per client
Hello. My implementation. 2 NAS(client - 172.20.1.38 and 172.20.1.40) send auth requests to one FreeRadius.(10.20.18.109) NAS defined in sql(nas table.) Satatus server enabled and listen on 18121 port. Satus Server server status { listen { type = status ipaddr = 127.0.0.1 port = 18121 } client admin { ipaddr = 127.0.0.1 secret = adminsecret } authorize { ok Autz-Type Status-Server { ok } } } Follow type of request send to the Status Server is global (no something change if I change "FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38" ) echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 35, FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38 ,FreeRADIUS-Stats-Server-IP-Address = 10.20.18.109, FreeRADIUS-Stats-Server-Port = 1812 " | radclient -x localhost:18121 status adminsecret Sending Status-Server of id 49 to 127.0.0.1 port 18121 Message-Authenticator = 0x00000000000000000000000000000000 FreeRADIUS-Statistics-Type = 35 FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38 FreeRADIUS-Stats-Server-IP-Address = 10.20.18.109 FreeRADIUS-Stats-Server-Port = 1812 rad_recv: Access-Accept packet from host 127.0.0.1 port 18121, id=49, length=224 FreeRADIUS-Total-Access-Requests = 1 FreeRADIUS-Total-Access-Accepts = 1 FreeRADIUS-Total-Access-Rejects = 0 FreeRADIUS-Total-Access-Challenges = 0 FreeRADIUS-Total-Auth-Responses = 1 FreeRADIUS-Total-Auth-Duplicate-Requests = 0 FreeRADIUS-Total-Auth-Malformed-Requests = 0 FreeRADIUS-Total-Auth-Invalid-Requests = 0 FreeRADIUS-Total-Auth-Dropped-Requests = 0 FreeRADIUS-Total-Auth-Unknown-Types = 0 FreeRADIUS-Total-Accounting-Requests = 0 FreeRADIUS-Total-Accounting-Responses = 0 FreeRADIUS-Total-Acct-Duplicate-Requests = 0 FreeRADIUS-Total-Acct-Malformed-Requests = 0 FreeRADIUS-Total-Acct-Invalid-Requests = 0 FreeRADIUS-Total-Acct-Dropped-Requests = 0 FreeRADIUS-Total-Acct-Unknown-Types = 0 Question: Is it possible to observe statistics per client ? (not global stats)
On Sep 27, 2018, at 6:55 AM, Nariman Ibadullaev <nariman.ibadullaev@gmail.com> wrote:
Question: Is it possible to observe statistics per client ? (not global stats)
Yes. Sending "FreeRADIUS-Statistics-Type = 35" should get you statistics for a particular client. Which version of the server are you running? Alan DeKok.
Question: Is it possible to observe statistics per client ? (not global stats)
Yes. Sending "FreeRADIUS-Statistics-Type = 35" should get you statistics for a particular client. 1) When I just send one parameter in radclient "FreeRADIUS-Statistics-Type = 35", status server answer for me FreeRADIUS-Total-Access-Requests = 1 FreeRADIUS-Total-Access-Accepts = 1 ......................... 2) When I send to parameter "echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 35, FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38 "", status server anwer for me same FreeRADIUS-Total-Access-Requests = 1 FreeRADIUS-Total-Access-Accepts = 1 ............................................. 3) When I change second parameter like follow FreeRADIUS-Stats-Client-IP-Address = 172.20.1.40 , answer is same FreeRADIUS-Total-Access-Requests = 1 FreeRADIUS-Total-Access-Accepts = 1 ............................................... Questions: 1) In my request something is wrong ? 2) Need I define my NAS server IP addresses like follow "FreeRADIUS-Stats-Client-IP-Address " in sites-available/status file ? 3) Need I uncommect follow line FreeRADIUS-Statistics-Type = 35 in sites-available/status file ? Which version of the server are you running? Answer : version 2 Alan DeKok чт, 27 сент. 2018 г. в 14:55, Nariman Ibadullaev < nariman.ibadullaev@gmail.com>:
Hello. My implementation. 2 NAS(client - 172.20.1.38 and 172.20.1.40) send auth requests to one FreeRadius.(10.20.18.109) NAS defined in sql(nas table.) Satatus server enabled and listen on 18121 port.
Satus Server
server status { listen { type = status ipaddr = 127.0.0.1 port = 18121 } client admin { ipaddr = 127.0.0.1 secret = adminsecret } authorize { ok Autz-Type Status-Server { ok } } }
Follow type of request send to the Status Server is global (no something change if I change "FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38" )
echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 35, FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38 ,FreeRADIUS-Stats-Server-IP-Address = 10.20.18.109, FreeRADIUS-Stats-Server-Port = 1812 " | radclient -x localhost:18121 status adminsecret Sending Status-Server of id 49 to 127.0.0.1 port 18121 Message-Authenticator = 0x00000000000000000000000000000000 FreeRADIUS-Statistics-Type = 35 FreeRADIUS-Stats-Client-IP-Address = 172.20.1.38 FreeRADIUS-Stats-Server-IP-Address = 10.20.18.109 FreeRADIUS-Stats-Server-Port = 1812 rad_recv: Access-Accept packet from host 127.0.0.1 port 18121, id=49, length=224 FreeRADIUS-Total-Access-Requests = 1 FreeRADIUS-Total-Access-Accepts = 1 FreeRADIUS-Total-Access-Rejects = 0 FreeRADIUS-Total-Access-Challenges = 0 FreeRADIUS-Total-Auth-Responses = 1 FreeRADIUS-Total-Auth-Duplicate-Requests = 0 FreeRADIUS-Total-Auth-Malformed-Requests = 0 FreeRADIUS-Total-Auth-Invalid-Requests = 0 FreeRADIUS-Total-Auth-Dropped-Requests = 0 FreeRADIUS-Total-Auth-Unknown-Types = 0 FreeRADIUS-Total-Accounting-Requests = 0 FreeRADIUS-Total-Accounting-Responses = 0 FreeRADIUS-Total-Acct-Duplicate-Requests = 0 FreeRADIUS-Total-Acct-Malformed-Requests = 0 FreeRADIUS-Total-Acct-Invalid-Requests = 0 FreeRADIUS-Total-Acct-Dropped-Requests = 0 FreeRADIUS-Total-Acct-Unknown-Types = 0
Question: Is it possible to observe statistics per client ? (not global stats)
On Sep 27, 2018, at 6:13 PM, Nariman Ibadullaev <nariman.ibadullaev@gmail.com> wrote:
Which version of the server are you running? Answer : version 2
Install 3.0.17. Version 2 is end of life. If it works, great. If it doesn't, you should upgrade to version 3. We won't fix bugs or do any debugging for version 2. Alan DeKok.
participants (2)
-
Alan DeKok -
Nariman Ibadullaev