Page 12 of 16 FirstFirst ... 21011121314 ... LastLast
Results 111 to 120 of 155

Thread: HowTo: WPA with wpa_supplicant

  1. #111
    Join Date
    Aug 2007
    Beans
    1

    Smile Re: HowTo: WPA with wpa_supplicant

    This howto is awesome!!

    Installed ubuntu fiesty on my thinkpad t41 two days ago in which everything worked sweet except for the wireless connection.

    struggled for hours as I'm using WPA TKIP on my 3com router until stumbled on this. Followed all the tips/options until it worked. Only prob is I have to manually set the route(route add) for my eth1.

    Below are the details. If anybody has a same prob with a t41

    wifi card;
    PRO/Wireless LAN 2100 3B Mini PCI

    eth1 IEEE 802.11b ESSID:"arlevien" Nickname:"ipw2100"
    Mode:Managed Frequency:2.452 GHz Access Point: 00:14:7C:BD:FD:A4
    Bit Rate=11 Mb/s Tx-Power:16 dBm
    Retry limit:7 RTS thrff Fragment thrff
    Power Managementff
    Link Quality=90/100 Signal level=-68 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:97 Missed beacon:0



    me@T41:/etc/network$ cat interfaces
    auto lo
    iface lo inet loopback

    auto eth2
    iface eth2 inet dhcp

    #auto ath0
    #iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp

    auto eth0
    iface eth0 inet static
    address 192.168.1.50
    netmask 255.255.255.0
    gateway 192.168.1.1


    iface eth1 inet static
    address 192.168.1.52
    netmask 255.255.255.0
    gateway 192.168.1.1
    pre-up wpa_supplicant -Bw -Dwext -i eth1 -c/etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant

    my wpa_supplicant.conf
    T41:/etc$ cat wpa_supplicant.conf
    ctrl_interface=/var/run/wpa_suplicant
    ap_scan=1

    network={
    ssid="mysid"
    scan_ssid=1
    proto=WPA RSN
    key_mgmt=WPA-PSK
    #pairwise=CCMP TKIP
    #group=CCMP TKIP
    psk=mypskkeyfromstep1
    }


    thanks!

  2. #112
    Join Date
    Oct 2007
    Beans
    4

    Re: HowTo: WPA with wpa_supplicant

    my WPA passkey has an exlamation point in it and its causing an error with the wpa_passphrase command, is there anyway around this?

  3. #113
    Join Date
    Sep 2007
    Location
    California
    Beans
    64
    Distro
    Lubuntu

    Re: HowTo: WPA with wpa_supplicant

    Nice HOWTO! Worked perfectly for me on Xubuntu 7.04 with an Atheros AR5005G wireless adapter.
    Nathan

  4. #114
    Join Date
    Aug 2005
    Beans
    3

    Re: HowTo: WPA with wpa_supplicant

    Hi there,

    I think I tried all the tips and none took me to success... Maybe I am stupid, but I cannot make my WLAN WPA PSK running with Ubuntu 7.04
    With WinXP no problem, this shows the router is ok.

    MAC filter is off.

    Anyone has an idea about the wpa_supplicant output?

    olk@jagjit:/usr/share/doc/wpasupplicant/examples$ sudo wpa_supplicant -i eth1 -D ipw -c /etc/wpa_supplicant/wpa_supplicant.conf -dd >~/wpaerr
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
    ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported

    less ~/wpaerr
    Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'ipw' 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='/var/run/wpa_supplicant'
    eapol_version=1
    ap_scan=2
    Line: 11 - start of a new network block
    ssid - hexdump_ascii(len=11):
    57 4c 41 4e 2d 37 37 45 41 30 33 WLAN-77EA03
    proto: 0x1
    key_mgmt: 0x2
    pairwise: 0x18
    group: 0x8
    PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
    id=0 ssid='WLAN-77EA03'
    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
    wpa_driver_ipw_init is called
    SIOCGIWRANGE: WE(compiled)=21 WE(source)=18 enc_capa=0xf
    capabilities: key_mgmt 0xf enc 0xf
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:0e:35:9b:87:4f
    wpa_driver_ipw_set_wpa: enabled=1
    wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
    Failed to set encryption.
    wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
    Failed to set encryption.
    wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
    Failed to set encryption.
    wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
    Failed to set encryption.
    wpa_driver_ipw_set_countermeasures: enabled=0
    wpa_driver_ipw_set_drop_unencrypted: enabled=1
    Setting scan request: 0 sec 100000 usec
    Added interface eth1
    RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
    RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
    State: DISCONNECTED -> SCANNING
    Trying to associate with SSID 'WLAN-77EA03'
    Cancelling scan request
    WPA: clearing own WPA/RSN IE
    Automatic auth_alg selection: 0x1
    wpa_driver_ipw_set_auth_alg: auth_alg=0x1
    WPA: No WPA/RSN IE available from association info
    WPA: Set cipher suites based on configuration
    WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1
    WPA: clearing AP WPA IE
    WPA: clearing AP RSN IE
    WPA: using GTK TKIP
    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 02 01 00 00 50 f2 04 01 00
    00 50 f2 02
    No keys have been configured - skip key clearing
    wpa_driver_ipw_set_drop_unencrypted: enabled=1
    State: SCANNING -> ASSOCIATING
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    Setting authentication timeout: 60 sec 0 usec
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - EAP fail=0
    EAPOL: External notification - portControl=Auto
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b1a len=19
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b19 len=8
    Received 1024 bytes of scan results (4 BSSes)
    Scan results: 4
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b19 len=8
    Received 1024 bytes of scan results (4 BSSes)
    Scan results: 4
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b19 len=8
    Received 1024 bytes of scan results (4 BSSes)
    Scan results: 4
    ------
    olk@jagjit:/usr/share/doc/wpasupplicant/examples$ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:00:F0:92:C9:2C
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:5 Base address:0xc800

    eth1 Link encap:Ethernet HWaddr 00:0E:35:9B:87:4F
    inet6 addr: fe80::20e:35ff:fe9b:874f/64 Scope:Link
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:16190 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2913 errors:0 dropped:0 overruns:0 carrier:1
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:5 Base address:0x6000 Memory:d0200000-d0200fff

    eth0:avah Link encap:Ethernet HWaddr 00:00:F0:92:C9:2C
    inet addr:169.254.7.151 Bcast:169.254.255.255 Mask:255.255.0.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    Interrupt:5 Base address:0xc800

    eth1:avah Link encap:Ethernet HWaddr 00:0E:35:9B:87:4F
    inet addr:169.254.5.241 Bcast:169.254.255.255 Mask:255.255.0.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    Interrupt:5 Base address:0x6000 Memory:d0200000-d0200fff

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:225 errors:0 dropped:0 overruns:0 frame:0
    TX packets:225 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:22713 (22.1 KiB) TX bytes:22713 (22.1 KiB)

    olk@jagjit:/usr/share/doc/wpasupplicant/examples$ iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.

    eth1 unassociated ESSID:"WLAN-77EA03"
    Mode:Managed Channel=0 Access Point: Not-Associated
    Bit Rate:0 kb/s Tx-Power=20 dBm Sensitivity=8/0
    Retry limit:7 RTS thrff Fragment thrff
    Power Managementff
    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

    olk@jagjit:~$ uname -a
    Linux jagjit 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux

    olk@jagjit:~$ wpa_supplicant -v
    wpa_supplicant v0.5.5

    Thanks a lot

  5. #115
    Join Date
    Aug 2005
    Beans
    3

    Re: HowTo: WPA with wpa_supplicant

    got the solution by spending some hours trying again everything... and finally the solution was not looking at the ubuntu pages, but at debian...
    http://www.debianadmin.com/enable-wp...ntu-linux.html

    This was the best and easiest ubuntu-like solution ever... clear the cfg files and it works

  6. #116
    Join Date
    Mar 2007
    Beans
    22

    Re: HowTo: WPA with wpa_supplicant

    If I want to disable and remove wpa supplicant what should I do (besides restoring /etc/network/interfaces and deleting /etc/wpa_supplicant.conf, /etc/wpa_supplicant.conf~)?
    Should I delete /etc/wpa_supplicant? I head that it's necessary to leave the dir in place because it's used by a different WPA app-I'm not sure what it is, but it's initialized by these lines in /etc/network/interfaces:
    Code:
    wpa-psk <PSK key>
    wpa-driver wext
    wpa-key-mgmt WPA-PSK
    wpa-proto WPA
    wpa-ssid <SSID>

  7. #117
    Join Date
    Jan 2008
    Beans
    1

    Re: HowTo: WPA with wpa_supplicant

    HI! Guys

    Am struggling a lot to configure my Ubuntu 7.10's WIRED ethernet with wpa.
    At work they enabled the IEEE802.1x authentication with PEAP and encryption of MSCHAPv2 with windows domain account.
    Can you help me with this configuration.
    Desprately seeking help


    Thanks
    Nischal

  8. #118
    Join Date
    Dec 2005
    Location
    capital of beer
    Beans
    547

    Re: HowTo: WPA with wpa_supplicant

    Encrypt a wired lan? Think you may have gotten something mixed up here - encryption, asfaik, is for wlans only.
    repartitioning your installation / forever noob / Desktop on Debian Lenny / IBM T41 purring along on bog Kubuntu

  9. #119
    Join Date
    Jan 2008
    Location
    A place with no mountains
    Beans
    1,608
    Distro
    Kubuntu

    Re: HowTo: WPA with wpa_supplicant

    Thanks luca_linux

    This helped me with my issues (http://ubuntuforums.org/showthread.php?p=4377964)
    Desktop: KX Studio (Kubuntu 12.04)
    Laptop & Netbook: Kubuntu 12.04
    Tablet: Samsung Galaxy Tab 10.1
    Phone: Nexus 4 Cyanogenmod

  10. #120
    Join Date
    Feb 2008
    Location
    Quebec, Canada
    Beans
    1

    Re: HowTo: WPA with wpa_supplicant

    ingo, yes we can and should encrypt wired connection. Take a look at http://en.wikipedia.org/wiki/802.1x and alike.

    jon_mark022, I known some people have this kind of setup working. Here's a link about the process for wlan, which should not be really different from a lan setup. You'll have to go step by step: ensure data layer connectivity up to authentication to the domain.

    http://ubuntuforums.org/showthread.php?t=278603
    Last edited by northox; May 22nd, 2008 at 12:06 AM.

Page 12 of 16 FirstFirst ... 21011121314 ... 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
  •