WPA Host Based Access Point

nans_nans1 at yahoo.de nans_nans1 at yahoo.de
Sun Jul 19 12:45:15 PDT 2015


Hi,

i try to setup a DF Access Point according to 
http://www.dragonflybsd.org/docs/docs/newhandbook/WirelessNetwork/#index5h4

But i can't access from my Macbook to DF.

My hostapd.conf:

interface=wlan0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=blah
wpa=1
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP


#kldstat
Id Refs Address            Size     Name
 1   19 0xffffffff80200000 1faf700  kernel
 2    1 0xffffffff821b0000 c5cf8    acpi.ko
 3    1 0xffffffff82276000 c7c0     ehci.ko
 4    1 0xffffffff82283000 c5c0     xhci.ko
 5    1 0xffffffff82290000 1128     wlan_xauth.ko
 6    1 0xffffffff82292000 11eb0    if_bridge.ko
 7    1 0xffffffff822a4000 15098    if_run.ko
 8    1 0xffffffff822ba000 2c80     runfw.ko
 9    1 0xffffffff822bd000 39e8     wlan_acl.ko
10    1 0xffffffff82a42000 56000    pf.ko


When i start hostapd then i get the following messages:


ctrl_interface_group=0 (from group name 'wheel')
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Completing interface initialization
hostapd_setup_bss(hapd=0x800800100 (wlan0), first=1)
wlan0: Flushing old station entries
wlan0: Deauthenticate all stations
bsd_set_privacy: enabled=0
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
Using interface wlan0 with hwaddr 04:f0:21:17:3d:0e and ssid "blah"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=4):
     62 6c 61 68                                       blah
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
bsd_set_ieee8021x: enabled=1
bsd_configure_wpa: enable WPA= 0x1
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
bsd_set_privacy: enabled=1
bsd_set_opt_ie: set WPA+RSN ie (len 28)
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
bsd_set_key: alg=2 addr=0x449ead key_idx=1 set_tx=1 seq_len=0 key_len=32
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: Setup of interface done.
ctrl_iface not configured!

_______

When i try to connect from my Macbook to DF Access Point i get the following hostapd-log-messages.
Can anybody help me where the problem is?

_________

wlan0: Event ASSOC (0) received
wlan0: STA 00:1c:b3:bf:05:56 IEEE 802.11: associated
STA included WPA IE in (Re)AssocReq
  New STA
ap_sta_add: register ap_handle_timer timeout for 00:1c:b3:bf:05:56 (300 seconds - ap_max_inactivity)
wlan0: STA 00:1c:b3:bf:05:56 WPA: event 1 notification
bsd_set_key: alg=0 addr=0x8006d3010 key_idx=0 set_tx=1 seq_len=0 key_len=0
bsd_del_key: addr=00:1c:b3:bf:05:56
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
wlan0: STA 00:1c:b3:bf:05:56 WPA: start authentication
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state INITIALIZE
bsd_set_key: alg=0 addr=0x8006d3010 key_idx=0 set_tx=1 seq_len=0 key_len=0
bsd_del_key: addr=00:1c:b3:bf:05:56
wlan0: STA 00:1c:b3:bf:05:56 IEEE 802.1X: unauthorizing port
WPA: 00:1c:b3:bf:05:56 WPA_PTK_GROUP entering state IDLE
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state AUTHENTICATION
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state AUTHENTICATION2
WPA: Re-initialize GMK/Counter on first station
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
bsd_set_key: alg=2 addr=0x449ead key_idx=1 set_tx=1 seq_len=0 key_len=32
WPA: Assign ANonce - hexdump(len=32): b9 a0 1d 4a 3e b0 ca 02 9e ae 97 28 dc 63 e1 9a f2 36 69 a2 2a 73 b5 87 a6 3f a8 ef 84 e6 15 28
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state INITPSK
Searching a PSK for 00:1c:b3:bf:05:56 prev_psk=0x0
Searching a PSK for 00:1c:b3:bf:05:56 prev_psk=0x0
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state PTKSTART
wlan0: STA 00:1c:b3:bf:05:56 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 00:1c:b3:bf:05:56 (300 seconds - ap_max_inactivity)
wlan0: STA 00:1c:b3:bf:05:56 WPA: EAPOL-Key timeout
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state PTKSTART
wlan0: STA 00:1c:b3:bf:05:56 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
wlan0: STA 00:1c:b3:bf:05:56 WPA: EAPOL-Key timeout
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state PTKSTART
wlan0: STA 00:1c:b3:bf:05:56 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 03
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 3)
wlan0: STA 00:1c:b3:bf:05:56 WPA: EAPOL-Key timeout
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state PTKSTART
wlan0: STA 00:1c:b3:bf:05:56 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 04
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 4)
wlan0: Event DISASSOC (1) received
wlan0: STA 00:1c:b3:bf:05:56 IEEE 802.11: disassociated
wlan0: STA 00:1c:b3:bf:05:56 WPA: event 2 notification
bsd_set_key: alg=0 addr=0x8006d3010 key_idx=0 set_tx=1 seq_len=0 key_len=0
bsd_del_key: addr=00:1c:b3:bf:05:56
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: No such file or directory
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state DISCONNECTED
WPA: 00:1c:b3:bf:05:56 WPA_PTK entering state INITIALIZE
bsd_set_key: alg=0 addr=0x8006d3010 key_idx=0 set_tx=1 seq_len=0 key_len=0
bsd_del_key: addr=00:1c:b3:bf:05:56
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: No such file or directory
ioctl[SIOCS80211, op=21, val=0, arg_len=42]: No such file or directory
wlan0: STA 00:1c:b3:bf:05:56 IEEE 802.1X: unauthorizing port
ap_free_sta: cancel ap_handle_timer for 00:1c:b3:bf:05:56




More information about the Users mailing list