[ previous ] [ next ] [ threads ]
 
 From:  Tobias Wolf <towolf at gmail dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Radius Accounting's nonsensical replies
 Date:  Mon, 11 Apr 2005 16:50:12 +0200
Hi,

when sending accounting packets to a RADIUS server my M0n0wall 1.2b7
setup reports strange values for Acct-Output-Octets.

To test that further I logged in, downloaded 10 MB, disconnected
through the portal page and looked at the debug log of freeradius on
another box. It's showing 328515 octets in spite of me downloading
over 10 million. Doubling the traffic also doesn't double the value of
Acct-Output-Octets. The session time and transmitted packets do seem
reasonable, though.

Where could I look to resolve this? Is it related to the following
line from the log?

> rlm_radutmp: Logout for NAS m0n0wall port 0, but no Login record

Only thing related from the list was this post:
http://m0n0.ch/wall/list/?action=show_msg&actionargs[]=88&actionargs[]=71
I did however download over http/80 only.

tobias.

--- LOG: $ freeradius -x --

Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.2.1:55587, id=160, length=80
        Service-Type = Login-User
        User-Name = "user"
        User-Password = "password"
        NAS-Identifier = "m0n0wall.local"
        NAS-Port = 0
        NAS-Port-Type = Ethernet
rlm_sql (sql): Reserving sql socket id: 3
rlm_sql (sql): Released sql socket id: 3
Login OK: [user/password] (from client m0n0wall port 0)
Sending Access-Accept of id 160 to 192.168.2.1:55587
        Nomadix-Bw-Up = 10
        Nomadix-Bw-Down = 10
        Reply-Message = "Du Bastardo"
rad_recv: Accounting-Request packet from host 192.168.2.1:56674,
id=46, length=163
        Service-Type = Login-User
        User-Name = "user"
        NAS-Identifier = "m0n0wall.local"
        NAS-Port = 0
        NAS-Port-Type = Ethernet
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        Acct-Session-Id = "d8192ccbb0d7c384"
        Acct-Terminate-Cause = User-Request
        Acct-Session-Time = 166
        Acct-Input-Octets = 59544
        Acct-Input-Packets = 108
        Acct-Output-Octets = 328515
        Acct-Output-Packets = 7563
        Called-Station-Id = "212.95.109.21"
        Calling-Station-Id = "10.10.10.136"
        Framed-IP-Address = 10.10.10.136
rlm_radutmp: Logout for NAS m0n0wall port 0, but no Login record
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql (sql): Released sql socket id: 2
Sending Accounting-Response of id 46 to 192.168.2.1:56674