PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit wpa_supplicant



Plasma
07.03.07, 15:54
Hallo!

Ich benutze Kubuntu 6.06.
Da es für meine WLAN Karte keinen Linuxtreiber gab, habe ich ndiswrapper mit dem Windowstreiber eingerichtet, was bei WEP-Verschlüsselung auch optimal funktionierte.
Nun möchte ich aber WPA-verschlüsseln. Ich habe wpa_supplicant eingerichtet, "irgendwo" scheint es aber noch zu klemmen. Ich habe auch die grafische Oberfläche des wpa_supplicant kwlan eingerichtet, der mir zumindest folgende Fehlermeldung ausspuckt, wenn ich eine Verbindung aufbauen will:


KWlan konnte den Task o
Release IP address
nicht ausfuehren. Das koennte an einer temporaeren Fehlfunktion, einer falschen Systemkonfiguration (z.B. das das noetige Programm nicht installiert ist) oder einem falschen Passwort liegen. Bitte pruefen Sie das und versuchen Sie es erneut.

Die temporäre Fehlfunktion schließe ich mal aus, da es sehr ausdauernd nicht funktioniert ;) und das Passwort ist 100% richtig.

iwconfig liefert unter anderem "Access Point: Invalid ". Wo könnte ich ansetzen?

gadget
10.03.07, 22:40
1. Welche wlan-Karte hast Du?
2. Poste mal Deine wpa_supplicant.conf (PSK kannst Du ja verbergen).
3. Starte den wpa_supplicant mal manuell in der Konsole:


wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -dd
Wobei die Befehlszeile abhängig von Deiner Karte auch anders ausschauen kann (z. B. -Dwext statt -Dndiswrapper).

Gruß,
gadget

Plasma
12.03.07, 13:46
Danke schonmal.

1. Broadcom 4306

2.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=users
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1

network={
ssid="FRITZ!Box Fon WLAN 7050"
proto=WPA
key_mgmt=WPA-PSK
#psk="*********************"
auth_alg=LEAP
identity="anonymous"
phase2="auth=PAP"
priority=1
}

3. Ist in meinem Fall eth1 statt wlan0 und ergibt, das PSK nicht konfiguriert ist:

Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=100 (from group name 'users')
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=23):
46 52 49 54 5a 21 42 6f 78 20 46 6f 6e 20 57 4c FRITZ!Box Fon WL
41 4e 20 37 30 35 30 AN 7050
proto: 0x1
key_mgmt: 0x2
auth_alg: 0x4
identity - hexdump_ascii(len=9):
61 6e 6f 6e 79 6d 6f 75 73 anonymous
phase2 - hexdump_ascii(len=8):
61 75 74 68 3d 50 41 50 auth=PAP
priority=1 (0x1)
Line 17: WPA-PSK accepted for key management, but no PSK configured.
Line 17: failed to parse network block.
Failed to read read or parse configuration '/etc/wpa_supplicant.conf'.
Failed to add interface eth1

buzz768
12.03.07, 15:23
Das Rautezeichen vor psk= musst du schon herausnehmen.
http://wiki.ubuntuusers.de/WLAN/wpa_supplicant

Plasma
12.03.07, 15:39
Das Rautezeichen vor psk= musst du schon herausnehmen.
http://wiki.ubuntuusers.de/WLAN/wpa_supplicant


Oh, danke, hab ich ganz übersehen ^^
Leider besteht das Problem trotzdem weiter, wenn ich wpa_supplicant über die Konsole starte, erhalte ich nun


Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=100 (from group name 'users')
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=23):
46 52 49 54 5a 21 42 6f 78 20 46 6f 6e 20 57 4c FRITZ!Box Fon WL
41 4e 20 37 30 35 30 AN 7050
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
auth_alg: 0x4
identity - hexdump_ascii(len=9):
61 6e 6f 6e 79 6d 6f 75 73 anonymous
phase2 - hexdump_ascii(len=8):
61 75 74 68 3d 50 41 50 auth=PAP
priority=1 (0x1)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 1
id=0 ssid='FRITZ!Box Fon WLAN 7050'
Initializing interface (2) 'eth1'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCSIFFLAGS: No such file or directory
Could not set interface 'eth1' UP
SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:0b:7d:12:6a:83
Driver does not support 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
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
l2_packet_receive - recvfrom: Network is down
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
ioctl[SIOCSIWSCAN]: No such device
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 1
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
ioctl[SIOCSIWSCAN]: No such device
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 1
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
ioctl[SIOCSIWSCAN]: No such device
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0

[...]

buzz768
12.03.07, 20:00
Driver does not support WPA.

Vielleicht mal -Dwext statt -Dndiswrapper probieren.

Plasma
13.03.07, 11:06
Das bringt auch nichts.


Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=100 (from group name 'users')
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=23):
46 52 49 54 5a 21 42 6f 78 20 46 6f 6e 20 57 4c FRITZ!Box Fon WL
41 4e 20 37 30 35 30 AN 7050
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
auth_alg: 0x4
identity - hexdump_ascii(len=9):
61 6e 6f 6e 79 6d 6f 75 73 anonymous
phase2 - hexdump_ascii(len=8):
61 75 74 68 3d 50 41 50 auth=PAP
priority=1 (0x1)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 1
id=0 ssid='FRITZ!Box Fon WLAN 7050'
Initializing interface (2) 'eth1'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCSIFFLAGS: No such file or directory
Could not set interface 'eth1' UP
SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:0b:7d:12:6a:83
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
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
l2_packet_receive - recvfrom: Network is down
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
ioctl[SIOCSIWSCAN]: No such device
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 1
No suitable AP found.
Setting scan request: 5 sec 0 usec

buzz768
13.03.07, 11:36
Nun, zumindest ist die Fehlermeldung, der Treiber unterstütze kein WPA, verschwunden. Was mir außerdem noch auffällt, ist etwa folgendes:


Could not set interface 'eth1' UP
l2_packet_receive - recvfrom: Network is down
Failed to initiate AP scan

Da meine Erfahrung mit wpa_supplicant noch begrenzt ist, kann ich da erst mal nicht weiterhelfen.

gadget
19.03.07, 20:37
Hi,

spiel mal ein wenig mit Deiner wpa_supplicant.conf herum. In meiner steht nur das hier drin:

# home network; allow all valid ciphers
network={
ssid="**"
psk=**
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP TKIP
group=TKIP
}

Gruß,
gadget

Plasma
21.03.07, 19:28
Das ändert leider nichts

luzipher
18.04.07, 17:09
Hallo,

ich habe meine ,,/etc/wpa_supplicant.conf" folgendermassen abgeaendert.

network{
ssid="hier ESSID-Bezeichnung eintragen, mit Ausfuehrungszeichen"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="dein Schluessel, mit Ausfuehrungszeichen"
priority=2
}


TKIP ist fuer WPA --- CCMP fuer WPA2

laeuft unter mandriva2007.0 super