Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
doc:reseau:wpasupplicant [13/09/2018 20:17] Beta-Pictoris |
doc:reseau:wpasupplicant [13/09/2018 22:00] Beta-Pictoris |
||
---|---|---|---|
Ligne 27: | Ligne 27: | ||
===== Utilisation ===== | ===== Utilisation ===== | ||
- | ==== Tester wpa_supplicant ==== | + | ==== Tester le programme wpa_supplicant ==== |
+ | |||
+ | Le but est de vérifier que **wpa_supplicant** contrôle bien l'interface wifi. | ||
On supposera que ''wlan0'' est votre interface wifi. | On supposera que ''wlan0'' est votre interface wifi. | ||
- | On commence par tuer tous les processus ''wpa_supplicant'' tournant : | + | On commence par tuer tous les processus **wpa_supplicant** tournant : |
<code root>pkill wpa_supplicant</code> | <code root>pkill wpa_supplicant</code> | ||
- | On va, ensuite, lancer ''wpa_supplicant''en mode debug dans un terminal : | + | On va, ensuite, lancer **wpa_supplicant** dans un terminal : |
+ | <code root>wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf</code> | ||
+ | <code>Successfully initialized wpa_supplicant</code> | ||
+ | Si **wpa_supplicant** ne vous rend pas la main après avoir affiché le message, au-dessus, c'est que tout va bien. | ||
+ | |||
+ | Sinon, vous pouvez lancer **wpa_supplicant** en mode debug pour comprendre ce qui ne va pas: | ||
<code root>wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf</code> | <code root>wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf</code> | ||
- | <code>wpa_supplicant v2.4 | ||
- | random: Trying to read entropy from /dev/random | ||
- | Successfully initialized wpa_supplicant | ||
- | 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' | ||
- | ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=netdev' | ||
- | update_config=1 | ||
- | rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0 | ||
- | nl80211: Supported cipher 00-0f-ac:1 | ||
- | nl80211: Supported cipher 00-0f-ac:5 | ||
- | nl80211: Supported cipher 00-0f-ac:2 | ||
- | nl80211: Supported cipher 00-0f-ac:4 | ||
- | nl80211: Using driver-based off-channel TX | ||
- | nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1 | ||
- | nl80211: Use separate P2P group interface (driver advertised support) | ||
- | nl80211: Enable multi-channel concurrent (driver advertised support) | ||
- | nl80211: use P2P_DEVICE support | ||
- | nl80211: interface wlan0 in phy phy0 | ||
- | nl80211: Set mode ifindex 3 iftype 2 (STATION) | ||
- | nl80211: Subscribe to mgmt frames with non-AP handle 0x1f278a0 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=040a | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=040b | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=040c | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=040d | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=090a | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=090b | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=090c | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=090d | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=0409506f9a09 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=7f506f9a09 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=0801 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=06 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=0a07 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=0a11 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=1101 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=1102 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f278a0 match=0505 | ||
- | netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT) | ||
- | nl80211: driver param='(null)' | ||
- | Add interface wlan0 to a new radio phy0 | ||
- | nl80211: Regulatory information - country=00 | ||
- | nl80211: 2402-2472 @ 40 MHz 20 mBm | ||
- | nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR) | ||
- | nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR) | ||
- | nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR) | ||
- | nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR) | ||
- | nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR) | ||
- | nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR) | ||
- | nl80211: 57240-63720 @ 2160 MHz 0 mBm | ||
- | nl80211: Added 802.11b mode based on 802.11g information | ||
- | wlan0: Own MAC address: b8:27:eb:e6:99:85 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 | ||
- | wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 | ||
- | wlan0: RSN: flushing PMKID list in the driver | ||
- | nl80211: Flush PMKIDs | ||
- | wlan0: State: DISCONNECTED -> INACTIVE | ||
- | TDLS: TDLS operation not supported by driver | ||
- | TDLS: Driver uses internal link setup | ||
- | TDLS: Driver does not support TDLS channel switching | ||
- | wlan0: WPS: UUID based on MAC address: 60cae311-882e-53bf-8315-b2b6a452bd35 | ||
- | ENGINE: Loading dynamic engine | ||
- | ENGINE: Loading dynamic engine | ||
- | EAPOL: SUPP_PAE entering state DISCONNECTED | ||
- | EAPOL: Supplicant port status: Unauthorized | ||
- | nl80211: Skip set_supp_port(unauthorized) while not associated | ||
- | EAPOL: KEY_RX entering state NO_KEY_RECEIVE | ||
- | EAPOL: SUPP_BE entering state INITIALIZE | ||
- | EAP: EAP entering state DISABLED | ||
- | ctrl_interface_group=108 (from group name 'netdev') | ||
- | wlan0: Added interface wlan0 | ||
- | wlan0: State: INACTIVE -> DISCONNECTED | ||
- | nl80211: Set wlan0 operstate 0->0 (DORMANT) | ||
- | netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT) | ||
- | nl80211: Create interface iftype 10 (P2P_DEVICE) | ||
- | nl80211: New P2P Device interface p2p-dev-wlan0 (0x9) created | ||
- | Initializing interface 'p2p-dev-wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'DIR=/var/run/wpa_supplicant GROUP=netdev' 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' | ||
- | ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=netdev' | ||
- | update_config=1 | ||
- | rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0 | ||
- | nl80211: Supported cipher 00-0f-ac:1 | ||
- | nl80211: Supported cipher 00-0f-ac:5 | ||
- | nl80211: Supported cipher 00-0f-ac:2 | ||
- | nl80211: Supported cipher 00-0f-ac:4 | ||
- | nl80211: Using driver-based off-channel TX | ||
- | nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1 | ||
- | nl80211: Use separate P2P group interface (driver advertised support) | ||
- | nl80211: Enable multi-channel concurrent (driver advertised support) | ||
- | nl80211: use P2P_DEVICE support | ||
- | nl80211: interface p2p-dev-wlan0 in phy phy0 | ||
- | nl80211: Set mode ifindex 0 iftype 10 (P2P_DEVICE) | ||
- | nl80211: Failed to set interface 0 to mode 10: -22 (Invalid argument) | ||
- | nl80211: Subscribe to mgmt frames with non-AP handle 0x1f39390 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=040a | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=040b | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=040c | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=040d | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=090a | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=090b | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=090c | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=090d | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=0409506f9a09 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=7f506f9a09 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=0801 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=06 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=0a07 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=0a11 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=1101 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=1102 | ||
- | nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1f39390 match=0505 | ||
- | nl80211: Start P2P Device p2p-dev-wlan0 (0x9): Success | ||
- | nl80211: driver param='(null)' | ||
- | Add interface p2p-dev-wlan0 to existing radio phy0 | ||
- | nl80211: Regulatory information - country=00 | ||
- | nl80211: 2402-2472 @ 40 MHz 20 mBm | ||
- | nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR) | ||
- | nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR) | ||
- | nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR) | ||
- | nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR) | ||
- | nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR) | ||
- | nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR) | ||
- | nl80211: 57240-63720 @ 2160 MHz 0 mBm | ||
- | nl80211: Added 802.11b mode based on 802.11g information | ||
- | p2p-dev-wlan0: Own MAC address: 72:0b:d0:09:94:79 | ||
- | p2p-dev-wlan0: RSN: flushing PMKID list in the driver | ||
- | nl80211: Flush PMKIDs | ||
- | p2p-dev-wlan0: State: DISCONNECTED -> INACTIVE | ||
- | p2p-dev-wlan0: WPS: UUID from the first interface: 60cae311-882e-53bf-8315-b2b6a452bd35 | ||
- | ENGINE: Loading dynamic engine | ||
- | ENGINE: Loading dynamic engine | ||
- | EAPOL: SUPP_PAE entering state DISCONNECTED | ||
- | EAPOL: Supplicant port status: Unauthorized | ||
- | nl80211: Skip set_supp_port(unauthorized) while not associated | ||
- | EAPOL: KEY_RX entering state NO_KEY_RECEIVE | ||
- | EAPOL: SUPP_BE entering state INITIALIZE | ||
- | EAP: EAP entering state DISABLED</code> | ||
==== Scanner les points d'accès disponibles ==== | ==== Scanner les points d'accès disponibles ==== | ||
- | Dans un autre terminal, on va lancer l'interface commande ''wpa_cli'' : | + | Dans un autre terminal, on va lancer l'interface commande **wpa_cli** : |
<code root>wpa_cli -i wlan0</code> | <code root>wpa_cli -i wlan0</code> | ||
- | <code root>wpa_cli v2.4 | + | <code>wpa_cli v2.4 |
Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors | Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors | ||
Ligne 192: | Ligne 57: | ||
></code> | ></code> | ||
- | <note warning>A partir d'ici, on se retrouve dans l'interface commande wpa_cli.\\ | + | <note warning>A partir d'ici, on se retrouve dans l'**interface commande de wpa_cli**.\\ |
Le prompt ''>'' doit être affiché.</note> | Le prompt ''>'' doit être affiché.</note> | ||
Lancer un scan des points d'accès : | Lancer un scan des points d'accès : | ||
Ligne 215: | Ligne 80: | ||
f4:ca:e5:92:3f:59 2422 -64 [ESS] FreeWifi | f4:ca:e5:92:3f:59 2422 -64 [ESS] FreeWifi | ||
06:19:70:7c:1e:d5 2437 -87 [ESS] orange</code> | 06:19:70:7c:1e:d5 2437 -87 [ESS] orange</code> | ||
+ | Quitter **wpa_cli** : | ||
<code>> quit</code> | <code>> quit</code> | ||
+ | Arrêter **wpa_supplicant** en faisant un //CTRL-C// dans le terminal où il tourne. | ||
==== Configuration initiale ==== | ==== Configuration initiale ==== |