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

Réseau Discussion :

wpa_supplicant pour se connecter à un point d'acces en wpa2


Sujet :

Réseau

  1. #1
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    192
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Transports

    Informations forums :
    Inscription : Février 2011
    Messages : 192
    Points : 107
    Points
    107
    Par défaut wpa_supplicant pour se connecter à un point d'acces en wpa2
    Bonjour,

    Depuis 2 jours je galère à connecter mon PC linux sur un reseau wifi protegé par wpa2 (personnal), encryption AES.

    je voudrais m'y connecter en IP fixe via un script. Pour le moment, mon script fait cela :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    iwconfig wlan0 essid "TNGinkoMoxa" channel auto  mode Managed rate auto txpower auto
    wpa_supplicant -iwlan0 -c /apps/script/wifi/wpa_supplicant.conf -d
    mon fichier wpa_supplicant.conf contient les infos suivantes :
    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
     
    ap_scan=1
    fast_reauth=1
     
    network={
            ssid="TNGinkoMoxa"
            priority=0
            mode=0
            proto=RSN
            key_mgmt=WPA-PSK
            auth_alg=OPEN
            pairwise=CCMP
            group=CCMP
            psk="cacacaca"
    }
    J’espère que la conf est bonne, je me suis basé sur des forums.. je pense que c'est correct.

    J'ai essayé de comprendre les logs de retour de la commande,
    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
     
    ctrl_interface='/etc/w_supplicant'
    ap_scan=1
    fast_reauth=1
    Priority group 0
       id=0 ssid='TNGinkoMoxa'
    WEXT: cfg80211-based driver detected
    wext: interface wlan0 phy: phy0
    rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
    SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf flags 0x0
    netlink: Operstate: linkmode=1, operstate=5
    wlan0: Own MAC address: 00:90:e8:2c:3d:6f
    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=4 set_tx=0 seq_len=0 key_len=0
    ioctl[SIOCSIWENCODEEXT]: Invalid argument
    Driver did not support SIOCSIWENCODEEXT
    wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
    ioctl[SIOCSIWENCODEEXT]: Invalid argument
    Driver did not support SIOCSIWENCODEEXT
    wpa_driver_wext_set_countermeasures
    wlan0: RSN: flushing PMKID list in the driver
    wlan0: Setting scan request: 0 sec 100000 usec
    WPS: Set UUID for interface wlan0
    WPS: UUID based on MAC address - hexdump(len=16): f6 d3 0d 58 9e 99 59 4f b5 5c a2 97 78 82 1c bd
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: Supplicant port status: Unauthorized
    wlan0: Added interface wlan0
    random: Got 20/20 bytes from /dev/random
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b1a len=8
    wlan0: State: DISCONNECTED -> SCANNING
    wlan0: Starting AP scan for wildcard SSID
    Scan requested (ret=0) - scan timeout 10 seconds
    EAPOL: disable timer tick
    EAPOL: Supplicant port status: Unauthorized
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b19 len=8
    wlan0: Event SCAN_RESULTS (3) received
    Received 339 bytes of scan results (1 BSSes)
    wlan0: BSS: Start scan result update 1
    wlan0: BSS: Add new id 0 BSSID 06:90:e8:2e:ad:db SSID 'TNGinkoMoxa'
    wlan0: New scan results available
    wlan0: Selecting BSS from priority group 0
    wlan0: 0: 06:90:e8:2e:ad:db ssid='TNGinkoMoxa' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-64
    wlan0:    selected based on RSN IE
    wlan0:    selected BSS 06:90:e8:2e:ad:db ssid='TNGinkoMoxa'
    wlan0: Request association: reassociate: 0  selected: 06:90:e8:2e:ad:db  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING
    wlan0: Trying to associate with 06:90:e8:2e:ad:db (SSID='TNGinkoMoxa' freq=2437 MHz)
    FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
    wlan0: Cancelling scan request
    wlan0: WPA: clearing own WPA/RSN IE
    wlan0: Automatic auth_alg selection: 0x1
    wlan0: Overriding auth_alg selection: 0x1
    wlan0: RSN: using IEEE 802.11i/D9.0
    wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
    wlan0: WPA: clearing AP WPA IE
    WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
    wlan0: WPA: using GTK CCMP
    wlan0: WPA: using PTK CCMP
    wlan0: WPA: using KEY_MGMT WPA-PSK
    wlan0: 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 02 00 00
    wlan0: No keys have been configured - skip key clearing
    wlan0: State: SCANNING -> ASSOCIATING
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    netlink: Operstate: linkmode=-1, operstate=5
    wpa_driver_wext_associate
    wpa_driver_wext_set_drop_unencrypted
    wpa_driver_wext_set_psk
    wlan0: Setting authentication timeout: 10 sec 0 usec
    EAPOL: External notification - EAP success=0
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: External notification - EAP fail=0
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: External notification - portControl=Auto
    EAPOL: Supplicant port status: Unauthorized
    RSN: Ignored PMKID candidate without preauth flag
    wlan0: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b1a len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b04 len=12
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    WEXT: if_removed already cleared - ignore event
    Wireless event: cmd=0x8b1a len=19
    ^Cwlan0: CTRL-EVENT-TERMINATING - signal 2 received
    wlan0: Removing interface wlan0
    wlan0: No keys have been configured - skip key clearing
    wlan0: State: ASSOCIATING -> DISCONNECTED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    netlink: Operstate: linkmode=-1, operstate=5
    EAPOL: External notification - portEnabled=0
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: External notification - portValid=0
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: External notification - EAP success=0
    EAPOL: Supplicant port status: Unauthorized
    wpa_driver_wext_set_countermeasures
    wlan0: No keys have been configured - skip key clearing
    wlan0: BSS: Remove id 0 BSSID 06:90:e8:2e:ad:db SSID 'TNGinkoMoxa'
    wlan0: Cancelling scan request
    wlan0: Cancelling authentication timeout
    netlink: Operstate: linkmode=0, operstate=6
    ligne 62 on voit bien qu'il y a des resultats lors du scan wifi
    ligne 64, on voit la mac address et le SSID que je cherche : scan OK

    (l'adresse MAC 06:90:e8:2e:ad:db est celel de mon point d'accès, il est donc visible.
    Je ne comprend juste pas pourquoi il ne se connecte pas, pour qu'ensuite je prenne une IP...)

    ligne 68 tentative "d'association"

    et après ça échoue...

    ainsi que ceux de syslog :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    Jul 30 09:58:09 PCEmbarque avahi-daemon[2367]: Joining mDNS multicast group on interface wlan0.IPv4 with address 172.17.1.32.
    Jul 30 09:58:09 PCEmbarque kernel: [ 1890.475657] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jul 30 09:58:09 PCEmbarque avahi-daemon[2367]: New relevant interface wlan0.IPv4 for mDNS.
    Jul 30 09:58:09 PCEmbarque avahi-daemon[2367]: Registering new address record for 172.17.1.32 on wlan0.IPv4.
    Jul 30 09:58:11 PCEmbarque ntpd[2885]: Listen normally on 17 wlan0 172.17.1.32 UDP 123
    Jul 30 09:58:11 PCEmbarque ntpd[2885]: peers refreshed
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.495325] wlan0: authenticate with 06:90:e8:2e:ad:db (try 1)
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.497270] wlan0: authenticated
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.497381] wlan0: associate with 06:90:e8:2e:ad:db (try 1)
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.500627] wlan0: RX AssocResp from 06:90:e8:2e:ad:db (capab=0x431 status=10 aid=0)
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.500637] wlan0: 06:90:e8:2e:ad:db denied association (code=10)
    Jul 30 09:58:11 PCEmbarque kernel: [ 1892.500677] wlan0: deauthenticating from 06:90:e8:2e:ad:db by local choice (reason=3)


    merci pour votre aide !

  2. #2
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    192
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Transports

    Informations forums :
    Inscription : Février 2011
    Messages : 192
    Points : 107
    Points
    107
    Par défaut
    Arf...

    on m'annonce que c'est le point d'accès le problème.. désolé pour le post..

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Se connecter à un point d'accès Wi-Fi protégé WPA/PSK
    Par YuGiOhJCJ dans le forum Matériel
    Réponses: 2
    Dernier message: 03/11/2011, 13h47
  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: 24
    Dernier message: 12/02/2007, 23h56
  4. 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