status server: IPv6 support?
Hello list, is there a way to gather statistics for an IPv6 Socket with the status server? For example my radius server has the following listen sections: udp 0 0 127.0.0.1:18120 0.0.0.0:* 2355/radiusd udp 0 0 0.0.0.0:1645 0.0.0.0:* 2355/radiusd udp 0 0 0.0.0.0:1646 0.0.0.0:* 2355/radiusd udp 0 0 0.0.0.0:1812 0.0.0.0:* 2355/radiusd udp 0 0 0.0.0.0:1813 0.0.0.0:* 2355/radiusd udp 0 0 ::1:18120 :::* 2355/radiusd udp 0 0 :::1812 :::* 2355/radiusd udp 0 0 :::1813 :::* 2355/radiusd I am able to gather statistics for the IPv4 Sockets like: # echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 67, FreeRADIUS-Stats-Server-IP-Address = 192.168.1.14, FreeRADIUS-Stats-Server-Port = 1812" | radclient localhost:18120 status adminsecret Received response ID 52, code 2, length = 248 FreeRADIUS-Stats-Server-IP-Address = 192.168.1.14 FreeRADIUS-Stats-Server-Port = 1812 FreeRADIUS-Total-Access-Requests = 0 FreeRADIUS-Total-Access-Accepts = 0 FreeRADIUS-Total-Access-Rejects = 0 FreeRADIUS-Total-Access-Challenges = 0 FreeRADIUS-Total-Auth-Responses = 0 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 1. How can I gather statistics for the IPv6 sockets, I didn't find any IPv6 attributes like "FreeRADIUS-Stats-Server-IPv6-Address". 2. Is there a way to query the IPv6 localhost socket for status server? echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 67, FreeRADIUS-Stats-Server-IP-Address = 192.168.1.14, FreeRADIUS-Stats-Server-Port = 1812" | radclient [::1]:18120 status adminsecret did not work. Regards, Tobias Hachmer
Tobias Hachmer wrote:
is there a way to gather statistics for an IPv6 Socket with the status server?
No. Use "radmin" for that.
1. How can I gather statistics for the IPv6 sockets, I didn't find any IPv6 attributes like "FreeRADIUS-Stats-Server-IPv6-Address".
Send a patch.
2. Is there a way to query the IPv6 localhost socket for status server? echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 67, FreeRADIUS-Stats-Server-IP-Address = 192.168.1.14, FreeRADIUS-Stats-Server-Port = 1812" | radclient [::1]:18120 status adminsecret did not work.
See the FAQ for "it didn't work". In this case, you probably have to make the server listen on IPv6 addresses. Alan DeKok.
participants (2)
-
Alan DeKok -
Tobias Hachmer