Thank you for the answer. I was following description in the etc/raddb/sites-available/status. There is only mentioned # All packets for a home server IP / port # FreeRADIUS-Statistics-Type = 131 # FreeRADIUS-Stats-Server-IP-Address = 192.0.2.2 # FreeRADIUS-Stats-Server-Port = 1812 Therefore i've expected: does not matter if home server is defined as auth or acct or combination In my last email i didnt include debug messages for test proxy request, but there was one correct proxy request in the RADIUS & then i want to retrieve stats Result: [radiusd@tdrad1 auth-test]$ echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 130, FreeRADIUS-Stats-Server-IP-Address = 10.14.135.146, FreeRADIUS-Stats-Server-Port = 1812" | /app/radius/freeradius-3.0.15/bin/radclient -x -t 90 -r 1 -d . 127.0.0.1:28121 status adminsecret Sent Status-Server Id 2 from 0.0.0.0:46764 to 127.0.0.1:28121 length 74 Message-Authenticator = 0x00 FreeRADIUS-Statistics-Type = 130 FreeRADIUS-Stats-Server-IP-Address = 10.14.135.146 FreeRADIUS-Stats-Server-Port = 1812 Received Access-Accept Id 2 from 127.0.0.1:28121 to 0.0.0.0:0 length 135 FreeRADIUS-Stats-Server-IP-Address = 10.14.135.146 FreeRADIUS-Stats-Server-Port = 1812 FreeRADIUS-Stats-Server-Outstanding-Requests = 0 FreeRADIUS-Stats-Server-State = Alive FreeRADIUS-Stats-Server-Time-Of-Life = "Oct 26 2017 06:58:25 CEST" FreeRADIUS-Stats-Last-Packet-Recv = "Oct 26 2017 06:58:25 CEST" FreeRADIUS-Stats-Last-Packet-Sent = "Oct 26 2017 06:58:25 CEST" FreeRADIUS-Stats-Error = "Home server is not acct" Is it correct answer? For me it will great to have also following stats: 1. number of send requests 2. number of received answer for requests 3. average delay Here is debug log (not whole): (0) Proxying request to home server 10.14.135.146 port 1812 timeout 7.000000 (0) Sent Access-Request Id 160 from 0.0.0.0:43118 to 10.14.135.146:1812 length 364 ... Waking up in 0.3 seconds. (0) Marking home server 10.14.135.146 port 1812 alive (0) Clearing existing &reply: attributes (0) Received Access-Accept Id 160 from 10.14.135.146:1812 to 10.14.131.103:43118 length 73 ... (0) Login OK: [m586@vseazd.sk/] (from client localhost port 2432914345 cli ) (0) Sent Access-Accept Id 250 from 127.0.0.1:10812 to 127.0.0.1:59550 length 0 ... Ready to process requests (3) Received Status-Server Id 2 from 127.0.0.1:46764 to 127.0.0.1:28121 length 74 (3) Message-Authenticator = 0x8bb8b59a0ffdc491c547031fdfc737ba (3) FreeRADIUS-Statistics-Type = 130 (3) FreeRADIUS-Stats-Server-IP-Address = 10.14.135.146 (3) FreeRADIUS-Stats-Server-Port = 1812 (3) # Executing group from file /app/radius/conf/auth-test/sites-enabled/status (3) Autz-Type Status-Server { (3) [ok] = ok (3) } # Autz-Type Status-Server = ok (3) Sent Access-Accept Id 2 from 127.0.0.1:28121 to 127.0.0.1:46764 length 0 (3) FreeRADIUS-Stats-Server-IP-Address = 10.14.135.146 (3) FreeRADIUS-Stats-Server-Port = 1812 (3) FreeRADIUS-Stats-Server-Outstanding-Requests = 0 (3) FreeRADIUS-Stats-Server-State = Alive (3) FreeRADIUS-Stats-Server-Time-Of-Life = "Oct 26 2017 06:58:25 CEST" (3) FreeRADIUS-Stats-Last-Packet-Recv = "Oct 26 2017 06:58:25 CEST" (3) FreeRADIUS-Stats-Last-Packet-Sent = "Oct 26 2017 06:58:25 CEST" (3) FreeRADIUS-Stats-Error = "Home server is not acct" (3) Finished request Waking up in 1.9 seconds. (3) Cleaning up request packet ID 2 with timestamp +637 Ready to process requests On Wed, Oct 25, 2017 at 4:02 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Oct 25, 2017, at 9:51 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
I have installed patched version. The result is little bit different (result is not empty, but counters
are 0)
That's to be expected, TBH.
(1) FreeRADIUS-Statistics-Type = 131
i.e. Home-Server, Auth + Acct
(1) FreeRADIUS-Stats-Server-IP-Address = 10.14.135.145 (1) FreeRADIUS-Stats-Server-Port = 1812
Which you've defined only as home server of type "auth". And then queried it for "acct" statistics.
(1) Sent Access-Accept Id 102 from 127.0.0.1:28121 to 127.0.0.1:51899 length 0 (1) FreeRADIUS-Stats-Server-IP-Address = 10.14.135.145 (1) FreeRADIUS-Stats-Server-Port = 1812 (1) FreeRADIUS-Stats-Server-Outstanding-Requests = 0 (1) FreeRADIUS-Stats-Server-State = Idle
The home server has received no packets. Which isn't surprising, given that you just started FreeRADIUS. It hasn't had any packets proxied to it.
(1) FreeRADIUS-Stats-Error = "Home server is not acct"
Because it's not accepting accounting packets.
Send: FreeRADIUS-Statistics-Type = 130
And ensure that FreeRADIUS is actually proxying packets, before you expect the statistics to be non-zero.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html