Hostapd sending MAC address to radius server

Prateek Kumar er.prateek87
Fri Feb 24 00:57:04 PST 2012


HI,

I have configured hostapd v0.5.9 using wpa with freeradius (configured for
peap-mschapv2), both in debugging mode. I am using madwifi driver.
Now when I connect windows client to the hostapd it sends Mac address as
username and password to radius server
I have tested freeradius for peap-mschapv2 using eapol_test, It received
succes from radius server.
Is something wrong in my configuration.?
Below is my config file for hostapd configuration for wpa2,

driver=madwifi


interface=wifi0vap0
bss_status=1
hw_mode=ng
channel=1
data_rate=0
beacon_int=100
preamble_type=0
tx_power=0
mcs_index=99
guard_interval=0
channel_width_mode=0
ampdu=1
ampdu_aggr_length=65535
amsdu=1
ext_prot_spacing=1
rifs_transmission=0
ext_antenna_status=0
dis_countryie=1
wme_ac_bk_aifs=7
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_txop_limit=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=1504
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=3008
tx_queue_data0_cwmin=4
tx_queue_data0_cwmax=6
tx_queue_data0_aifs=15
tx_queue_data0_burst=0
tx_queue_data1_cwmin=4
tx_queue_data1_cwmax=10
tx_queue_data1_aifs=15
tx_queue_data1_burst=0
tx_queue_data2_cwmin=3

tx_queue_data2_cwmax=4
tx_queue_data2_aifs=7
tx_queue_data2_burst=3008
tx_queue_data3_cwmin=2
tx_queue_data3_cwmax=3
tx_queue_data3_aifs=3
tx_queue_data3_burst=1504
rogue_ap_scan=1
wme_enabled=1
rts_threshold=2347
fragm_threshold=2346
dtim_period=3
uapsd_status=1
macaddr_acl=2
nas_identifier=hello
own_ip_addr=192.168.1.164
auth_server_addr=192.168.1.170
auth_server_port=1812
auth_server_shared_secret=testing123
acct_server_addr=192.168.1.170
acct_server_port=1813
acct_server_shared_secret=testing123
eap_reauth_period=3600

wpa_group_key_update_cond=1
wpa_group_rekey=1800

ssid=abc_11g_prateek

ignore_broadcast_ssid=0

bridge=brtrunk

bridge_packets=3

auth_algs=1
ieee8021x=1
rsn_preauth=1
rsn_preauth_interfaces=brtrunk
eap_message=hello
wpa_pairwise=TKIP
wpa=2
wpa_key_mgmt=WPA-EAP

Radius server logs

rad_recv: Access-Request packet from host 192.168.1.164 port 33048, id=1,
length=169
        User-Name = "00047f0b61d3"      (MAC)
        User-Password = "00047f0b61d3"         (MAC)
        NAS-IP-Address = 192.168.1.164
        NAS-Identifier = "hello"
        Called-Station-Id = "00-26-AD-01-20-80:abc_11g_prateek"
        Calling-Station-Id = "00-03-7F-0B-61-D3"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 11Mbps 802.11b"
        Message-Authenticator = 0xe50bd2bf65271890b3d1cccaa5954bca

hostapd logs when windows client joins

Wireless event: cmd=0x8c02
len=8

Custom wireless event:
''

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8b1a
len=20

Wireless event: cmd=0x8c02
len=24

wifi0vap0: RADIUS Sending RADIUS message to authentication
server

wifi0vap0: RADIUS Next RADIUS client retransmit in 1
seconds



wifi0vap0: STA 00:04:7f:0b:61:d3 RADIUS: Resending RADIUS message
(id=1)
wifi0vap0: RADIUS Next RADIUS client retransmit in 2
seconds

wifi0vap0: RADIUS Received 20 bytes from RADIUS
server

wifi0vap0: RADIUS Received RADIUS
message

wifi0vap0: STA 00:04:7f:0b:61:d3 RADIUS: Received RADIUS packet matched
with a pending request, round trip time 0.00 sec
Found matching Access-Request for RADIUS message
(id=1)

Re-sending authentication frame after successful RADIUS ACL
query

wifi0vap0: RADIUS Received 20 bytes from RADIUS
server

wifi0vap0: RADIUS Received RADIUS
message

wifi0vap0: RADIUS No matching RADIUS request found (type=0 id=1) - dropping
packet
Wireless event: cmd=0x8c02
len=24

Wireless event: cmd=0x8c02
len=94

Custom wireless event: 'AWC_AMP_WLAN_DRV_EVENT'


Regards,
Prateek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20120224/bd0888d1/attachment.htm 



More information about the Hostap mailing list