LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-16-2013, 08:55 AM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
Help with wireless Ad-hoc wpa & wep security


I have a working peer-to-peer Ad-hoc wireless (wlan0) network setup in Fedora-17 via Network Manager.
However, it only works if Network Manager wireless-security option is set to "NONE".

The past few days I have been trying to get WEP or WPA security working but without success & I've
concluded that both of these security measures only support "Managed" wireless networks that use
(AP) Access Points.

Is my conclusion correct?

Since I don't have a Managed Wireless setup, I can't even verify that that WEP & Wpa will work with
there either.

Beside Network Manager, I tried to setup WEP & WPA on wlan0 manually via /usr/sbin/wpa_supplicant
as follows.

wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
ssid="homenet"
key_mgmt=NONE
wep_key0="abcde"
#wep_key1=0102030405
#wep_key2="1234567890123"
wep_tx_keyidx=0
priority=5
}


Here are the commands I tried:
wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf -d
wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -d


Here is the output:
stan@localhost ~]$ wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -d
wpa_supplicant v1.0-rc3
random: Trying to read entropy from /dev/random
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' 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'
ctrl_interface_group='wheel'
Priority group 5
id=0 ssid='homenet'
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
ioctl[SIOCSIWPMKSA]: Operation not permitted
ioctl[SIOCSIWMODE]: Operation not permitted
Could not configure driver to use managed mode
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
WEXT: SIOCSIWAUTH(param 7 value 0x1) failed: Operation not permitted)
l2_packet_init: socket(PF_PACKET): Operation not permitted
Failed to add interface wlan0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
Driver did not support SIOCSIWENCODEEXT
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_set_countermeasures
WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: Operation not permitted)
wlan0: No keys have been configured - skip key clearing
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: Operation not permitted)
netlink: Operstate: linkmode=0, operstate=6
Could not set interface wlan0 flags: Operation not permitted
 
Old 02-17-2013, 07:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Moved: This thread is more suitable in the Wireless Networking forum and has been moved accordingly to help your thread/question get the exposure it deserves.
BTW try:
Code:
network={
 ssid="homenet"
 proto=WPA
 key_mgmt=WPA-NONE
 pairwise=NONE
 group=TKIP
 psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
and apparently not all cards seem to be able to do WPA in Ad-hoc mode so check your cards chipset details against the Wireless tools HCL.
 
Old 02-19-2013, 08:46 PM   #3
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
I finally got wireless (wlan0) WEP securuty working on Fedora-17 but WPA security still refuses to work.

Here are the NetworkManager settings I used to get WEP working:
System Settings * Network (icon):
[x] System Connection

security (tab)
WEP
keytype: Hex or Ascii (For 64 or 128 Bit)
key: xxxxxxxxxxxxx
[x] show password

authentication: shared key

Here is the proof WEP security is working:
[stan@localhost ~]$ nmcli dev wifi
SSID BSSID MODE FREQ RATE SIGNAL SECURITY ACTIVE
'homenet' 2E:70:6C:88:92:AB Ad-Hoc 2412 MHz 54 MB/s 100 WEP yes

Here is the message I got while trying to get WPA wireless security working:
[root@localhost stan]# ifup wlan0
Error: Connection activation failed: WPA Ad-Hoc disabled due to kernel bugs

Note: I use Kernel-3.7.1 which I built from source code. It is not a Fedora
distribution Kernel. This could be the problem but I seem to recall seeing
somthing about kernel bugs & WPA on the web.

Any, I plan to upgrade & build a new kernel shortly. I'll give WPA security
another try then. If it works then, I'll post the results.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to WEP or Unsecured Wireless (WPA is fine) Poetics Linux - Wireless Networking 7 07-06-2010 04:15 AM
NM & WICD cannot connect to WEP/WPA 2 wireless elusive_night Linux - Newbie 3 09-28-2009 06:04 PM
Why can I see wireless networks but never connect, WPA/WEP or open? Dan.b Linux - Newbie 3 09-03-2009 10:43 PM
linux WPA/WEP wireless m2azer Linux - Wireless Networking 6 07-18-2007 03:21 PM
Fedora Core 2 With Wireless Ad-hoc ~~ Wep Problem Deiota Linux - Wireless Networking 1 10-15-2004 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration