Accounting question
Hello, I have a question regarding the way accounting is done. I configured freeradius 1.0.1 with openssl and mysql support on a Fedora Core 3 system. I'm using it with PEAP and TLS for wireless authentication. The authentication works fine, but the accounting packets are always missing the username and the IPs of client and NAS seem to be interchanged. Here is a sample packet extracted from running radiusd with debugging: rad_recv: Accounting-Request packet from host 192.168.30.11:1223, id=211, length=182 Acct-Status-Type = Alive Acct-Session-Id = "0002e3412adf-000e6ad5debc-b0e1" NAS-IP-Address = 192.168.30.34 Acct-Input-Octets = 10179 Acct-Output-Octets = 11165 Acct-Input-Packets = 47 Acct-Output-Packets = 97 Vendor-Specific = 0x45415020557365726e616d652069733a204a4f53455048 Vendor-Specific = 0x564c414e2049442069733a2030 Vendor-Specific = 0x4553534944203d2055746570736120486f742053706f74 Vendor-Specific = 0x45415020547970652069733a204541502d50454150 Acct-Session-Time = 63418 My question is.... Isn the NAS suppossed to be the wireless access point? (in our case 192.168.30.11, not 192.168.30.34). Isn't the client suppossed to be the computer from which the user authenticated? (192.168.30.34 instead of .11). Is this just access point related? or can I configure it in clients.conf? The relevant portion of clients.conf looks like this: client 192.168.30.0/24 { secret = XXXXXX shortname = wifiAP } Thanks for any help,
Hello, I think my question ist quite related to yours although we do EAP-TTLS, i.e. PAP inside the tunnel.
I have a question regarding the way accounting is done. I configured freeradius 1.0.1 with openssl and mysql support on a Fedora Core 3 system. I'm using it with PEAP and TLS for wireless authentication. The authentication works fine, but the accounting packets are always missing the username and the IPs of client and NAS seem to be interchanged.
- as for User-Name, freeradius normally logs the User-Name outside of the tunnel. Use use_tunneled_reply = yes in the relevant portion of eap.conf (thanks to Michael Poser) - IP-Address is a bit more nasty: NAS-IP-Address should indeed indicate the IP Address of your wireless AP and may be used in alternation with NAS-Identifier AFAIK, Client-IP-Address refers to a RADIUS client, i.e. your AP or a RADIUS proxy server The WLAN supplicant's IP-Address never shows up, simply because there is none, at least not at the time of authentication. The entire 802.1x authentication is done on the link layer, i.e. layer 2. In theory, the wireless client could go ahead and talk IPX, DECNET, AppleTalk or whatever protocols are available. In practice, however, the vast majority of WLAN CLients nowadays will use IP and IPv4 in particular -- and of course, you need the assigned IP addresses in your logfile (at least we do). Most sites will hand out these addresses via DHCP after the authentication is done. So I'm going to cook up some simple perl programs to integrate ISC dhcpd's logfiles with those from freeradius' and probably simulate a Framed-IP-Address in the detail file. What' a bit funny: Our Cisco AP _does_ record supplicant's IP addresses internally, you can view them with some IOS command. It would indeed be convenient to make it send the address along with every Accounting STOP-Packet, but as of yet we haven't found a way. Any comments or suggestions on this? Martin -- Dr. Martin Pauly Fax: 49-6421-28-26994 HRZ Univ. Marburg Phone: 49-6421-28-23527 Hans-Meerwein-Str. E-Mail: pauly@HRZ.Uni-Marburg.DE D-35032 Marburg
Joseph Abadi <joseph.abadi@gmail.com> wrote:
The authentication works fine, but the accounting packets are always missing the username and the IPs of client and NAS seem to be interchanged.
See the FAQ. The server logs what the NAS sends it. If the NAS sends the wrong thing, the server logs it. Your NAS is broken.
Vendor-Specific = 0x45415020557365726e616d652069733a204a4f53455048 Vendor-Specific = 0x564c414e2049442069733a2030 Vendor-Specific = 0x4553534944203d2055746570736120486f742053706f74 Vendor-Specific = 0x45415020547970652069733a204541502d50454150
Your NAS is *really* broken. That's stupid. Complain to them that their product doesn't do RADIUS. Alan DeKok.
participants (3)
-
Alan DeKok -
Joseph Abadi -
Martin Pauly