hi, I have one doubt in my Acct session id i had clients mac address then ssid and then session id.but in some of the Act session id it shows clients mac address then ssid and then 0.because of which i get huge Acct session time about 947412332...please see the logs below.radius new is my ssid.it would be very helpful if you solve the query. NAS-IP-Address = 192.168.200.56 NAS-Identifier = "E1C76A60846" Called-Station-Id = "00:06:5a:01:1b:d9" NAS-Port = 1 NAS-Port-Type = Wireless-802.11 User-Name = "Unknown" Calling-Station-Id = "00:14:a4:87:04:15" Acct-Status-Type = Stop Acct-Session-Id = "00:14:a4:87:04:15:radius new:947412116" Acct-Input-Octets = 0 Acct-Output-Octets = 225 Acct-Input-Packets = 0 Acct-Output-Packets = 5 Acct-Session-Time = 15 Acct-Terminate-Cause = User-Request Client-IP-Address = 192.168.200.56 Acct-Unique-Session-Id = "61a2b61dd6a83f91" Timestamp = 1337005110 Mon May 14 19:51:50 2012 NAS-IP-Address = 192.168.200.56 NAS-Identifier = "E1C76A60846" Called-Station-Id = "00:06:5a:01:1b:d9" NAS-Port = 1 NAS-Port-Type = Wireless-802.11 User-Name = "Unknown" Calling-Station-Id = "00:14:a4:87:04:15" Acct-Status-Type = Stop Acct-Session-Id = "00:14:a4:87:04:15:radius new:0" Acct-Input-Octets = 2833 Acct-Output-Octets = 4355 Acct-Input-Packets = 24 Acct-Output-Packets = 19 Acct-Session-Time = 947412332 Acct-Terminate-Cause = User-Request Client-IP-Address = 192.168.200.56 Acct-Unique-Session-Id = "48d0d61e828c612f" Timestamp = 1337005310 -- View this message in context: http://freeradius.1045715.n5.nabble.com/Acct-session-ID-shows-0-tp5709113.ht... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Sharad P wrote:
I have one doubt in my Acct session id i had clients mac address then ssid and then session id.but in some of the Act session id it shows clients mac address then ssid and then 0.because of which i get huge Acct session time about 947412332...please see the logs below.radius new is my ssid.it would be very helpful if you solve the query.
Buy a NAS that works. There is *no* excuse for a vendor to create bad accounting packets. Alan DeKok.
hi, can you tell from which time acct start time is calculated. here is the sample of logs. Acctstarttime is calculated from current date and Acct-Session-Time but 1970-01-01 is minimal possible value. This is sample for one client MAC address.you can see the date 1970-01-01. radacctid | acctsessionid |
nasipaddress | acctstarttime | acctstoptime | callingstationid
-----------+---------------------------------------------------+------------
---+------------------------+------------------------+-------------------
19308 | 2c:44:01:ee:80:da:poznan-internet-free:1335696598 | 10.255.223.71 | 2012-04-29 18:39:44+02 | 2012-04-29 18:46:08+02 | 2c:44:01:ee:80:da 19339 | 2c:44:01:ee:80:da:poznan-internet-free:0 | 10.255.223.70 | 1970-01-01 07:49:46+01 | 2012-04-29 18:49:05+02 | 2c:44:01:ee:80:da 19375 | 2c:44:01:ee:80:da:poznan-internet-free:1335696779 | 10.255.223.50 | 2012-04-29 18:42:45+02 | 2012-04-29 20:28:08+02 | 2c:44:01:ee:80:da
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Acct-session-ID-shows-0-tp5709113p57... Sent from the FreeRadius - User mailing list archive at Nabble.com.
On Tue, May 15, 2012 at 1:58 PM, Sharad P <sharadpanicker7@gmail.com> wrote:
hi, can you tell from which time acct start time is calculated. here is the sample of logs.
If you mysql, see sql/mysql/dialup.conf.
Acctstarttime is calculated from current date and Acct-Session-Time but
... which I assume you already did, since you arrived at that conclusion.
1970-01-01 is minimal possible value. This is sample for one client MAC address.you can see the date 1970-01-01.
... and the point is ? If the NAS sends incorrect Acct-Session-Time, then the calculated acctstarttime will be incorrect as well. -- Fajar
Hi,
I have one doubt in my Acct session id i had clients mac address then ssid and then session id.but in some of the Act session id it shows clients mac address then ssid and then 0.because of which i get huge Acct session time about 947412332...please see the logs below.radius new is my ssid.it would be very helpful if you solve the query.
in your config, what do you have as the generator for Acct-Session-Id ? alan
where can isee this generator? -- View this message in context: http://freeradius.1045715.n5.nabble.com/Acct-session-ID-shows-0-tp5709113p57... Sent from the FreeRadius - User mailing list archive at Nabble.com.
On Mon, May 14, 2012 at 10:23 PM, alan buxey <A.L.M.Buxey@lboro.ac.uk> wrote:
Hi,
I have one doubt in my Acct session id i had clients mac address then ssid and then session id.but in some of the Act session id it shows clients mac address then ssid and then 0.because of which i get huge Acct session time about 947412332...please see the logs below.radius new is my ssid.it would be very helpful if you solve the query.
in your config, what do you have as the generator for Acct-Session-Id ?
Acct-Session-Id should be whatever the NAS sends. Acct-Session-Time should also, AFAIK, be whatever the NAS sends. If the NAS sends incorrect Acct-Session-Time, then the NAS is broken. The acctstoptime field in radacct is a timestamp inserted by radius, so if this field has the wrong value, your server clock is probably not set to the correct time. Acct-Unique-Session-Id is created by acct_unique module in FR. This is probably what you mean by having a "generator", but should be irrelevant to the problem. -- Fajar
Hi, i have a radius server configured on my Pc and a AP connected to my PC.so there is no different NAS. and if the time is set wrong then why dont i get all acct-session-time wrong??In middle of some logs i see this type of absurd timings. -- View this message in context: http://freeradius.1045715.n5.nabble.com/Acct-session-ID-shows-0-tp5709113p57... Sent from the FreeRadius - User mailing list archive at Nabble.com.
On Tue, May 15, 2012 at 1:29 PM, Sharad P <sharadpanicker7@gmail.com> wrote:
Hi,
i have a radius server configured on my Pc and a AP connected to my PC.so there is no different NAS.
your AP is the NAS
and if the time is set wrong then why dont i get all acct-session-time wrong??In middle of some logs i see this type of absurd timings.
Ask the NAS vendor. -- Fajar
participants (4)
-
alan buxey -
Alan DeKok -
Fajar A. Nugraha -
Sharad P