Page 2 of 16 FirstFirst 123412 ... LastLast
Results 11 to 20 of 155

Thread: HowTo: WPA with wpa_supplicant

  1. #11
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    255
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: WPA with wpa_supplicant

    Got this

    Code:
    Initializing interface 'eth0' 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=0
    eapol_version=1
    ap_scan=2
    fast_reauth=1
    Line: 22 - start of a new network block
    ssid - hexdump_ascii(len=10):
         6d 61 74 74 68 65 77 62 6f 68                     matthewboh      
    proto: 0x3
    key_mgmt: 0x2
    Line 26: invalid cipher 'TKPI'.
    Line 26: failed to parse pairwise 'CCMP TKPI'.
    Line 27: invalid cipher 'TKPI'.
    Line 27: failed to parse group 'CCMP TKPI'.
    PSK - hexdump(len=32): [REMOVED]
    Line 29: failed to parse network block.
    Failed to read read or parse configuration '/etc/wpa_supplicant.conf'.
    Failed to add interface eth0
    Cancelling scan request

  2. #12
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    255
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: WPA with wpa_supplicant

    D'oh! It's TKIP instead of TKPI - fixed that, but still having a bit of a problem. Here's the new debug file

    Code:
    Initializing interface 'eth0' 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=0
    eapol_version=1
    ap_scan=2
    fast_reauth=1
    Line: 22 - start of a new network block
    ssid - hexdump_ascii(len=10):
         6d 61 74 74 68 65 77 62 6f 68                     matthewboh      
    proto: 0x3
    key_mgmt: 0x2
    pairwise: 0x18
    group: 0x18
    PSK - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='matthewboh'
    Initializing interface (2) 'eth0'
    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
    Could not set interface 'eth0' UP
    SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf
    Own MAC address: 00:18:39:15:1c:11
    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 eth0
    Wireless event: cmd=0x8b06 len=8
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'matthewboh'
    Cancelling scan request
    WPA: clearing own WPA/RSN IE
    Automatic auth_alg selection: 0x1
    WPA: No WPA/RSN IE available from association info
    WPA: Set cipher suites based on configuration
    WPA: Selected cipher suites: group 24 pairwise 24 key_mgmt 2
    WPA: clearing AP WPA IE
    WPA: clearing AP RSN IE
    WPA: using GTK CCMP
    WPA: using PTK CCMP
    WPA: using KEY_MGMT WPA-PSK
    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
    No keys have been configured - skip key clearing
    wpa_driver_wext_set_drop_unencrypted
    State: SCANNING -> ASSOCIATING
    wpa_driver_wext_associate
    Setting authentication timeout: 60 sec 0 usec
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - EAP fail=0
    EAPOL: External notification - portControl=Auto
    Wireless event: cmd=0x8b06 len=8
    Wireless event: cmd=0x8b1a len=19
    CTRL-EVENT-TERMINATING - signal 2 received
    Removing interface eth0
    State: ASSOCIATING -> DISCONNECTED
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=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

  3. #13
    Join Date
    Sep 2005
    Beans
    762

    Re: HowTo: WPA with wpa_supplicant

    Quote Originally Posted by matthewboh View Post

    The contents of the wpa_supplicant.conf

    Code:
    	proto=WPA RSN
    	key_mgmt=WPA-PSK
    	pairwise=CCMP TKPI
    	group=CCMP TKPI

    Try to replace your code with this
    Code:
    scan_ssid=1
    key_mgmt=WPA-PSK
    proto=WPA

  4. #14
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    255
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: WPA with wpa_supplicant

    Okay - I've changed the wpa_supplicant.conf to

    Code:
    # Minimal /etc/wpa_supplicant.conf to associate with open
    #  access points. Please see 
    #  /usr/share/doc/wpasupplicant/wpa_supplicant.conf.gz for more complete
    #  configuration parameters.
    
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    
    eapol_version=1
    ap_scan=2
    fast_reauth=1
    
    ### Associate with any open access point
    ###  Scans/ESSID changes can be done with wpa_cli
    # network={
    #         ssid=""
    #         key_mgmt=NONE
    # }
    
    
    # reading passphrase from stdin
    network={
    	ssid="matthewboh"
    	scan_ssid=1
    	proto=WPA
    	key_mgmt=WPA-PSK
    #	pairwise=CCMP TKIP
    #	group=CCMP TKIP
    	psk=c43ae013621f4aa1db2d1127664349f425a2852c352c2c1d6913bfb056736b8d
    }
    and when I typed in the wpa_supplicant cmd with a redirect to a debug file, got

    Code:
    Initializing interface 'eth0' 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=0
    eapol_version=1
    ap_scan=2
    fast_reauth=1
    Line: 22 - start of a new network block
    ssid - hexdump_ascii(len=10):
         6d 61 74 74 68 65 77 62 6f 68                     matthewboh      
    scan_ssid=1 (0x1)
    proto: 0x1
    key_mgmt: 0x2
    PSK - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='matthewboh'
    Initializing interface (2) 'eth0'
    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
    Could not set interface 'eth0' UP
    SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf
    Own MAC address: 00:18:39:15:1c:11
    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 eth0
    Wireless event: cmd=0x8b06 len=8
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'matthewboh'
    Cancelling scan request
    WPA: clearing own WPA/RSN IE
    Automatic auth_alg selection: 0x1
    WPA: No WPA/RSN IE available from association info
    WPA: Set cipher suites based on configuration
    WPA: Selected cipher suites: group 30 pairwise 24 key_mgmt 2
    WPA: clearing AP WPA IE
    WPA: clearing AP RSN IE
    WPA: using GTK CCMP
    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 04 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_associate
    Setting authentication timeout: 60 sec 0 usec
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - EAP fail=0
    EAPOL: External notification - portControl=Auto
    Wireless event: cmd=0x8b06 len=8
    Wireless event: cmd=0x8b1a len=19
    CTRL-EVENT-TERMINATING - signal 2 received
    Removing interface eth0
    State: ASSOCIATING -> DISCONNECTED
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=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

  5. #15
    Join Date
    Apr 2005
    Beans
    514

    Re: HowTo: WPA with wpa_supplicant

    Try playing with the parameter "ap_scan", setting it to 0, 1 and 2 and see if something changes.
    Anyway, what wireless card do you have? It should also be a matter of driver, that is you should change "wext" (in the wpa_supplicant run command) to something else such as hostap, ndiswrapper, etc.

  6. #16
    Join Date
    Sep 2005
    Beans
    762

    Re: HowTo: WPA with wpa_supplicant

    Yes, which driver/card are you using, does it support WPA. Is WPA on at the router. etc,etc. Is it the same password.

  7. #17
    Join Date
    Aug 2006
    Location
    St. Louis Metro
    Beans
    19
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: WPA with wpa_supplicant

    I don't understand -- why is it eth0 if your wireless device is by default eth1?

    I also get "Daemonize.." as the output of "sudo wpa_supplicant -Bw -Dwext -i eth0 -c/etc/wpa_supplicant.conf -dd"

  8. #18
    Join Date
    Apr 2005
    Beans
    514

    Re: HowTo: WPA with wpa_supplicant

    Quote Originally Posted by beetee2 View Post
    I don't understand -- why is it eth0 if your wireless device is by default eth1?

    I also get "Daemonize.." as the output of "sudo wpa_supplicant -Bw -Dwext -i eth0 -c/etc/wpa_supplicant.conf -dd"
    In the HowTo I supposed the wireless card was eth0, but you have to change this with your device (as I wrote in the HowTo itself).

    As for your output of wpa_supplicant, it's right if you are running it (you have to get "Daemonize..."), while if you want to see a detailed output for debug, just take the "-B" flag out and add "-dd".
    Last edited by luca_linux; September 26th, 2006 at 02:04 PM.

  9. #19
    Join Date
    Sep 2006
    Beans
    54
    Distro
    Ubuntu 6.06

    Re: HowTo: WPA with wpa_supplicant

    luca_linux... Thank you very much. I have been fighting with this for a long time and I feel I am now really close. WPA-PSK is linking and my interface (ath0) is receiving an IP address via DHCP. The only problem is the networking drops off from time to time... I opened a terminal window and let it "iwevent" to see what has been happening and here is the result...

    Code:
    onioneater36@dell-c840-linux:~$ iwevent
    Waiting for Wireless Events from interfaces...
    18:45:22.846118   ath0     New Access Point/Cell address:Not-Associated
    18:45:22.950340   ath0     Set ESSID:"my_wlan"
    18:45:25.190388   ath0     Scan request completed
    18:45:25.190576   ath0     Set ESSID:"my_wlan"
    18:45:25.194708   ath0     New Access Point/Cell address:00:0F:B5:10:F9:77
    18:45:25.326064   ath0     Custom driver event:MLME-REPLAYFAILURE.indication(keyid=0 unicast addr=00:0f:b5:23:bd:15)
    18:45:35.236426   ath0     New Access Point/Cell address:Not-Associated
    18:45:35.236653   ath0     Set ESSID:off/any
    18:45:37.475151   ath0     Scan request completed
    18:45:37.475325   ath0     Set ESSID:"my_wlan"
    18:45:37.479323   ath0     New Access Point/Cell address:00:0F:B5:10:F9:77
    18:45:37.627722   ath0     Custom driver event:MLME-REPLAYFAILURE.indication(keyid=0 unicast addr=00:0f:b5:23:bd:15)
    Anyone have any idea how I can correct this problem??? Your guide taught me alot about what is going on and I really appreciate it.
    ASUS A8N32-SLI, AMD X2 4200+ (200x11=2.2GHz)
    Corsair XMS 2048 2-3-3-6-1T @ 2.6V, eVGA 7800GT , WD 74GB Raptor,WD 250GB Sata2
    Windows XP Pro, Ubuntu 6.06
    Dell C840 Lappy Ubuntu 6.06 w/WPA wifi, Dell P3 500 Ubuntu 6.06 w/SCSI scanner,samba

  10. #20
    Join Date
    Sep 2005
    Beans
    762

    Re: HowTo: WPA with wpa_supplicant

    Check if you have more then one "wpa_supplicant" running in the system monitor.
    Or more then one "dhclient3"

Page 2 of 16 FirstFirst 123412 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •