Problem with Hostap and Freeradius !!

Gunter Burchardt gbur
Thu Jul 29 21:38:09 PDT 2004


> [root at hostap hostapd-0.2.3]# ./hostapd -d hostapd.conf
> Configuration file: hostapd.conf
> Opening raw packet socket for ifindex 13
> Using interface wlan0ap with hwaddr 00:90:cc:58:ef:11 and ssid 'default'
> wlan0: RADIUS Authentication server 140.115.156.38:1812
> wlan0: RADIUS Accounting server 140.115.156.38:1813
> Sending RADIUS message to accounting server

Up to here everything is ok! Now hostapd shutdown. I dont know why - i think
you pressed STRG+C.

> Flushing old station entries
> Deauthenticate all stations
> Received 20 bytes from RADIUS server
> Received RADIUS message
> ***
> Then, authenticator didn't work any more. The radius server message as follow:

OK lets talk about RADIUS. If a authenticator starts, it can sent a
Accounting-On message to a radius server. It says only that the NAS
boots up and are ready to connect users to it. Therefor it contains no
user data. Your radius server seams to expect a session start packet
which starts a session for a user. Therefor the first 3 warnings in the
radius log. This is only a bad configured radius server and no bug of
hostapd.

If you don't pressed STRG+c please start hostapd with more debug in
hostapd.conf (debug or message dump) and send it to the mailing list.

> ***
> rad_recv: Accounting-Request packet from host 140.115.156.50:32780, id=0, length=71
>         Acct-Status-Type = Accounting-On
>         Acct-Authentic = RADIUS
>         NAS-IP-Address = 140.115.156.50
>         Called-Station-Id = "00-90-CC-58-EF-11:default"
>         Acct-Terminate-Cause = NAS-Reboot
>   Processing the preacct section of radiusd.conf
> modcall: entering group preacct for request 1
>   modcall[preacct]: module "preprocess" returns noop for request 1
> rlm_acct_unique: WARNING: Attribute NAS-Port was not found in request, unique ID MAY 
> be inconsistent
> 
> rlm_acct_unique: WARNING: Attribute Acct-Session-Id was not found in request, unique 
> ID MAY be inconsistent
> 
> rlm_acct_unique: WARNING: Attribute User-Name was not found in request, unique ID MAY
>  be inconsistent
> 
> rlm_acct_unique: Hashing ',Client-IP-Address = 140.115.156.50,NAS-IP-Address = 140.11
> 5.156.50,,'
> 
> rlm_acct_unique: Acct-Unique-Session-ID = "d83d644aa8db2578".
>   modcall[preacct]: module "acct_unique" returns ok for request 1
>     rlm_realm: Proxy reply, or no User-Name.  Ignoring.
>   modcall[preacct]: module "suffix" returns noop for request 1
>   modcall[preacct]: module "files" returns noop for request 1
> modcall: group preacct returns ok for request 1
>   Processing the accounting section of radiusd.conf
> modcall: entering group accounting for request 1
> radius_xlat:  '/usr/local/radius/var/log/radius/radacct/140.115.156.50/detail-2004072
> 7'
> 
> rlm_detail: /usr/local/radius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m
> %d expands to /usr/local/radius/var/log/radius/radacct/140.115.156.50/detail-20040727
> 
>   modcall[accounting]: module "detail" returns ok for request 1
>   modcall[accounting]: module "unix" returns noop for request 1
> radius_xlat:  '/usr/local/radius/var/log/radius/radutmp'
> rlm_radutmp: NAS 140.115.156.50 restarted (Accounting-On packet seen)
>   modcall[accounting]: module "radutmp" returns ok for request 1
> modcall: group accounting returns ok for request 1
> Sending Accounting-Response of id 0 to 140.115.156.50:32780
> Finished request 1
> Going to the next request
> --- Walking the entire request list ---
> Cleaning up request 1 ID 0 with timestamp 4105c89e
> Nothing to do.  Sleeping until we see a request.
> ***
> Hope someone can help me solve this problem, thanks.

regards
gunter




More information about the Hostap mailing list