Wifi : Impossible de s'authentifier sous linux

Hello,

J’ai un dungle wusb600n avec lequel je souhaiterais me connecter à différent réseau, j’ai également une carte intégrée à mon portable, mais elle ne fait que du A et le réseau auquel je veux me connecter fonctionne en B.

Mon dungle est correctement reconnu, après avoir installé le firmware, je scanne bien les différents réseau, par contre, dès que je veux me connecter à l’un d’entre eux, on me dit que mon password est mauvais… A savoir que je me connecte depuis ce même dungle sous windows depuis le même poste, et je ne rencontre pas ce problème. Pour le password, c’est un copier/coller…

Mon syslog me dit ceci quand j’essaye de me connecter depuis wicd :

[quote]Apr 27 15:31:57 tri-netbook kernel: [ 282.209006] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:31:57 tri-netbook kernel: [ 282.217931] wlan1: deauthenticating from 00:15:70:dd:fe:31 by local choice (reason=3)
Apr 27 15:31:57 tri-netbook kernel: [ 282.218533] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:31:57 tri-netbook kernel: [ 282.265811] wlan1: deauthenticating from 00:15:70:dd:fe:31 by local choice (reason=3)
Apr 27 15:31:57 tri-netbook kernel: [ 282.281500] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:31:57 tri-netbook kernel: [ 282.481072] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 27 15:31:57 tri-netbook kernel: [ 282.680141] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 27 15:31:58 tri-netbook kernel: [ 282.880123] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 27 15:32:09 tri-netbook kernel: [ 294.358742] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:32:09 tri-netbook kernel: [ 294.556097] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 27 15:32:09 tri-netbook kernel: [ 294.756122] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 27 15:32:10 tri-netbook kernel: [ 294.956112] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 27 15:32:21 tri-netbook kernel: [ 306.446871] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:32:21 tri-netbook kernel: [ 306.644108] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 27 15:32:22 tri-netbook kernel: [ 306.844113] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 27 15:32:22 tri-netbook kernel: [ 307.044093] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 27 15:32:33 tri-netbook dhclient: Internet Systems Consortium DHCP Client V3.1.3
Apr 27 15:32:33 tri-netbook dhclient: Copyright 2004-2009 Internet Systems Consortium.
Apr 27 15:32:33 tri-netbook dhclient: All rights reserved.
Apr 27 15:32:33 tri-netbook dhclient: For info, please visit isc.org/software/dhcp/
Apr 27 15:32:33 tri-netbook dhclient:
Apr 27 15:32:33 tri-netbook dhclient: Listening on LPF/wlan1/00:1e:e5:e3:41:7f
Apr 27 15:32:33 tri-netbook dhclient: Sending on LPF/wlan1/00:1e:e5:e3:41:7f
Apr 27 15:32:33 tri-netbook dhclient: Sending on Socket/fallback
Apr 27 15:32:33 tri-netbook kernel: [ 318.109670] ADDRCONF(NETDEV_UP): wlan1: link is not ready
Apr 27 15:32:33 tri-netbook kernel: [ 318.110635] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 27 15:32:33 tri-netbook kernel: [ 318.133170] wlan1: deauthenticating from 00:15:70:dd:fe:31 by local choice (reason=3)
Apr 27 15:32:33 tri-netbook kernel: [ 318.133260] wlan1: deauthenticating from 00:15:70:dd:fe:31 by local choice (reason=3)[/quote]

Quelqu’un pour m’aider ? Comment se fait-il que mon password ne passe pas ? Alors qu’il est bon et qu’une histoire de filtrage par adresse mac est exclue (car je me connecte dessus depuis windows).

merci !

Salut

Ton WLAN est protégé par quel type de clef ? WEP ou WAP ?

Qu’as tu dans le /etc/network/interfaces ?

[quote=“dric64”]Salut

Ton WLAN est protégé par quel type de clef ? WEP ou WAP ?

Qu’as tu dans le /etc/network/interfaces ?[/quote]
En WPA2

Voilà :

[quote]cat /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet dhcp[/quote]

Wlan1 correspond à ma carte wifi usb et wlan0 correspond au wifi interne (qui lui marche très bien)

Et wicd reste bloqué sur validation de l’authentification, puis il me dit “mot de passe erroné”, alors que sans rien toucher, juste en passant sur wlan0, je me connecte sans problème (avec le même password) sur le réseau accessible en A.

Ok, pas de trace des wlan1 dans /etc/network/interface : çà, c’est bon.

Tu as wpasupplicant d’installé ?

[quote=“dric64”]Ok, pas de trace des wlan1 dans /etc/network/interface : çà, c’est bon.

Tu as wpasupplicant d’installé ?[/quote]
ouip, vu que je me connecte bien avec l’autre interface sur le réseau en A (protégé en WPA2 aussi)

OK j’avais pas bien compris tes réseaux A et B

J’ai installé hostapd, dans l’espoire que ça change quelquechose… rien non plus de ce côté là.

Ta carte est bien en mode managed ?
sinon :
iwconfig wlan1 mode Managed

[quote=“dric64”]Ta carte est bien en mode managed ?
sinon :
iwconfig wlan1 mode Managed[/quote]
Oui oui elle y est

Par contre je note que le power management est actif sur cette carte, et pas sur l’autre. L’acpi est désactivé sur mon noyau, je doute que ça vienne de là, mais si je désactive ça dans le noyau et que c’est actif sur la carte (car au nom, j’imagine que c’est de la gestion d’énergie), ça risque pas de poser problème ? je désactive ça…

/edit : rien changé non plus

c’est quoi exactement comme carte ?

modèle : wusb600n
noyau : 2.6.32 SMP
pilote : rt2800usb

Humm, j’ai pas trop d’idée…

Peux tu renvoyer le lsusb/lspci et le uname -a pour le matos exact et le noyau ?

salut
un iwconfig -a c’est toujours utile :wink:
et sinon en mode AD-HOC il dit quoi??

essai un ifconfig eth0 promisc

edit : j’avais le meme souçis avec wicd , je fais tout en console depuis et tout fonctionne mieux … c’est juste pour dire … :wink:

Hello,

alors :

ifconfig -a

[quote]eth0 Link encap:Ethernet HWaddr 00:23:5a:98:10:33
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interruption:27

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:700 (700.0 B) TX bytes:700 (700.0 B)

pan0 Link encap:Ethernet HWaddr be:08:fc:db:34:42
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:24:2c:3f:5e:2b
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:225 errors:0 dropped:0 overruns:0 frame:0
TX packets:297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:96323 (94.0 KiB) TX bytes:58245 (56.8 KiB)

wlan1 Link encap:Ethernet HWaddr 00:1e:e5:e3:41:7f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)[/quote]

uname -a

lsusb

[quote]Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 1737:0071 Linksys WUSB600N Dual-Band Wireless-N USB Network Adapter
Bus 001 Device 002: ID 064e:d101 Suyin Corp. Acer CrystalEye Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[/quote]

lspci

[quote]00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
03:00.0 Ethernet controller: Atheros Communications AR8132 Fast Ethernet (rev c0)[/quote]

Et voilà, et sinon, je pourrais ne pas passer par wicd, mais comment faire ? J’ai cru comprendre que je pouvais renseigner un fichier de conf…

As-tu essayé avec network-manager ?
Ca nous dirait si c’est un problème avec wicd ou avec ta clef.

[quote=“Knard”]As-tu essayé avec network-manager ?
Ca nous dirait si c’est un problème avec wicd ou avec ta clef.[/quote]
J’ai supprimé wicd et installé network manager, voilà les syslog lors d’une tentative de connexion :

[quote]root@tri-netbook:/home/julian# tail -f /var/log/syslog
Apr 28 10:59:48 tri-netbook kernel: [ 123.596111] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 28 10:59:49 tri-netbook kernel: [ 123.796087] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 28 10:59:49 tri-netbook kernel: [ 123.996076] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 28 10:59:58 tri-netbook wpa_supplicant[1651]: Authentication with 00:15:70:dd:fe:31 timed out.
Apr 28 10:59:58 tri-netbook NetworkManager: (wlan1): supplicant connection state: associating -> disconnected
Apr 28 10:59:58 tri-netbook NetworkManager: (wlan1): supplicant connection state: disconnected -> scanning
Apr 28 11:00:00 tri-netbook NetworkManager: Activation (wlan1/wireless): association took too long.
Apr 28 11:00:00 tri-netbook NetworkManager: (wlan1): device state change: 5 -> 6 (reason 0)
Apr 28 11:00:00 tri-netbook NetworkManager: Activation (wlan1/wireless): asking for new secrets
Apr 28 11:00:00 tri-netbook NetworkManager: (wlan1): supplicant connection state: scanning -> disconnected
Apr 28 11:00:15 tri-netbook NetworkManager: wlan1: link timed out.
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled…
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 1 of 5 (Device Prepare) started…
Apr 28 11:00:34 tri-netbook NetworkManager: (wlan1): device state change: 6 -> 4 (reason 0)
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled…
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 2 of 5 (Device Configure) starting…
Apr 28 11:00:34 tri-netbook NetworkManager: (wlan1): device state change: 4 -> 5 (reason 0)
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1/wireless): connection ‘Auto work@tri’ has security, and secrets exist. No new secrets needed.
Apr 28 11:00:34 tri-netbook NetworkManager: Config: added ‘ssid’ value 'work@tri’
Apr 28 11:00:34 tri-netbook NetworkManager: Config: added ‘scan_ssid’ value '1’
Apr 28 11:00:34 tri-netbook NetworkManager: Config: added ‘key_mgmt’ value 'WPA-PSK’
Apr 28 11:00:34 tri-netbook NetworkManager: Config: added ‘psk’ value ''
Apr 28 11:00:34 tri-netbook NetworkManager: Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
Apr 28 11:00:34 tri-netbook NetworkManager: Config: set interface ap_scan to 1
Apr 28 11:00:34 tri-netbook NetworkManager: (wlan1): supplicant connection state: disconnected -> scanning
Apr 28 11:00:36 tri-netbook wpa_supplicant[1651]: Trying to associate with 00:15:70:dd:fe:31 (SSID=‘work@tri’ freq=5180 MHz)
Apr 28 11:00:36 tri-netbook NetworkManager: (wlan1): supplicant connection state: scanning -> associating
Apr 28 11:00:36 tri-netbook kernel: [ 171.685544] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 28 11:00:37 tri-netbook kernel: [ 171.884126] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 28 11:00:37 tri-netbook kernel: [ 172.084110] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 28 11:00:37 tri-netbook kernel: [ 172.284097] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 28 11:00:46 tri-netbook wpa_supplicant[1651]: Authentication with 00:15:70:dd:fe:31 timed out.
Apr 28 11:00:46 tri-netbook NetworkManager: (wlan1): supplicant connection state: associating -> disconnected
Apr 28 11:00:46 tri-netbook NetworkManager: (wlan1): supplicant connection state: disconnected -> scanning
Apr 28 11:00:48 tri-netbook wpa_supplicant[1651]: Trying to associate with 00:15:70:dd:fe:31 (SSID=‘work@tri’ freq=5180 MHz)
Apr 28 11:00:48 tri-netbook NetworkManager: (wlan1): supplicant connection state: scanning -> associating
Apr 28 11:00:48 tri-netbook kernel: [ 183.741072] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 1)
Apr 28 11:00:49 tri-netbook kernel: [ 183.940089] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 2)
Apr 28 11:00:49 tri-netbook kernel: [ 184.140091] wlan1: direct probe to AP 00:15:70:dd:fe:31 (try 3)
Apr 28 11:00:49 tri-netbook kernel: [ 184.340089] wlan1: direct probe to AP 00:15:70:dd:fe:31 timed out
Apr 28 11:00:58 tri-netbook wpa_supplicant[1651]: Authentication with 00:15:70:dd:fe:31 timed out.
Apr 28 11:00:58 tri-netbook NetworkManager: (wlan1): supplicant connection state: associating -> disconnected
Apr 28 11:00:58 tri-netbook NetworkManager: (wlan1): supplicant connection state: disconnected -> scanning
Apr 28 11:01:00 tri-netbook NetworkManager: Activation (wlan1/wireless): association took too long.
Apr 28 11:01:00 tri-netbook NetworkManager: (wlan1): device state change: 5 -> 6 (reason 0)
Apr 28 11:01:00 tri-netbook NetworkManager: Activation (wlan1/wireless): asking for new secrets
Apr 28 11:01:00 tri-netbook NetworkManager: (wlan1): supplicant connection state: scanning -> disconnected
Apr 28 11:01:08 tri-netbook NetworkManager: (wlan1): device state change: 6 -> 9 (reason 7)
Apr 28 11:01:08 tri-netbook NetworkManager: Activation (wlan1) failed for access point (work@tri)
Apr 28 11:01:08 tri-netbook NetworkManager: Marking connection ‘Auto work@tri’ invalid.
Apr 28 11:01:08 tri-netbook NetworkManager: Activation (wlan1) failed.
Apr 28 11:01:08 tri-netbook NetworkManager: (wlan1): device state change: 9 -> 3 (reason 0)
Apr 28 11:01:08 tri-netbook NetworkManager: (wlan1): deactivating device (reason: 0).[/quote]

Tu peux essayer de renseigner les /etc/network/interfaces :

auto wlanX
iface wlanX inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

et /etc/wpa_supplicant/wpa_supplicant.conf :

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
    ssid="Mon_EssiD"
    proto=WPA
    key_mgmt=WPA-PSK
    psk=1234567890ABCDEF
# ou bien psk = "masuperbeclefnoncodee"

}

pour avoir la clef au format hexa, la commande est : wpa_passphrase ssid clef
Les champs sont à adapter en fonction de ton ssid (man wpasupplicant.conf pour plus d’infos)

Puis : ifup pour te connecter

EDIT : J’ai retrouvé une doc sympa : doc.ubuntu-fr.org/wpa

RE EDIT : tu as une LiveBox ? Si oui, n’oublie pas d’activer le mode association sans quoi, même avec les bons paramètres, elle t’autorisera jamais à te connecter…