IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Matériel Discussion :

Se connecter à un point d'accès Wi-Fi protégé WPA/PSK


Sujet :

Matériel

  1. #1
    Membre régulier Avatar de YuGiOhJCJ
    Profil pro
    Étudiant
    Inscrit en
    Janvier 2005
    Messages
    206
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Janvier 2005
    Messages : 206
    Points : 114
    Points
    114
    Par défaut Se connecter à un point d'accès Wi-Fi protégé WPA/PSK
    Bonjour,

    j'essaie désespérément d'accéder à un point d'accès Wi-Fi protégé avec une clé WPA/PSK.

    Pour me connecter je saisis :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    $ sudo wpa_supplicant -ira0 -c/etc/wpa_supplicant.conf -d
    Mon fichier de configuration est :
    $ cat /media/sdc/wpa_supplicant.conf
    network={
    ssid="NEUF_43B4"
    psk="..."
    }

    Et voici l'affichage que j'obtiens :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
     
    Initializing interface 'ra0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    Priority group 0
       id=0 ssid='NEUF_43B4'
    Initializing interface (2) 'ra0'
    Interface ra0 set UP - waiting a second for the driver to complete initialization
    SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf flags 0x0
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:22:43:44:04:ea
    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
    WPS: UUID based on MAC address - hexdump(len=16): 3a e4 8a 96 82 a6 5e 77 a5 f5 5a d0 ed 91 c6 91
    WPS: Build Beacon and Probe Response IEs
    WPS:  * Version
    WPS:  * Wi-Fi Protected Setup State (0)
    WPS:  * Version
    WPS:  * Wi-Fi Protected Setup State (0)
    WPS:  * Response Type (2)
    WPS:  * UUID-E
    WPS:  * Manufacturer
    WPS:  * Model Name
    WPS:  * Model Number
    WPS:  * Serial Number
    WPS:  * Primary Device Type
    WPS:  * Device Name
    WPS:  * Config Methods (0)
    WPS:  * RF Bands (3)
    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
    Added interface ra0
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    State: DISCONNECTED -> SCANNING
    Starting AP scan (broadcast SSID)
    Trying to get current scan results first without requesting a new scan to speed up initial association
    ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
    Failed to get scan results
    Failed to get scan results - try scanning again
    Setting scan request: 0 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan requested (ret=0) - scan timeout 5 seconds
    EAPOL: disable timer tick
    Scan timeout - try to get results
    Received 508 bytes of scan results (4 BSSes)
    New scan results available
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:25:15:53:59:d8 ssid='NEUF_59D4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    1: 00:25:15:af:43:b8 ssid='NEUF_43B4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       selected based on WPA IE
       selected WPA AP 00:25:15:af:43:b8 ssid='NEUF_43B4'
    Trying to associate with 00:25:15:af:43:b8 (SSID='NEUF_43B4' freq=2462 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=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02 0c 00
    WPA: clearing AP RSN IE
    WPA: using GTK TKIP
    WPA: using PTK CCMP
    WPA: using KEY_MGMT WPA-PSK
    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
    ioctl[SIOCSIWGENIE]: Operation not supported
    wpa_driver_wext_set_psk
    Association request to the driver failed
    Setting authentication timeout: 5 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=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    Wireless event: cmd=0x8b04 len=12
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
    Wireless event: cmd=0x8b1a len=17
    Authentication with 00:25:15:af:43:b8 timed out.
    Added BSSID 00:25:15:af:43:b8 into blacklist
    No keys have been configured - skip key clearing
    State: ASSOCIATING -> DISCONNECTED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    EAPOL: External notification - EAP success=0
    Setting scan request: 0 sec 0 usec
    State: DISCONNECTED -> SCANNING
    Starting AP scan (broadcast SSID)
    Scan requested (ret=0) - scan timeout 5 seconds
    Scan timeout - try to get results
    Received 365 bytes of scan results (3 BSSes)
    New scan results available
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:25:15:53:59:d8 ssid='NEUF_59D4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    1: 82:25:15:af:43:b9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - no WPA/RSN IE
    2: 92:25:15:53:59:d9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:25:15:53:59:d8 ssid='NEUF_59D4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    1: 82:25:15:af:43:b9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - SSID mismatch
    2: 92:25:15:53:59:d9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - SSID mismatch
    No APs found - clear blacklist and try again
    Removed BSSID 00:25:15:af:43:b8 from blacklist (clear)
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:25:15:53:59:d8 ssid='NEUF_59D4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    1: 82:25:15:af:43:b9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - no WPA/RSN IE
    2: 92:25:15:53:59:d9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:25:15:53:59:d8 ssid='NEUF_59D4' wpa_ie_len=28 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    1: 82:25:15:af:43:b9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - SSID mismatch
    2: 92:25:15:53:59:d9 ssid='SFR WiFi Public' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan requested (ret=0) - scan timeout 5 seconds
    ^CCTRL-EVENT-TERMINATING - signal 2 received
    Removing interface ra0
    No keys have been configured - skip key clearing
    State: SCANNING -> DISCONNECTED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    EAPOL: External notification - EAP success=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
    Cancelling scan request
    Cancelling authentication timeout
    WEXT: Operstate: linkmode=0, operstate=6
    Et le processus continue d'écrire sur mon terminal donc je le stoppe.

    Si l'on en croit 'lspci', ma carte réseau Wi-Fi est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    01:00.0 Network controller: RaLink RT2860
    (elle est intégrée à mon ASUS Eeepc 1000H)

    Et voici mon driver que je charge avec 'insmod' :
    ~/Ralink/2010_07_16_RT2860_Linux_STA_v2.4.0.0/os/linux/rt2860sta.ko

    J'accède correctement aux réseaux qui ne sont pas protégé par clé.

    Savez-vous comment je peux parvenir à me connecter à un réseau Wi-Fi protégé?

    Merci.

  2. #2
    Expert éminent sénior Avatar de frp31
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Juillet 2006
    Messages
    5 196
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Juillet 2006
    Messages : 5 196
    Points : 12 264
    Points
    12 264
    Par défaut
    il se peut j'avais eu le problème à l'époque avec un eeepc701 (les premiers), parce que certains encodages de clefs, ou les clefs trop longues ne pouvaient pas passer au niveau hardware de la pseudo-carte wifi et seul la clef wifi externe fonctionnait...

    vu que tu as le cas sur une EEEPC aussi, c'est un secours à envisager si tu ne trouves pas de solutions software rapidement.

  3. #3
    Membre régulier Avatar de YuGiOhJCJ
    Profil pro
    Étudiant
    Inscrit en
    Janvier 2005
    Messages
    206
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Janvier 2005
    Messages : 206
    Points : 114
    Points
    114
    Par défaut
    Merci pour cette solution de secours mais je souhaite réellement passer par le point d'accès WiFi sécurisé WPA.

    Voici ce que iwlist me donne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
              Cell 02 - Address: 00:25:15:AF:43:B8
                        Protocol:802.11b/g
                        ESSID:"NEUF_43B4"
                        Mode:Managed
                        Frequency:2.462 GHz (Channel 11)
                        Quality:34/100  Signal level:-76 dBm  Noise level:-81 dBm
                        Encryption key:on
                        Bit Rates:54 Mb/s
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : CCMP TKIP
                            Authentication Suites (1) : PSK
    J'ai essayé une autre solution software : mon driver permet de configurer ma carte wifi à l'aide d'un fichier '/etc/Wireless/RT2860STA/RT2860STA.dat'. Celui-ci est lu au moment où je charge le driver avec 'insmod' :
    ~/Ralink/2010_07_16_RT2860_Linux_STA_v2.4.0.0/os/linux/rt2860sta.ko

    On peut préciser du WPA :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    SSID=NEUF_43B4
    Channel=11
    AuthMode=WPA
    EncrypType=TKIP
    WPAPSK=masuperclewpa
    Il est pris en compte car après cette modification, je ne peux plus me connecter aux points d'accès WiFi ouverts.

    Mais même ainsi, après une demande dynamique IP avec mon client dhclient, je ne parviens pas à récupérer une adresse.

    Pouvez-vous m'aider à configurer correctement ma carte?

    Le fichier '/etc/Wireless/RT2860STA/RT2860STA.dat' complet :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    #The word of "Default" must not be removed
    Default
    CountryRegion=5
    CountryRegionABand=7
    CountryCode=
    ChannelGeography=1
    SSID=NEUF_43B4
    NetworkType=Infra
    WirelessMode=5
    Channel=11
    BeaconPeriod=100
    TxPower=100
    BGProtection=0
    TxPreamble=0
    RTSThreshold=2347
    FragThreshold=2346
    TxBurst=1
    PktAggregate=0
    WmmCapable=1
    AckPolicy=0;0;0;0
    AuthMode=WPA
    EncrypType=TKIP
    WPAPSK=masuperclewpa
    DefaultKeyID=1
    Key1Type=0
    Key1Str=
    Key2Type=0
    Key2Str=
    Key3Type=0
    Key3Str=
    Key4Type=0
    Key4Str=
    PSMode=CAM
    AutoRoaming=0
    RoamThreshold=70
    APSDCapable=0
    APSDAC=0;0;0;0
    HT_RDG=1
    HT_EXTCHA=0
    HT_OpMode=0
    HT_MpduDensity=4
    HT_BW=1
    HT_AutoBA=1
    HT_BADecline=0
    HT_AMSDU=0
    HT_BAWinSize=64
    HT_GI=1
    HT_MCS=33
    HT_MIMOPSMode=3
    HT_DisallowTKIP=1
    HT_STBC=0
    IEEE80211H=0
    TGnWifiTest=0
    WirelessEvent=0
    CarrierDetect=0
    AntDiversity=0
    BeaconLostTime=4
    PSP_XLINK_MODE=0
    RadioOn=1

Discussions similaires

  1. Réponses: 1
    Dernier message: 30/07/2013, 11h36
  2. Identifier la nature du client connecté à un point d'accès
    Par nicolofontana12 dans le forum Entrée/Sortie
    Réponses: 0
    Dernier message: 27/12/2009, 01h12
  3. Réponses: 5
    Dernier message: 28/02/2006, 16h07
  4. [debutant]Point d'acces
    Par bolo dans le forum Développement
    Réponses: 12
    Dernier message: 24/11/2004, 03h34
  5. cmt connecter 2 pc en reseaux sans fil sans point d'acces?
    Par angelz dans le forum Développement
    Réponses: 2
    Dernier message: 11/05/2004, 00h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo