Page 1 of 1

Hidden Wirless Network WEP

Posted: 2012/02/14 21:51:46
by Joelolly
I have spent the past two days trying to figure out how to install a driver for the Broadcom 4313. Yeah. That was a pain. But....SUCCESS! I have it installed now and can connect to the open wireless AP's at the college I attend. However, my AP at home is hidden =( I can connect to it using Windows, but there is no normal WEP security option on my Centos OS. I've researched and played around with this issue until I've had enough. After I set up the connection, it acts like it wants to connect, then tells me to authenticate (something along those lines). Keep in mind I'm trying to do this through the GUI part of the Centos OS. Perhaps I've missed some commands needed to make this connection available? Any help would be greatly appreciated!

Hidden Wirless Network WEP

Posted: 2012/02/15 01:38:19
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

You don't say how you configured the driver, but if you did not follow the [url=http://elrepo.org/tiki/wl-kmod]ELRepo wl-kmod[/url] approach then be aware that the driver will likely break with the next kernel update.

I've not used WEP for a long time as WPA is far superior, but it [i]should[/i] be supported. Did you use "Connect to hidden wireless network..." in nm-applet?

Try doing [code]tail -f /var/log/messages[/code]as [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]root[/url] while trying to connect and see if anything informative shows up. You could also temporarily enable the SSID broadcast while trying to connect.

If more help is needed then please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh" and showing us the output file.

Re: Hidden Wirless Network WEP

Posted: 2012/03/27 20:54:43
by Joelolly
Thanks for the reply. I used that method of compiling the driver.

I went to Connect to Hidden Wireless in NM. The only WEP options available are WEP 40/128 Bit Key (which uses 26 hex characters) and WEP 128 Bit Passphrase (which I'm pretty sure only allows 10 characters. The key to my AP is a 13 character password similar to 123456-123456. It tries to connect several times, but tells me authentication is needed.

Here is what I get from running the suggested commands:

[Joe@joe ~]$ su
Password:
[root@joe Joe]# tail -f /var/log/messages
Mar 27 10:23:48 joe NetworkManager[1912]: Activation (p1p2) Stage 5 of 5 (IP Configure Commit) scheduled...
Mar 27 10:23:48 joe NetworkManager[1912]: Activation (p1p2) Stage 4 of 5 (IP4 Configure Get) complete.
Mar 27 10:23:48 joe NetworkManager[1912]: Activation (p1p2) Stage 5 of 5 (IP Configure Commit) started...
Mar 27 10:23:48 joe avahi-daemon[1924]: Joining mDNS multicast group on interface p1p2.IPv4 with address 192.168.1.40.
Mar 27 10:23:48 joe avahi-daemon[1924]: New relevant interface p1p2.IPv4 for mDNS.
Mar 27 10:23:48 joe avahi-daemon[1924]: Registering new address record for 192.168.1.40 on p1p2.IPv4.
Mar 27 10:23:49 joe NetworkManager[1912]: (p1p2): device state change: 7 -> 8 (reason 0)
Mar 27 10:23:49 joe NetworkManager[1912]: Policy set 'System p1p2' (p1p2) as default for IPv4 routing and DNS.
Mar 27 10:23:49 joe NetworkManager[1912]: Activation (p1p2) successful, device activated.
Mar 27 10:23:49 joe NetworkManager[1912]: Activation (p1p2) Stage 5 of 5 (IP Configure Commit) complete.
Mar 27 10:42:58 joe NetworkManager[1912]: user_connection_updated_cb: assertion `old_connection != NULL' failed
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) starting connection 'TEC-332484'
Mar 27 10:42:58 joe NetworkManager[1912]: (eth0): device state change: 3 -> 4 (reason 0)
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Mar 27 10:42:58 joe NetworkManager[1912]: (eth0): device state change: 4 -> 5 (reason 0)
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0/wireless): connection 'TEC-332484' requires no security. No secrets needed.
Mar 27 10:42:58 joe NetworkManager[1912]: Config: added 'ssid' value 'TEC-332484'
Mar 27 10:42:58 joe NetworkManager[1912]: Config: added 'scan_ssid' value '1'
Mar 27 10:42:58 joe NetworkManager[1912]: Config: added 'key_mgmt' value 'NONE'
Mar 27 10:42:58 joe NetworkManager[1912]: Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Mar 27 10:42:58 joe NetworkManager[1912]: Config: set interface ap_scan to 1
Mar 27 10:42:58 joe NetworkManager[1912]: (eth0): supplicant connection state: disconnected -> scanning
Mar 27 10:43:24 joe NetworkManager[1912]: Activation (eth0/wireless): association took too long, failing activation.
Mar 27 10:43:24 joe NetworkManager[1912]: (eth0): device state change: 5 -> 9 (reason 11)
Mar 27 10:43:24 joe NetworkManager[1912]: Activation (eth0) failed for access point (TEC-332484)
Mar 27 10:43:24 joe NetworkManager[1912]: Marking connection 'TEC-332484' invalid.
Mar 27 10:43:24 joe NetworkManager[1912]: Activation (eth0) failed.
Mar 27 10:43:24 joe NetworkManager[1912]: (eth0): device state change: 9 -> 3 (reason 0)
Mar 27 10:43:24 joe NetworkManager[1912]: (eth0): deactivating device (reason: 0).
Mar 27 10:43:24 joe NetworkManager[1912]: Policy set 'System p1p2' (p1p2) as default for IPv4 routing and DNS.
Mar 27 10:43:24 joe NetworkManager[1912]: Policy set 'System p1p2' (p1p2) as default for IPv4 routing and DNS.


Here is my system info:

Information for general problems.
[code]
== BEGIN uname -rmi ==
2.6.32-220.el6.i686 i686 i386
== END uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
centos-release-6-2.el6.centos.7.i686
== END rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 6.2 (Final)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN free -m ==
total used free shared buffers cached
Mem: 3917 588 3329 0 26 282
-/+ buffers/cache: 279 3638
Swap: 4094 0 4094
== END free -m ==

== BEGIN rpm -qa yum\* rpm-\* python | sort ==
python-2.6.6-29.el6.i686
rpm-build-4.8.0-19.el6.i686
rpm-libs-4.8.0-19.el6.i686
rpm-python-4.8.0-19.el6.i686
yum-3.2.29-22.el6.centos.noarch
yum-metadata-parser-1.1.2-16.el6.i686
yum-plugin-fastestmirror-1.1.30-10.el6.noarch
yum-plugin-security-1.1.30-10.el6.noarch
yum-utils-1.1.30-10.el6.noarch
== END rpm -qa yum\* rpm-\* python | sort ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.teklinks.com
* extras: www.gtlib.gatech.edu
* updates: mirror.raystedman.net
repo id repo name status
base CentOS-6 - Base enabled: 4,764
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
extras CentOS-6 - Extras enabled: 4
updates CentOS-6 - Updates enabled: 474
repolist: 5,242
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==

#
# /etc/fstab
# Created by anaconda on Fri Jan 27 12:06:33 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=a658b499-7d1c-4516-97a8-52e4d999d0b2 / ext4 defaults 1 1
UUID=ad57ba2c-eb20-410e-9c66-15ed441ae611 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 95G 3.7G 87G 5% /
tmpfs 2.0G 484K 2.0G 1% /dev/shm
/dev/sr0 3.6G 3.6G 0 100% /media/CentOS_6.2_Final
== END df -h ==

== BEGIN fdisk -l ==

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9f123ca9

Device Boot Start End Blocks Id System
/dev/sda1 1 13 102400 de Dell Utility
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 13 26 102400 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 26 47747 383321088 7 HPFS/NTFS
/dev/sda4 47747 60802 104859648 5 Extended
/dev/sda5 47748 60280 100663296 83 Linux
/dev/sda6 60280 60802 4193280 82 Linux swap / Solaris
== END fdisk -l ==

== BEGIN parted -l ==
Model: ATA WDC WD5000BEVT-7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary fat16 diag
2 106MB 211MB 105MB primary ntfs boot
3 211MB 393GB 393GB primary ntfs
4 393GB 500GB 107GB extended
5 393GB 496GB 103GB logical ext4
6 496GB 500GB 4294MB logical linux-swap(v1)


Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label

== END parted -l ==

== BEGIN blkid ==
/dev/sda1: SEC_TYPE="msdos" LABEL="DELLUTILITY" UUID="3030-3030" TYPE="vfat"
/dev/sda2: LABEL="System Reserved" UUID="3A6ACECF6ACE875B" TYPE="ntfs"
/dev/sda3: UUID="964AD0D14AD0AF6D" TYPE="ntfs"
/dev/sda5: UUID="a658b499-7d1c-4516-97a8-52e4d999d0b2" TYPE="ext4"
/dev/sda6: UUID="ad57ba2c-eb20-410e-9c66-15ed441ae611" TYPE="swap"
== END blkid ==

== BEGIN cat /proc/mdstat ==
Personalities :
unused devices: <none>
== END cat /proc/mdstat ==

== BEGIN pvs ==
== END pvs ==

== BEGIN vgs ==
No volume groups found
== END vgs ==

== BEGIN lvs ==
No volume groups found
== END lvs ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-220.el6.i686
kernel-devel-2.6.32-220.el6.i686
kernel-firmware-2.6.32-220.el6.noarch
kernel-headers-2.6.32-220.4.1.el6.i686
== END rpm -qa kernel\* | sort ==

== BEGIN lspci -nn ==
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 18)
00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 18)
00:16.0 Communication controller [0780]: Intel Corporation 5 Series/3400 Series Chipset HECI Controller [8086:3b64] (rev 06)
00:1a.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 06)
00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 06)
00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 06)
00:1c.4 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [8086:3b4a] (rev 06)
00:1d.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 06)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a6)
00:1f.0 ISA bridge [0601]: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller [8086:3b0b] (rev 06)
00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller [8086:3b2f] (rev 06)
00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 06)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M96 [Mobility Radeon HD 4650] [1002:9480]
01:00.1 Audio device [0403]: ATI Technologies Inc RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]
12:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
13:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
== END lspci -nn ==

== BEGIN lsusb ==
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 001 Device 004: ID 0c45:6480 Microdia Sonix 1.3 MP Laptop Integrated Webcam
Bus 002 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 002 Device 004: ID 413c:8161 Dell Computer Corp. Integrated Keyboard
Bus 002 Device 005: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]
== END lsusb ==

== BEGIN rpm -qa kmod\* kmdl\* ==
== END rpm -qa kmod\* kmdl\* ==

== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr C0:CB:38:81:24:B0
inet6 addr: fe80::c2cb:38ff:fe81:24b0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:616 errors:0 dropped:0 overruns:0 frame:6019
TX packets:5 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43929 (42.8 KiB) TX bytes:1750 (1.7 KiB)
Interrupt:17

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

p1p2 Link encap:Ethernet HWaddr F0:4D:A2:9B:D6:09
inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::f24d:a2ff:fe9b:d609/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8011 errors:0 dropped:0 overruns:0 frame:0
TX packets:6544 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8721646 (8.3 MiB) TX bytes:1002726 (979.2 KiB)
Interrupt:37 Base address:0x2000

== END ifconfig -a ==

== BEGIN brctl show ==
bridge name bridge id STP enabled interfaces
== END brctl show ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 p1p2
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 p1p2
== END route -n ==

== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
search jcjc.edu
nameserver 192.168.1.1
== END cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
matahari-network 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:off 3:off 4:off 5:off 6:off
wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==

[/code]
[root@joe tmp]#


Sorry for taking so long to acknowledge your post. I have been trying to figure this one out for myself, but have hit a wall.

Re: Hidden Wirless Network WEP

Posted: 2012/03/27 21:27:50
by pschaff
Your 13 character passphrase should be used to generate WEP keys, either 10 hex digits for 64-bit WEP or 26 hex digits for 128-bit WEP. See [url=http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy]Wired Equivalent Privacy[/url]. A google on [url=http://www.google.com/search?q=wep+passphrase+to+hex&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-a]wep passphrase to hex[/url] will turn up web pages that can perform the translation for you. Entering the passphrase should generate keys like:

64-bit (40-bit) keys
1: 43FBF61051
2: D3AD690B94
3: D8DF02E29A
4: DA92F657FE

128-bit (104-bit) key
EBBB1DB5CA6800C3D7224AC7EE

Try entering the hex keys into nm-applet.