Problem connecting Hostapd to external Radius server

hareesh.khattri at ndsu.edu hareesh.khattri
Tue Mar 15 13:52:45 PST 2005


Hi

 I have the hostap driver and hostapd running on an IXP-425 platform with
the 2.4.24-uc0 linux kernel. I want to configure it as the access point
with the integrated EAP PAE running on the platform and the FREEradius
server running on a computer with redhat9 OS with 2.4.20-8 kernel.

 I have the radius server running. It is connected to the platform with a
wired ethernet interface eth0, and a minicom modem serial connection.

 When I set the hostapd.conf file to connect to the radius server it tries
to do so with the wlan0 interface ( which is not connected to the wired
interface). When I change the interface in the configuration to eth0 the
hostapd doesn't start as the eth0 interface doesn't have the hostap
driver running.??

 Could someone please point to me as to how to configure a wired
connection to the external Radius server with the hostapd.My hostapd
configuration when using integrated Radius of hostapd.

interface=wlan0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=2
dump_file=/tmp/hostapd.dump
ctrl_interface_group=0
ssid=test
macaddr_acl=0
accept_mac_file=/etc/hostapd.accept
deny_mac_file=/etc/hostapd.deny
auth_algs=3
ieee8021x=1
eap_authenticator=1
eap_user_file=/etc/hostapd.eap_user
private_key_passwd=secret passphrase



 Another problem I am having is that when the supplicant (laptop station )
tries to connect to with the hostap access point I get the following
output and the hostapd can't complete the 802.1x authentication.

 # ./hostapd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
Opening raw packet socket for ifindex 6
Using interface wlan0 with hwaddr 00:02:6f:37:26:b6 and ssid 'test'
Flushing old station entries
Deauthenticate all stations
Wireless event: cmd=0x8c04 len=20
Received 30 bytes management frame
MGMT
mgmt::auth
authentication: STA=00:0d:88:70:78:ec auth_alg=0 auth_transaction=1
status_code0  New STA
authentication reply: STA=00:0d:88:70:78:ec auth_alg=0 auth_transaction=2
resp=0Received 30 bytes management frame
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:0d:88:70:78:ec IEEE 802.11: authenticated
Received 40 bytes management frame
MGMT
mgmt::assoc_req
association request: STA=00:0d:88:70:78:ec capab_info=0x01 listen_interval=10
  new AID 1
Received 36 bytes management frame
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:0d:88:70:78:ec IEEE 802.11: associated (aid 1, accounting
session)EAP: State machine created
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state INITIALIZE
Wireless event: cmd=0x8c03 len=20
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state DISCONNECTED
IEEE 802.1X: 00:0d:88:70:78:ec BE_AUTH entering state IDLE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec CTRL_DIR entering state FORCE_BOTH
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state RESTART
IEEE 802.1X: Integrated EAP Authenticator in use - do not generate
EAP-Request/yIEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state
INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state SELECT_ACTION
EAP: getDecision: no identity known yet -> CONTINUE
EAP: EAP entering state PROPOSE_METHOD
EAP: getNextMethod: type 1
EAP: EAP entering state METHOD_REQUEST
EAP: building EAP-Request: Identifier 103
EAP: EAP entering state SEND_REQUEST
EAP: eapReqData -> EAPOL - hexdump(len=5): 01 67 00 05 01
EAP: EAP entering state IDLE
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state CONNECTING
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec AUTH_PAE entering state AUTHENTICATING
IEEE 802.1X: 00:0d:88:70:78:ec BE_AUTH entering state REQUEST
IEEE 802.1X: Sending EAP Packet to 00:0d:88:70:78:ec (identifier 103)
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
Received 41 bytes management frame
DATA (TX callback) ACK
IEEE 802.1X: 00:0d:88:70:78:ec TX status - version=2 type=0 length=5 - ack=1
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0d:88:70:78:ec REAUTH_TIMER entering state INITIALIZE

Thanks

Hareesh Khattri





More information about the Hostap mailing list