Page 8 of 16 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 155

Thread: HowTo: WPA with wpa_supplicant

  1. #71
    Join Date
    Sep 2006
    Beans
    5

    Re: HowTo: WPA with wpa_supplicant

    I'm having problems. I've confirmed that my Broadcom 4318 is working; iwlist eth1 scan shows me both mine and my neighbour's networks. Here's what my /etc/wpa_supplicant.conf looks like:
    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="obcomputer"
            scan_ssid=1
            proto=WPA
            key_mgmt=WPA-PSK
    #       pairwise=CCMP TKIP
    #       group=CCMP TKIP
            psk=792f89822002762c11thisnotmyrealpsk114236da73a3f7c9b
    }
    When I run sudo wpa_supplicant -Dndiswrapper -ieth1 -c/etc/wpa_supplicant.conf -dd I see a few things that don't look right. Here I've bolded them:

    Code:
    Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A' bridge '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):
         6f 62 63 6f 6d 70 75 74 65 72                     obcomputer      
    scan_ssid=1 (0x1)
    proto: 0x1
    key_mgmt: 0x2
    PSK - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='obcomputer'
    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
    SIOCGIWRANGE: WE(compiled)=20 WE(source)=18 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:14:a4:3b:7c:63
    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
    RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
    RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'obcomputer'
    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
    State: SCANNING -> ASSOCIATING
    WEXT: Operstate: linkmode=-1, operstate=5
    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
    Authentication with 00:00:00:00:00:00 timed out.
    Added BSSID 00:00:00:00:00:00 into blacklist
    State: ASSOCIATING -> DISCONNECTED
    WEXT: Operstate: linkmode=-1, operstate=5
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    Setting scan request: 0 sec 0 usec
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'obcomputer'
    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
    State: SCANNING -> ASSOCIATING
    WEXT: Operstate: linkmode=-1, operstate=5
    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
    Authentication with 00:00:00:00:00:00 timed out.
    BSSID 00:00:00:00:00:00 blacklist count incremented to 2
    State: ASSOCIATING -> DISCONNECTED
    WEXT: Operstate: linkmode=-1, operstate=5
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    Setting scan request: 0 sec 0 usec
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'obcomputer'
    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
    State: SCANNING -> ASSOCIATING
    WEXT: Operstate: linkmode=-1, operstate=5
    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
    CTRL-EVENT-TERMINATING - signal 2 received
    Removing interface eth1
    State: ASSOCIATING -> DISCONNECTED
    WEXT: Operstate: linkmode=-1, operstate=5
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    Failed to disable WPA in the driver.
    No keys have been configured - skip key clearing
    WEXT: Operstate: linkmode=0, operstate=6
    Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
    Cancelling scan request
    @matthewboh
    I looks like you have similar hardware to mine. Maybe you could post your wpa_supplicant.conf?

    @all
    Any help or suggestions would be greatly appreciated. I'd love to get my new laptop online on linux.

    EDIT: Nevermind, I have it working. I changed the driver to wext and ap_scan to 1. Though no one had a chance to help me directly, I'd like to thank you all for your help; this thread has really been helpful.
    Last edited by MrNormS; December 27th, 2006 at 06:43 PM.

  2. #72
    Join Date
    Jan 2007
    Beans
    1

    Re: HowTo: WPA with wpa_supplicant

    This seems a good thread, but after I do step one, and then Gedit /etc/wpa_supplicant.conf the file does not exist, why is this?

  3. #73
    Join Date
    May 2006
    Beans
    Hidden!

    Re: HowTo: WPA with wpa_supplicant

    Thanks for the Howto. I got it to work such that I can connect if I run

    Code:
    sudo /etc/init.d/networking restart
    however, when the computer starts up, it doesn't seem to be getting an IP. How do I configure it so I don't have to manually restart networking? Thanks.

  4. #74
    Join Date
    Jan 2007
    Location
    Chennai, India
    Beans
    96
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: WPA with wpa_supplicant

    I've followed the HOW-TO exactly.
    I've got a Netgear WG111v2 USB dongle that I have installed using NDISWRAPPER.

    'iwlist scan' shows me the available network:

    Code:
    anjan@supernal:~$ iwlist wlan0 scan
    wlan0     Scan completed :
              Cell 01 - Address: 00:14:6C:F0:03:06
                        ESSID:"AnjanWireless"
                        Protocol:IEEE 802.11bg
                        Mode:Master
                        Channel:11
                        Encryption key:on
                        Bit Rates:54 Mb/s
                        Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 22 24 36 48 54 
                        Quality:17  Signal level:0  Noise level:2
                        Extra: Last beacon: 0ms ago
    Output of 'iwconfig'
    Code:
    anjan@supernal:~$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wlan0     802.11b/g link..  ESSID:"AnjanWireless"  
              Mode:Managed  Channel=11  Access Point: Not-Associated   
              Bit Rate=11 Mb/s   
              Retry:on   Fragment thr:off
              Link Quality:0  Signal level:0  Noise level:0
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    
    sit0      no wireless extensions.
    Contents of my 'interfaces' file:

    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    auto eth1
    iface eth1 inet dhcp
    
    auto eth2
    iface eth2 inet dhcp
    
    auto ath0
    iface ath0 inet dhcp
    
    auto wlan0
    iface wlan0 inet dhcp
    wireless-essid AnjanWireless
    wpa-driver wext
    wpa-conf master
    wpa-ssid AnjanWireless
    wpa-ap-scan 1
    wpa-proto WPA
    wpa-pairwise TKIP
    wpa-group TKIP
    wpa-key-mgmt WPA-PSK
    wpa-psk <hidden>

    First, before reading this How-To, I had my 'interfaces' file without all the wpa config commands. Instead I had these two lines:

    Code:
    pre-up wpa_supplicant -Bw -Dwext -ieth0 -c/etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant
    Contents of my 'wpa_supplicant.conf' file:

    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
    
    network={
            ssid="AnjanWireless"
    	scan_ssid=1
           	key_mgmt=WPA-PSK
    	proto=WPA
           	#pairwise=CCMP TKIP
           	#group=CCMP TKIP
            #psk="<hidden>"
            psk=<hidden>
    }
    Everything seems OK to me. But I just cannot hook up to my wireless router, even after disabling my wired connection (eth0) and disconnecting my ethernet cable.

    Please, I've spent three days on this now and Ubuntu is really starting to frustrate me. Someone help!

  5. #75
    Join Date
    Jan 2007
    Beans
    55
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HowTo: WPA with wpa_supplicant

    Just a thought:
    Have you tried using NetworkManager? (choose network-manager-gnome in synaptic)
    Once it is installed, comment out all the lines that refer to your wireless interface in your interfaces file
    Then reboot

    Some references: 1 2

  6. #76
    Join Date
    Jan 2007
    Location
    Chennai, India
    Beans
    96
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: WPA with wpa_supplicant

    Quote Originally Posted by merry_meerkat View Post
    Just a thought:
    Have you tried using NetworkManager? (choose network-manager-gnome in synaptic)
    Once it is installed, comment out all the lines that refer to your wireless interface in your interfaces file
    Then reboot

    Some references: 1 2
    Yes, I've tried Network Manager. I've tried both the versions, one from the Synaptics Package Manager and the other from SVN. The Synaptics version has only WEP in it. The SVN version was supposed to display WPA, but gave me only one additional encryption option: LEAP.

    Forgetting about encryption, both versions of Network Manager were unable to connect to even an unencrypted wireless network, as has been the case with all methods I've tried.

  7. #77
    Join Date
    Jan 2007
    Beans
    1
    Distro
    Xubuntu 6.10 Edgy

    Re: HowTo: WPA with wpa_supplicant

    I finally managed to get it going thanks to this info after banging my head against a wall for a few hours.

    Like MrNormS, I was using -Dndiswrapper instead of -Dwext, in my case due to
    https://help.ubuntu.com/community/WifiDocs/WPAHowTo , I ran wpa_supplicant -h and saw the list of drivers, assuming ndiswrapper was the one.

    Other than that, the only hard part was actually finding the right windows drivers for my card.

  8. #78
    Join Date
    Jan 2007
    Location
    Chennai, India
    Beans
    96
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: WPA with wpa_supplicant

    To heck with WPA. I've temporarily disabled all security on my router. I want Edgy to connect to my unsecured router.

    My "interfaces" file:
    Code:
    auto lo
    iface lo inet loopback
    
    #auto eth0
    #iface eth0 inet dhcp
    
    #auto eth1
    #iface eth1 inet dhcp
    
    #auto eth2
    #iface eth2 inet dhcp
    
    #auto ath0
    #iface ath0 inet dhcp
    
    auto wlan0
    iface wlan0 inet dhcp
    wireless-essid AnjanWireless
    wireless-channel 2
    wireless-mode managed
    Output of sudo /etc/init.d/networking restart

    Code:
    anjan@supernal:~$ sudo /etc/init.d/networking restart
     * Reconfiguring network interfaces...                                          There is already a pid file /var/run/dhclient.wlan0.pid with pid 8963
    killed old client process, removed PID file
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:18:4d:08:c7:0e
    Sending on   LPF/wlan0/00:18:4d:08:c7:0e
    Sending on   Socket/fallback
    Error for wireless request "Set Frequency" (8B04) :
        SET failed on device wlan0 ; Operation not supported.
    There is already a pid file /var/run/dhclient.wlan0.pid with pid 5798864
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:18:4d:08:c7:0e
    Sending on   LPF/wlan0/00:18:4d:08:c7:0e
    Sending on   Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    I think these two lines are the most important:
    Code:
    Error for wireless request "Set Frequency" (8B04) :
        SET failed on device wlan0 ; Operation not supported.
    I have no idea why SET is not working. Any ideas? I can't even connect to an unsecured network!!!

  9. #79
    Join Date
    Oct 2005
    Location
    Texas
    Beans
    35
    Distro
    Ubuntu 6.10 Edgy

    Question Re: HowTo: WPA with wpa_supplicant

    hi, i just had a few questions. I've been using Ubuntu for more than a year, but i don't understand a lot. In this thread, there was some stuff that was mentioned that I'm hoping can be clarified.

    1) when the code (like in Question 2) is entered into the terminal to start up the connection and the response is "Daemonizing", what does that mean?

    2) What is the difference between
    Code:
    sudo wpa_supplicant -w -Dmadwifi -i eth0 -c/etc/wpa_supplicant.conf -dd
    and
    Code:
    sudo wpa_supplicant -w -Dwext -i eth0 -c/etc/wpa_supplicant.conf -dd
    3) what is the difference between eth0 and ath0?

    4) Where does the ndiswrapper fit into all of this?

    5) what is dhclient3?

    Thank you in advance. I hope to understand using the codes better, and actually get my connection working with the new understanding of how it all works.
    Last edited by aresgoddess; January 17th, 2007 at 06:27 PM.
    "The only stupid question is the one not asked."

  10. #80
    Join Date
    Oct 2006
    Location
    St. Louis
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HowTo: WPA with wpa_supplicant

    I finally got everything configured for wpa_supplicant. It works beautifully, but, I always have to manually dhcp after the boot completes.
    Code:
    sudo dhclient
    How do I get the system to do that after it starts wpa_supplicant?

    /etc/network/interfaces:
    Code:
    auto lo
    iface lo inet loopback
    
    auto ath0
    iface ath0 inet dhcp
    pre-up wpa_supplicant -Bw -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant
    /etc/wpa_supplicant.conf:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    
    network={
    	ssid="xxxxxx"
    	psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    	key_mgmt=WPA-PSK
    	proto=WPA
    	priority=5
    }
    
    network={
    	ssid=""
    	key_mgmt=NONE
    	priority=2
    }

Page 8 of 16 FirstFirst ... 678910 ... 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
  •