hostapd: не удаётся авторизоваться

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС для молодых и начинающих системных администраторов.

Модератор: SLEDopit

Ответить
IMB
Сообщения: 2559
ОС: Debian

hostapd: не удаётся авторизоваться

Сообщение IMB »

Доброго дня!
/etc/hostapd.conf

Код: Выделить всё

interface=wlan0
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
country_code=RU
hw_mode=g
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
ieee80211n=1
eapol_version=1
wpa=3
wpa_key_mgmt=WPA-PSK WPA-EAP
wpa_pairwise=TKIP CCMP
bridge=br0
ssid=STC-MT_TestWLAN
channel=11
wpa_passphrase=RnD777777
logger_stdout=-1
logger_stdout_level=0

Вывод в консоль:

Код: Выделить всё

,,,,,,,,,,,,
946687977.809085: nl80211: Set wlan0 operstate 0->1 (UP)
946687977.809112: netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
946687977.811844: wlan0: interface state COUNTRY_UPDATE->ENABLED
946687977.811876: wlan0: AP-ENABLED
946687977.811892: wlan0: Setup of interface done.
.................
946687993.637629: nl80211: RX frame da=54:4a:16:12:d0:64 sa=00:25:d3:6a:29:92 bssid=54:4a:16:12:d0:64 freq=2462 ssi_signal=-36 fc=0xb0 seq_ctrl=0x62f0 stype=11 (WLAN_FC_STYPE_AUTH) len=30
946687993.637714: wlan0: Event RX_MGMT (19) received
946687993.637752: mgmt::auth
946687993.637778: authentication: STA=00:25:d3:6a:29:92 auth_alg=0 auth_transaction=1 status_code=0 wep=0 seq_ctrl=0x62f0
946687993.637833:   New STA
946687993.637862: ap_sta_add: register ap_handle_timer timeout for 00:25:d3:6a:29:92 (300 seconds - ap_max_inactivity)
946687993.637943: 946687993.637951: wlan0: STA 00:25:d3:6a:29:92 IEEE 802.11: authentication OK (open system)
946687993.638023: 946687993.638031: wlan0: STA 00:25:d3:6a:29:92 MLME: MLME-AUTHENTICATE.indication(00:25:d3:6a:29:92, OPEN_SYSTEM)
946687993.638093: 946687993.638100: wlan0: STA 00:25:d3:6a:29:92 MLME: MLME-DELETEKEYS.request(00:25:d3:6a:29:92)
946687993.638135: authentication reply: STA=00:25:d3:6a:29:92 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
946687993.638181: nl80211: send_mlme - da= 00:25:d3:6a:29:92 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=3
946687993.638230: nl80211: send_mlme -> send_frame
946687993.638252: nl80211: send_frame - Use bss->freq=2462
946687993.638276: nl80211: send_frame -> send_frame_cmd
946687993.638298: nl80211: CMD_FRAME freq=2462 wait=0 no_cck=0 no_ack=0 offchanok=0
946687993.638328: CMD_FRAME - hexdump(len=30): b0 00 00 00 00 25 d3 6a 29 92 54 4a 16 12 d0 64 54 4a 16 12 d0 64 00 00 00 00 02 00 00 00
946687993.638804: nl80211: Frame TX command accepted; cookie 0xa8c360c0
946687993.641692: nl80211: Event message available
946687993.641780: nl80211: Drv Event 60 (NL80211_CMD_FRAME_TX_STATUS) received for wlan0
946687993.641827: nl80211: MLME event 60 (NL80211_CMD_FRAME_TX_STATUS) on wlan0(54:4a:16:12:d0:64) A1=00:25:d3:6a:29:92 A2=54:4a:16:12:d0:64
946687993.641882: nl80211: MLME event frame - hexdump(len=30): b0 00 00 00 00 25 d3 6a 29 92 54 4a 16 12 d0 64 54 4a 16 12 d0 64 50 00 00 00 02 00 00 00
946687993.641968: nl80211: Frame TX status event
946687993.642011: wlan0: Event TX_STATUS (17) received
946687993.642041: mgmt::auth cb
946687993.642088: 946687993.642094: wlan0: STA 00:25:d3:6a:29:92 IEEE 802.11: authenticated
946687993.642855: nl80211: Event message available
946687993.642959: nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan0
946687993.643002: nl80211: MLME event 59 (NL80211_CMD_FRAME) on wlan0(54:4a:16:12:d0:64) A1=54:4a:16:12:d0:64 A2=00:25:d3:6a:29:92
946687993.643059: nl80211: MLME event frame - hexdump(len=92): 00 00 30 01 54 4a 16 12 d0 64 00 25 d3 6a 29 92 54 4a 16 12 d0 64 00 63 11 04 03 00 00 0f 53 54 43 2d 4d 54 5f 54 65 73 74 57 4c 41 4e 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c dd 07 00 0c 43 06 00 00 00 30 140
946687993.643264: nl80211: Frame event
946687993.643288: nl80211: RX frame da=54:4a:16:12:d0:64 sa=00:25:d3:6a:29:92 bssid=54:4a:16:12:d0:64 freq=2462 ssi_signal=-36 fc=0x0 seq_ctrl=0x6300 stype=0 (WLAN_FC_STYPE_ASSOC_REQ) len=92
946687993.643369: wlan0: Event RX_MGMT (19) received
946687993.643403: mgmt::assoc_req
946687993.643430: association request: STA=00:25:d3:6a:29:92 capab_info=0x411 listen_interval=3 seq_ctrl=0x6300
946687993.643516:   new AID 1
.................
946687994.347461: 946687994.347471: wlan0: STA 00:25:d3:6a:29:92 IEEE 802.11: association OK (aid 1)
946687994.347634: nl80211: sta_remove -> DEL_STATION wlan0 00:25:d3:6a:29:92 --> -2 (No such file or directory)
946687994.347694: nl80211: Add STA 00:25:d3:6a:29:92
946687994.347746:   * supported rates - hexdump(len=12): 82 84 8b 96 0c 12 18 24 30 48 60 6c
946687994.347800:   * capability=0x411
946687994.347829:   * aid=1
946687994.347853:   * listen_interval=3
946687994.347881: nl80211: Ignore ASSOC/AUTH flags since driver doesn't support full AP client state
946687994.347908:   * flags set=0xa0 mask=0x0
946687994.348947: nl80211: send_mlme - da= 00:25:d3:6a:29:92 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x10 (WLAN_FC_STYPE_ASSOC_RESP) nlmode=3
946687994.349019: nl80211: send_mlme -> send_frame
946687994.349045: nl80211: send_frame - Use bss->freq=2462
946687994.349068: nl80211: send_frame -> send_frame_cmd
946687994.349090: nl80211: CMD_FRAME freq=2462 wait=0 no_cck=0 no_ack=0 offchanok=0
946687994.349121: CMD_FRAME - hexdump(len=108): 10 00 00 00 00 25 d3 6a 29 92 54 4a 16 12 d0 64 54 4a 16 12 d0 64 00 00 11 04 00 00 01 c0 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c 2d 1a 0c 00 1d ff 00 00 00 00 00 00 00 00 00 96 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 0b0
946687994.349598: nl80211: Frame TX command accepted; cookie 0xa8cbeb40
946687994.349728: nl80211: Event message available
946687994.349801: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
946687994.349841: nl80211: New station 00:25:d3:6a:29:92
946687994.367241: nl80211: Event message available
946687994.367331: nl80211: Drv Event 60 (NL80211_CMD_FRAME_TX_STATUS) received for wlan0
946687994.367374: nl80211: MLME event 60 (NL80211_CMD_FRAME_TX_STATUS) on wlan0(54:4a:16:12:d0:64) A1=00:25:d3:6a:29:92 A2=54:4a:16:12:d0:64
946687994.367432: nl80211: MLME event frame - hexdump(len=108): 10 00 00 00 00 25 d3 6a 29 92 54 4a 16 12 d0 64 54 4a 16 12 d0 64 60 00 11 04 00 00 01 c0 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c 2d 1a 0c 00 1d ff 00 00 00 00 00 00 00 00 00 96 00 01 00 00 00 00 00 00 00 00
946687994.367663: nl80211: Frame TX status event
946687994.367705: wlan0: Event TX_STATUS (17) received
946687994.367740: mgmt::assoc_resp cb
946687994.367787: 946687994.367794: wlan0: STA 00:25:d3:6a:29:92 IEEE 802.11: did not acknowledge association response
946687994.369709: nl80211: sta_remove -> DEL_STATION wlan0 00:25:d3:6a:29:92 --> 0 (Success)

Ассоциация с точкой проходит, но авторизация не проходит, из подозрительно вижу только Ignore ASSOC/AUTH flags since driver doesn't support full AP client state
Информация о linux:

Код: Выделить всё

~ # cat /proc/version
Linux version 4.1.15+ (root@ed9a6ec31933) (gcc version 5.2.0 (GCC) ) #33 SMP PREEMPT Sun Jun 26 09:02:29 UTC 2016

~ # grep 80211 .config
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
# CONFIG_CFG80211_WEXT is not set
# CONFIG_LIB80211 is not set
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
# CONFIG_MAC80211_RC_MINSTREL_VHT is not set
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
# CONFIG_MAC80211_LEDS is not set
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_MAC80211_HWSIM is not set

Можете подсказать в чём может быть причина или как точнее её установить?
Спасибо.
Спасибо сказали:
IMB
Сообщения: 2559
ОС: Debian

Re: hostapd: не удаётся авторизоваться

Сообщение IMB »

Хм, после правки кода с заменой /dev/random на /dev/urandom wpa_supplicant-0.7.3 смог авторизоваться, но wicd-1.7.1 не может.
И ещё важный момент, в wpa_supplicant.conf добавлено key_mgmt=WPA-PSK, без этого не авторизуется.

P.S. Да, я знаю, что версии дремучие, но для теста используется EFICA MX с давно не обновляемой системой.
Спасибо сказали:
Ответить