View Poll Results: Has this thread been helpful?

Voters
811. You may not vote on this poll
  • Yes

    550 67.82%
  • No

    104 12.82%
  • Somewhat

    157 19.36%
Page 181 of 184 FirstFirst ... 81131171179180181182183 ... LastLast
Results 1,801 to 1,810 of 1832

Thread: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

  1. #1801
    Join Date
    Sep 2010
    Beans
    19

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Hey all;

    I am attempting to get my wireless interface to work on my laptop (seeing how far I can go without GUI!) and it isnt associating with the access point. Here is the output of the commands listed in the OP:

    Note, the AP I am trying to connect to is "wireless".

    Code:
    Log of route 
    Sat Dec  4 08:25:50 2010
    
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
    link-local      *               255.255.0.0     U     1000   0        0 eth1
    default         192.168.1.1     0.0.0.0         UG    100    0        0 eth1
    Code:
    Log of iwconfig 
    Sat Dec  4 08:26:26 2010
    
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      IEEE 802.11  Access Point: Not-Associated   
              Link Quality:5  Signal level:0  Noise level:166
              Rx invalid nwid:0  invalid crypt:0  invalid misc:0
    Code:
    Log of sudo iwlist scan 
    Sat Dec  4 08:27:55 2010
    
    lo        Interface doesn't support scanning.
    
    eth0      Interface doesn't support scanning.
    
    eth1      Scan completed :
              Cell 01 - Address: 00:22:75:B2:F1:1C
                        ESSID:"wireless"
                        Mode:Managed
                        Frequency:2.452 GHz (Channel 9)
                        Quality:5/5  Signal level:-30 dBm  Noise level:-91 dBm
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Encryption key:on
                        Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                                  18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
                                  24 Mb/s; 48 Mb/s
              Cell 02 - Address: 0C:D5:02:17:F9:0B
                        ESSID:"westell8057"
                        Mode:Managed
                        Frequency:2.437 GHz (Channel 6)
                        Quality:1/5  Signal level:-85 dBm  Noise level:-83 dBm
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (1) : TKIP
                            Authentication Suites (1) : PSK
                        Encryption key:on
                        Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                                  24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                                  12 Mb/s; 48 Mb/s
    Code:
    Log of sudo lshw -C network 
    Sat Dec  4 08:30:03 2010
    
      *-network
           description: Wireless interface
           product: BCM4322 802.11a/b/g/n Wireless LAN Controller
           vendor: Broadcom Corporation
           physical id: 0
           bus info: pci@0000:02:00.0
           logical name: eth1
           version: 01
           serial: 00:26:5e:81:61:68
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=wl0 driverversion=5.60.48.36 ip=192.168.1.195 latency=0 multicast=yes wireless=IEEE 802.11abgn
           resources: irq:18 memory:f0200000-f0203fff
      *-network DISABLED
           description: Ethernet interface
           product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           vendor: Realtek Semiconductor Co., Ltd.
           physical id: 0
           bus info: pci@0000:08:00.0
           logical name: eth0
           version: 02
           serial: 00:21:cc:3b:f2:29
           size: 10MB/s
           capacity: 100MB/s
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=yes multicast=yes port=MII speed=10MB/s
           resources: irq:43 ioport:a000(size=256) memory:f0410000-f0410fff memory:f0400000-f040ffff memory:f0420000-f043ffff
    Code:
    auto lo
    iface lo inet loopback
    
    #auto eth0
    #iface eth0 inet dhcp
    
    auto eth1
    iface eth1 inet static
    address 192.168.1.195
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8
    netmask 255.255.255.0
    wpa-driver wext
    wpa-ssid wireless
    wpa-ap-scan 1
    wpa-proto RSN
    wpa-pairwise TKIP CCMP
    wpa-group TKIP CCMP
    wpa-key-mgmt WPA-PSK
    wpa-psk 4d654660a791a199f0aaabb5a961f37e24507903e270ebd736b50eb63e9e82ef
    Code:
    Log of sudo ifdown -v eth1 
    Sat Dec  4 08:30:52 2010
    
    Configuring interface eth1=eth1 (inet)
    run-parts --verbose /etc/network/if-down.d
    run-parts: executing /etc/network/if-down.d/avahi-autoipd
    run-parts: executing /etc/network/if-down.d/upstart
    run-parts: executing /etc/network/if-down.d/wpasupplicant
     route del default gw 192.168.1.1 metric 100 eth1 
    ifconfig eth1 down
    run-parts --verbose /etc/network/if-post-down.d
    run-parts: executing /etc/network/if-post-down.d/avahi-daemon
    run-parts: executing /etc/network/if-post-down.d/wireless-tools
    run-parts: executing /etc/network/if-post-down.d/wpasupplicant
    wpa_supplicant: terminating wpa_supplicant daemon via pidfile /var/run/wpa_supplicant.eth1.pid
    Stopped /sbin/wpa_supplicant (pid 1991).
    wpa_supplicant: removing /lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.eth1.pid
    Code:
    Log of sudo ifup -v eth1 
    Sat Dec  4 08:31:01 2010
    
    Configuring interface eth1=eth1 (inet)
    run-parts --verbose /etc/network/if-pre-up.d
    run-parts: executing /etc/network/if-pre-up.d/wireless-tools
    run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
    wpa_supplicant: wpa-driver wext
    wpa_supplicant: /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.eth1.pid -i eth1 -D wext -C /var/run/wpa_supplicant
    wpa_supplicant: creating sendsigs omission pidfile: /lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.eth1.pid
    wpa_supplicant: ctrl_interface socket located at /var/run/wpa_supplicant/eth1
    wpa_supplicant: wpa-ap-scan 1 -- OK
    wpa_supplicant: configuring network block -- 0
    wpa_supplicant: wpa-ssid "wireless" -- OK
    wpa_supplicant: wpa-psk ***** -- OK
    wpa_supplicant: wpa-pairwise TKIP CCMP -- OK
    wpa_supplicant: wpa-group TKIP CCMP -- OK
    wpa_supplicant: wpa-key-mgmt WPA-PSK -- OK
    wpa_supplicant: wpa-proto RSN -- OK
    wpa_supplicant: enabling network block 0 -- OK
    
    ifconfig eth1 192.168.1.195 netmask 255.255.255.0  	   	up
     route add default gw 192.168.1.1 metric 100 eth1 
    run-parts --verbose /etc/network/if-up.d
    run-parts: executing /etc/network/if-up.d/avahi-autoipd
    run-parts: executing /etc/network/if-up.d/avahi-daemon
    run-parts: executing /etc/network/if-up.d/ntpdate
    run-parts: executing /etc/network/if-up.d/upstart
    run-parts: executing /etc/network/if-up.d/wpasupplicant
    Thanks so much I hope I can get this to work without relying on networkmanager (it works using that, btw. I removed it before doing this tutorial).

  2. #1802
    Join Date
    Sep 2010
    Beans
    19

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Update I got it working! Thanks again for the walkthrough. I screwed up the WPA psk. I put the SSID and passphrase in backwards I think

  3. #1803
    Join Date
    Jan 2009
    Beans
    40

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Please help me. On my desktop runs WinXP Pro with D-Link DWA-125 USB WiFi dongle. It tethers Inet as Ad-Hoc with WPA2-PSK and AES. Android device connects well with these settings. But Linux on handheld cannot connect in Network Manager. I tried use your method. This is my /etc/network/interfaces file:

    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet static
    address 192.168.0.3
    gateway 10.64.202.150
    dns-nameservers XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
    netmask 255.255.255.0
    wpa-driver wext
    wpa-ssid <AP-name>
    wpa-ap-scan 2
    wpa-proto RSN
    wpa-pairwise CCMP
    wpa-group CCMP
    wpa-key-mgmt WPA-PSK
    wpa-psk <longkey>
    But when I try restart network I get error message from ifup:

    * Reconfigyring network interfaces
    ioctl[SI0CSIWPMKSA]:Invalid argument *1
    ioctl[SI0CSIWPMKSA]:Invalid argument *1
    SI0CADDRT: Network is unreachabe *2
    Failed to bring up eth0 *2
    I tried use DHCP instead of static IP - looks like Wi-Fi authentication passes well. I can see connected device MAC address in Wi-Fi list. *2 messages with DHCP didn't appear. But *1 messages appeared too. But Wi-Fi connection can't get dynamic IP (probably provider limitation). As I told Android device works well with static IP.
    Last edited by Gourmand; December 6th, 2010 at 01:33 PM.

  4. #1804
    Join Date
    Jan 2009
    Beans
    40

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Hmmm... iwconfig tells:

    Code:
    eth0      MRVL-SD8686  ESSID:<SSID> [2]  
              Mode:Managed  Frequency:2.412 GHz  Access Point: <MAC>   
              Bit Rate:54 Mb/s   
              Encryption key:<too big>   Security mode:open
              ^^^^^^^^^^^^^^^^^^^^^^^^
              Power Management:on
              Link Quality=100/100  Signal level=0 dBm  Noise level=-96 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:105
              Tx excessive retries:77  Invalid misc:234   Missed beacon:0
    what's wrong with security key? I've got it following topic instructions... or it's just too big to show?

    and why "Security mode: open"?
    Last edited by Gourmand; December 6th, 2010 at 01:49 PM.

  5. #1805
    Join Date
    Jan 2009
    Beans
    40

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Then if I try DHCP:

    Code:
    auto eth0
    #iface eth0 inet static
    iface eth0 inet dhcp
    #addresss 192.168.0.3
    #gateway 10.64.202.150
    #dns-nameservers <...>
    #netmask 255.255.255.0
    wpa-driver wext
    wpa-ssid <...>
    wpa-ap-scan 2
    wpa-proto RSN
    wpa-pairwise CCMP
    wpa-group CCMP
    wpa-key-mgmt WPA-PSK
    wpa-psk <...>
    What happiness:

    Code:
    * Reconfiguring network interfaces...                                                          ioctl[SIOCSIWPMKSA]: Invalid argument
    ioctl[SIOCSIWPMKSA]: Invalid argument
    There is already a pid file /var/run/dhclient.eth0.pid with pid 18093
    killed old client process, removed PID file
    Internet Systems Consortium DHCP Client V3.1.2
    Copyright 2004-2008 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/eth0/00:27:13:f0:25:2f
    Sending on   LPF/eth0/00:27:13:f0:25:2f
    Sending on   Socket/fallback
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.

  6. #1806
    Join Date
    Nov 2010
    Beans
    2

    Re: WPA2 / RSN, NDiswrapper, Static IP, Hidden ESSID, WUSB54G V4

    Quote Originally Posted by squibT View Post
    @weiman01,

    ...
    auto wlan0
    iface wlan0 inet static
    wpa-driver wext (tried ndiswrapper also)
    wpa-conf managed
    wpa-ssid <my_essid>
    wpa-ap-scan 2
    wpa-proto RSN
    wpa-pairwise CCMP
    wpa-group CCMP
    wpa-key-mgmt WPA-PSK
    wpa-psk <my_64_hex_key>
    address 192.168.168.40
    netmask 255.255.255.0
    network 192.168.168.0
    broadcast 192.168.168.255
    gateway 192.168.168.230
    dns-nameservers 192.168.168.230

    ...
    /etc/init.d/network restart
    ...

    squibt
    Perfect! Thank you so much! Straight forward and simply working!
    Peter

  7. #1807
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    38
    Distro
    Ubuntu 6.06

    Question Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Quote Originally Posted by wieman01 View Post
    Some users reported (including myself) that the network has to be restarted every time after startup... Apparently this is a bug.

    Here is a workaround that helps restart the network during boot so that one does not have to do it manually after logging on to the system.

    Create startup script:

    Add this line & save file:

    Change permission (executable):

    Create symbolic link:

    [Note: You may have to choose a boot sequence other than S40.]

    Restart...


    Hey all,

    Thanks to this great HOW-TO the wireless network is operational.
    Nevertheless I'm struggling with the boot sequence.

    It works at boot up if I stop the server with
    Code:
    init 0
    It doesn't if I restart with
    Code:
    init 6
    I created a link in /etc/rcS.d/S90**** to restart the networking

    I'm with the server version 11.4

    Thanks for any help
    Why I don't hit you ..... because you are bigger than me .....yeah!

  8. #1808
    Join Date
    Apr 2011
    Beans
    3

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Simple WLAN configuration script
    http://hencvik.googlecode.com/files/wlan-config.sh

    Code:
    $ wget http://hencvik.googlecode.com/files/wlan-config.sh
    $ chmod a+rx wlan-config.sh
    $ sudo ./wlan-config.sh
    Attached Images Attached Images
    Last edited by needDrivers; December 5th, 2011 at 11:00 AM. Reason: added screenshots

  9. #1809
    Join Date
    Jun 2011
    Beans
    5
    Distro
    Ubuntu

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    After following your instructions to the letter, I've successfully enabled a wifi connection with wpa2 aes on my box running ubuntu server 11.10. Thanks

  10. #1810
    Join Date
    May 2006
    Location
    100acrewood
    Beans
    7,294
    Distro
    Kubuntu 17.10 Artful Aardvark

    Re: HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

    Quote Originally Posted by tech_ninja View Post
    After following your instructions to the letter, I've successfully enabled a wifi connection with wpa2 aes on my box running ubuntu server 11.10. Thanks
    Wow, I am amazed the tutorial still does the job after so many years. Oh well, I got more gray hair, but WPA2 is still the same.

Page 181 of 184 FirstFirst ... 81131171179180181182183 ... 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
  •