Wifi(+freebox) : ça marchait, et maintenant plus !

Salutations !

Après avoir cherché en vain depuis presque une semaine, je me décide à venir demander de l’aide ici.
Je suis passé sous lenny (2.6.26-2-686) depuis deux semaines, venant de mandriva, donc je ne suis pas tout à fait à l’aise avec l’environnement.
J’ai configuré initialement mon wifi en reprenant simplement le wpa_supplicant.conf que j’avais dans mon ancienne distribution. La connexion à la freebox se passait très bien (mieux que sous mandriva, d’ailleurs) et ceci pendant une semaine.
Puis subitement, mardi dernier à 18h40 (alors que ma femme était sur l’ordi) la connexion a été perdue, et n’a pas voulu revenir. Je n’avais pas fait de modification de config à ce moment-là, pas même fait de mise-à-jour je crois, alors que la connexion est ré-établie à chaque fois qu’on met en veille le portable, à savoir souvent dans une journée.

J’ai patienté quelques jours en espérant que ça reviendrait, mais comme rien ne venait, j’ai essayé de modifier les paramètres de sécurité de la freebox, et de l’ordi, essayer en WEP, rien.
Finalement, je suis repassé dans la configuration initiale qui marchait, afin d’essayer de trouver la cause du problème nouveau.
La freebox utilise donc à nouveau WPA (TKIP + AES), le scan des points d’accès donne entre autres :

# iwlist wlan0 scan Cell 10 - Address: 02:78:xx:xx:xx:xx ESSID:"freebox_HAZNMF" Mode:Master Channel:1 Frequency:2.412 GHz (Channel 1) Quality=92/100 Signal level=-39 dBm Noise level=-127 dBm Encryption key:on IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:tsf=00000001541450c3

Le matériel est le suivant :

[code]# lspci | grep Wireless
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

ifconfig

eth0 …
lo …
wlan0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:116 errors:0 dropped:0 overruns:0 frame:0
TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:33417 (32.6 KiB) TX bytes:37347 (36.4 KiB)
wlan0:avahi Link encap:Ethernet HWaddr (même adresse)
inet adr:169.254.5.76 Bcast:169.254.255.255 Masque:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
wmaster0 …

iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:"freebox_HAZNMF"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/code]

/etc/network/interfaces :

[code]auto lo
iface lo inet loopback

The primary network interface

allow-hotplug eth0
iface eth0 inet dhcp

iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
wireless-essid freebox_HAZNMF

auto wlan0

auto eth0[/code]

Les lignes intéressantes de wpa_supplicant.conf :

update_config=0
eapol_version=1
ap_scan=2
fast_reauth=1

network={
    psk="une phrase de code super compliquée"
    priority=1
    scan_ssid=1
    ssid="freebox_HAZNMF"
}

Il s’agit là de la version “originale” de ma config, celle qui marchait la semaine précédente.

J’ai essayé de lancer directement wpa_supplicant, pour comprendre d’où venait le problème, mais je ne comprend pas ce qu’il écrit. (J’ai mis en remarque les autres réseaux configurés, afin de simplifier le résultat.)

#wpa_supplicant -d -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
update_config=0
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=2
fast_reauth=1
Priority group 1
   id=0 ssid='freebox_HAZNMF'
Initializing interface (2) 'wlan0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:13:02:47:6a:8b
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Using existing control interface directory.
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'freebox_HAZNMF'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 30 pairwise 24 key_mgmt 3 proto 2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT 802.1X
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 00 00
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=22
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 3774 bytes of scan results (16 BSSes)
CTRL-EVENT-SCAN-RESULTS 

A ce point, il reste bloqué un moment, je finis par l’interrompre.

Dans le cas où je modifie ap_scan=1 au lieu de 2 dans wpa_supplicant.conf, j’obtiens un résultat différent (mais pas fonctionnel non plus) :

Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
update_config=0
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 1
   id=0 ssid='freebox_HAZNMF'
Initializing interface (2) 'wlan0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: xx:xx:xx:47:6a:8b
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Using existing control interface directory.
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=14):
     66 72 65 65 62 6f 78 5f 48 41 5a 4e 4d 46         freebox_HAZNMF  
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 1
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 2605 bytes of scan results (11 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 1
Try to find WPA-enabled AP
0: xx:xx:xx:61:88:f7 ssid='freephonie' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: xx:xx:xx:61:88:f4 ssid='freebox_HAZNMF' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP xx:xx:xx:61:88:f4 ssid='freebox_HAZNMF'
Try to find non-WPA AP
Trying to associate with xx:xx:xx:61:88:f4 (SSID='freebox_HAZNMF' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=22
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8c02 len=179
Association info event
req_ies - hexdump(len=56): 00 0e 66 72 65 65 62 6f 78 5f 48 41 5a 4e 4d 46 01 08 02 04 0b 16 0c 12 18 24 32 04 30 48 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
resp_ies - hexdump(len=16): 01 04 82 84 8b 96 32 08 0c 12 18 24 30 48 60 6c
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: xx:xx:xx:61:88:f4
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=xx:xx:xx:61:88:f4
No keys have been configured - skip key clearing
Associated with xx:xx:xx:61:88:f4
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID xx:xx:xx:61:88:f4 into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
State: ASSOCIATED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=14):
     66 72 65 65 62 6f 78 5f 48 41 5a 4e 4d 46         freebox_HAZNMF  
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8c02 len=179
Association info event
req_ies - hexdump(len=56): 00 0e 66 72 65 65 62 6f 78 5f 48 41 5a 4e 4d 46 01 08 02 04 0b 16 0c 12 18 24 32 04 30 48 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
resp_ies - hexdump(len=16): 01 04 82 84 8b 96 32 08 0c 12 18 24 30 48 60 6c
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: xx:xx:xx:61:88:f4
State: SCANNING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=xx:xx:xx:61:88:f4
No keys have been configured - skip key clearing
Associated with xx:xx:xx:61:88:f4
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RX EAPOL from xx:xx:xx:61:88:f4
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=16 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 05
  key_nonce - hexdump(len=32): ec 6a 60 59 c9 c3 a2 6f a7 b8 3a 76 07 5d 03 f8 f9 95 1d cf ca 28 5c 50 f6 04 5e f7 44 a2 b1 94
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from xx:xx:xx:61:88:f4 (ver=2)
WPA: Renewed SNonce - hexdump(len=32): 8f 1f 4e 88 34 a3 64 be fa 09 30 0b 1c 26 0f 82 6f 32 1a 4b 01 c4 2f 95 cb d5 37 50 56 1e a3 b0
WPA: PTK derivation - A1=xx:xx:xx:47:6a:8b A2=xx:xx:xx:61:88:f4
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
RX EAPOL from xx:xx:xx:61:88:f4
IEEE 802.1X RX: version=1 type=3 length=123
  EAPOL-Key type=254
  key_info 0x1ca (ver=2 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=16 key_data_length=28
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 06
  key_nonce - hexdump(len=32): ec 6a 60 59 c9 c3 a2 6f a7 b8 3a 76 07 5d 03 f8 f9 95 1d cf ca 28 5c 50 f6 04 5e f7 44 a2 b1 94
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): ea 27 f7 20 34 f7 d6 21 92 a0 3a 04 da b5 58 f5
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from xx:xx:xx:61:88:f4 (ver=2)
WPA: IE KeyData - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=3 key_idx=0 set_tx=1 seq_len=6 key_len=16
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from xx:xx:xx:61:88:f4
IEEE 802.1X RX: version=1 type=3 length=135
  EAPOL-Key type=254
  key_info 0x392 (ver=2 keyidx=1 rsvd=0 Group Ack MIC Secure)
  key_length=32 key_data_length=40
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 07
  key_nonce - hexdump(len=32): 7b 08 b1 9f 67 77 da 79 77 8e a9 6b 94 37 4d a1 55 41 1c 9c 3e 29 31 b7 af 7c ed da 1c 3d e7 f1
  key_iv - hexdump(len=16): 55 41 1c 9c 00 00 00 00 00 00 00 00 00 00 00 02
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 9e e8 53 11 3a 96 b2 15 d0 df fc fb f6 a1 55 22
WPA: RX message 1 of Group Key Handshake from xx:xx:xx:61:88:f4 (ver=2)
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0 len=32).
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with xx:xx:xx:61:88:f4 [PTK=CCMP GTK=TKIP]
Cancelling authentication timeout
Removed BSSID xx:xx:xx:61:88:f4 from blacklist
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:61:88:f4 completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick
Scan timeout - try to get results
Received 254 bytes of scan results (1 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 1
Try to find WPA-enabled AP
0: xx:xx:xx:61:88:f4 ssid='freebox_HAZNMF' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP xx:xx:xx:61:88:f4 ssid='freebox_HAZNMF'
Try to find non-WPA AP
Already associated with the selected AP.

^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: COMPLETED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 1->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_deauthenticate
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Control interface directory not empty - leaving it behind
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

Par ailleurs, j’ai remarqué au boot un message d’erreur concernant wpa_supplicant :
wpa_supplicant: cannot read contents of /etc/wpa_supplicant.conf
Je comprends pas le problème, le fichier en question est bien accessible pour root.

J’obtiens le message également en relançant le réseau à la main :

[code]# /etc/init.d/networking restart
Reconfiguring network interfaces…RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.wlan0.pid with pid 29360
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:13:02:47:6a:8b
Sending on LPF/wlan0/00:13:02:47:6a:8b
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.0.254 port 67
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 29426
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:14:22:f8:87:53
Sending on LPF/eth0/00:14:22:f8:87:53
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.254 port 67
wpa_supplicant: cannot read contents of /etc/wpa_supplicant.conf
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:13:02:47:6a:8b
Sending on LPF/wlan0/00:13:02:47:6a:8b
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
if-up.d/mountnfs[wlan0]: waiting for interface eth0 before doing NFS mounts (warning).
wpa_supplicant: cannot read contents of /etc/wpa_supplicant.conf
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:14:22:f8:87:53
Sending on LPF/eth0/00:14:22:f8:87:53
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.0.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.254
bound to 192.168.0.13 – renewal in 389526 seconds.
done.
[/code]

Petit détail enfin, avant ce problème, l’applet de gestion du réseau (nm-applet je crois) me proposait une liste des réseaux accessible. Maintenant je ne l’ai plus, la seule façon que j’ai de tenter une connexion est de lancer wpa_supplicant à la main. (Du coup je n’ai pas essayé de me connecter à un réseau ouvert pour tester.)

Voilà où j’en suis. Actuellement, je ne suis pas sûr que le problème vienne bien de ma configuration, peut-être plutôt de la freebox (qui a été rebootée un certain nombre de fois déjà).
Il y a peut-être des pistes dans mes logs, mais je ne sais pas trop quoi et où chercher.

Voilà, si quelqu’un y voit plus clair, et saurait m’orienter dans ma recherche ?
Merci d’avance !

# iwconfig .......... wlan0 IEEE 802.11 ESSID:"freebox_HAZNMF" Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated .....

Hi
Es tu sur que tu es bien associé à ta box ?
++
Cyrille

Tu n’aurais pas un manque d’adresse disponible dans ton dhcp sur la freebox par hasard ?
Tu peux voir les baux en cours depuis les paramètres réseau de la freeboxHD. Le problème avec la freebox et son dhcp, c’est que même si tu fais un release de ton adresse, elle, elle n’en tient pas compte et ne la libère pas, il faut la redémarrer pour cela…

Bonjour

Du coup, je reviens sur le ap_scan=1 : même si je n’avais pas accès à l’extérieur, il avait bien mis en place quelque chose, et la procédure s’était arrêtée. C’est moi qui l’avait interrompu.
En particulier :

Si je demande iwconfig pendant la procédure de wpa_supplicant, j’obtiens :

wlan0     IEEE 802.11  ESSID:"freebox_HAZNMF"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: xx:xx:xx:61:88:F4   
          Bit Rate=54 Mb/s   Tx-Power=15 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key: "ma clé super longue en hexadécimal"[/code]

D'autre part, ifconfig renvoit :
[code]wlan0     Link encap:Ethernet  HWaddr 00:13:02:47:6a:8b  
          inet adr:192.168.0.10  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::213:2ff:fe47:6a8b/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:216 errors:0 dropped:0 overruns:0 frame:0
          TX packets:301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:54267 (52.9 KiB)  TX bytes:54313 (53.0 KiB)

J’ai configuré un bail DHCP permanent pour la carte wifi. C’est bien l’adresse qu’il a attribué. Quand je débranche le cable réseau et que je fais une requête, le nombre de bits envoyés et reçus augmente un petit peu. (mais elle n’aboutit pas)

Tu peux donner la configuration de ta carte réseau eth0, notamment le ifconfig?

eth0 est actuellement connecté :

eth0 Link encap:Ethernet HWaddr xx:xx:xx:f8:87:53 inet adr:192.168.0.13 Bcast:192.168.0.255 Masque:255.255.255.0 adr inet6: fe80::214:22ff:fef8:8753/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:904742 errors:2 dropped:2 overruns:0 frame:0 TX packets:635918 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:1106105095 (1.0 GiB) TX bytes:65555656 (62.5 MiB) Interruption:17

Mon lspsci :

# lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01) 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400 03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02) 03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller 03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19) 03:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a) 03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05) 03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) 0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

Bon, donc tu as l’explication. Ta carte WIFI et ta carte ethernet sont sur le même réseau et donc en conflit. Si les deux sont actives une seule fonctionnera et encore. Tu devrais

  1. Mettre le WIFI sur un réseau différent de réseau filaire (192.168.1.0/24 par exemple).
  2. Ne pas mettre 2 passerelles sur ta machine.

Dans ces conditions, ça fonctionnera mieux.

Effectivement, comme j’ai pas de wifi, je branche un cable pour pouvoir accéder au réseau pour vous parler. :blush:
J’ai pas fait attention qu’il pouvait y avoir un conflit.

J’ai refait les choses proprement : tuer wpa_supplicant, relancer le réseau : /etc/init.d/networking restart
puis relancer wpa_supplicant
Au bout d’un moment, il se connecte : j’ai du réseau !
Merci beaucoup !

Bizarrement, nm-applet ne m’en averti pas.
J’en reviens à la question subsidiaire : il y a pas un applet qui donne la liste des points d’accès à proximité ? Je me vois mal éditer wpa_supplicant.conf pour accéder à un point en accès libre.

Edit: et puis du coup j’ai pas compris le problème survenu la semaine dernière. Mais c’est un peu tard pour le découvrir puisque que ça remarche.

Essaye wicd.

Il a l’air très bien. Sobre et suffisant. Il me demande la clé, et il se débrouille. Merci !