Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 20 Apr 2014, 14:21
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Solving Wifi encryption problems (WEP/WPA) in Puppy 4
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Tue 27 May 2008, 19:48    Post subject:  Solving Wifi encryption problems (WEP/WPA) in Puppy 4  

I'm seeing quite a few wifi connection problems when using WEP/WPA/WPA2 in Puppy4.
I have responded several times that the problem is probably due to encryption-related modules not loading, and this has provided the solution on at least one occasion.
But it seems that few people with this problem check earlier posts before posting their own query.
So here is the same information again as a standalone post. It can also be found in the "How to configure wifi from the commandline" thread under "PART 4: Troubleshooting, encryption problems" -
http://www.murga-linux.com/puppy/viewtopic.php?p=159339#159339

A common cause of wifi connection problems is that encryption requires some additional cryptographic modules to be loaded. Sometimes the wifi modules (which are already loaded) will automatically load the extra modules, but sometimes not. The solution is quite simple; manually load the required modules.

These modules are related to WEP encryption:
ieee80211_crypt_wep
arc4
ecb

These modules are related to WPA encryption:
ieee80211_crypt_ccmp
ieee80211_crypt_tkip
aes (in Puppy 4.1 this is "aes_generic")
crc32c
michael_mic (only for the ipw2100/ipw2200 modules)

UPDATE June 9 2008: In recent kernels there is one more important cryptographic module related to wifi -
crypto_blkcipher

Some wifi modules do not use generic cryptographic modules, but have unique encryption-related modules. For example, the ath_pci (MADWiFi) module depends on the wlan_wep module.

Last edited by tempestuous on Sun 08 Jun 2008, 22:42; edited 1 time in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 28 May 2008, 20:55    Post subject:  

tempestuous, thanks very much for your work on this.

The new module loading mechanism in 4.1 may have fixed that problem.

I noticed right off in 4.1alpha that some extra modules had loaded, that were not loaded in 4.00. I don't recall exactly what got loaded in 4.00, but just running lsmod right now on my 4.1alpha1 system, a partial clip:

arc4 2944 2
ecb 4608 2
crypto_blkcipher 20868 1 ecb
ath5k 95748 0
mac80211 132364 1 ath5k
cfg80211

Please don't rush and download 4.1alpha1 though! It has other things concerned with module loading that are quite broken. alpha2 should be more usable.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
astrogreek

Joined: 21 May 2008
Posts: 29

PostPosted: Wed 04 Jun 2008, 11:59    Post subject: Re: Solving Wifi encryption problems (WEP/WPA) in Puppy 4  

tempestuous wrote:
...

A common cause of wifi connection problems is that encryption requires some additional cryptographic modules to be loaded. Sometimes the wifi modules (which are already loaded) will automatically load the extra modules, but sometimes not. The solution is quite simple; manually load the required modules.

These modules are related to WEP encryption:
ieee80211_crypt_wep
arc4
ecb
....

I am one of those with problems. I tried your suggestion. When I try to load these modules I get the message they are already loaded. I have been trying for weeks now, and it is getting really frustrating.
Back to top
View user's profile Send private message 
mustangcobra44

Joined: 08 Jun 2008
Posts: 10

PostPosted: Sun 08 Jun 2008, 02:08    Post subject:  

Played w/ puppy before but never really got into it but I decided to give it another try. My main problem is the WPA. I use ndiswrapper and get on open network fine so I'm guessing it's not the driver. I tried the suggestions temp. made here and in the previous thread that was linked here but still can't get WPA working. I was initially using AES instead of TKIP which I thought might be an issue when I looked at the supplicant file but changing my wireless router to TKIP didn't help. Any help you can provide? Let me knwo if you need any specs on what equipment I'm using and I'll be glad to provide. I also did the debugging (-dd). Does that log it out a file? To be honest I didn't think to look before I rebooted back in into XP so I could get online and post question. Thanks in advance for any help. Would really like to get off of XP but have to clear this hurdle first.
Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 607
Location: Chatswood, NSW

PostPosted: Sun 08 Jun 2008, 08:50    Post subject:  

G'day,
Have you checked that your /etc/wpa_supplicant.conf file has your correct information, particularly the pass-key phrase? I find the wizard may get this wrong if I enter this via the wizard. I manually edit the wpa_supplicant.conf file before I do anything with network wizard and have not had any problems with ndiswrapper and WPA.
Another thing could be to look for and delete any faulty wpa_supplicant file in /var/run. If at first you don't succeed, the residue from not succeeding at first seems to remain and interfere with subsequent attempts to get it right.
As you say you can access open networks with your Windows driver then it is probably not a driver issue, just the WPA stuff.
Good luck,
David S.
Back to top
View user's profile Send private message 
mustangcobra44

Joined: 08 Jun 2008
Posts: 10

PostPosted: Sun 08 Jun 2008, 11:41    Post subject:  

Everything looked pretty good but I did discover and issue with the conf file when I ran everything tempetsuous suggested from command line. When I ran wpa_passphrase <ssid> <wpakey> it gave me an error on the key. I had to use "'s around my passkey in the conf file because it starts with & and it wasn't able to parse it. However, that wasn't my only issue.
I also discovered through many various trial and erros that my WAP had to be set to TKIP (instead of AES - does Puppy 4 support AES??) and that I had to broadcast my SSID. When I turned off SSID broadcast I got error messages along the lines of "key mismatch" which took me a bit to figure out.
But now that I've be able to get it work consistently with manual commands I may play with the gui/wizard a bit more since I know my WAP is setup correctly to work with my Puppy install and conf file.

Edit - forgot to post exactly what I had to do to get it working (besides the few things mentioned above). I have to go to a terminal window and enter these commands in this order:
modprobe ndiswrapper
ifconfig wlan0 up
rm /var/run/wpa_supplicant/*
modprobe ieee80211_crypt_ccmp
modprobe ieee80211_crypt_tkip
modprobe aes
modprobe crc32c
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -dd

Then open a new terminal and enter this to get dhcp address.
dhcpcd wlan0
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Sun 08 Jun 2008, 22:43    Post subject:  

UPDATE June 9 2008: From reading the documentation included in the iwlwifi (Intel) source code, I discovered one more wifi encryption-related module: crypto_blkcipher.
I have just updated the first post.
Back to top
View user's profile Send private message 
mustangcobra44

Joined: 08 Jun 2008
Posts: 10

PostPosted: Mon 09 Jun 2008, 12:59    Post subject:  

tempestuous - anything in the works to support AES or to be able to connect even if my WAP isn't SSID broadcasting?
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Mon 09 Jun 2008, 21:52    Post subject:  

AES (WPA2) works fine. Forum member JustGreg is the expert in that area. You need to use /etc/wpa_supplicant2.conf, not /etc/wpa_supplicant.conf. If you open both of these configuration files in Geany you will see the slight differences. Thus -
Code:
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant2.conf -dd


Regarding hidden SSID's, I recall that this requires a certain value for "ap_scan=". You may need to experiment with "0", "1", and "2".
Back to top
View user's profile Send private message 
mustangcobra44

Joined: 08 Jun 2008
Posts: 10

PostPosted: Tue 10 Jun 2008, 14:13    Post subject:  

Thanks. I'll play with the ap_scan setting this evening if I get a chance.

On the AES issue. I'd love to run WPA2 instead of WPA but I have an older laptop and the nic doesn't support WPA2 (or so I've discovered from the windows side). I thought the WPA2 support was hardware so unless there's some way to to make the card play WPA2 with Puppy I'm handcuffed into running WPA which leads us back to preferring AES over TKIP. Seems like it's always something. Surprised)

Thanks again for your help.
Back to top
View user's profile Send private message 
astrogreek

Joined: 21 May 2008
Posts: 29

PostPosted: Wed 18 Jun 2008, 14:08    Post subject: Re: Solving Wifi encryption problems (WEP/WPA) in Puppy 4  

tempestuous wrote:


UPDATE June 9 2008: In recent kernels there is one more important cryptographic module related to wifi -
crypto_blkcipher

Some wifi modules do not use generic cryptographic modules, but have unique encryption-related modules. For example, the ath_pci (MADWiFi) module depends on the wlan_wep module.

Is the crypto_blkcipher module related to WEP or WPA? When I tried to load I got a message saying "driver not found" or something like that. The other modules are already loaded.

I have tried every suggestion I have come over, and I still cannot connect. I am about to give up on Linux Puppy. How come it is so easy in Windows, Xubunu, and Linux Mint?
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2290
Location: Winsted, CT - USA

PostPosted: Wed 18 Jun 2008, 21:45    Post subject: Re: Solving Wifi encryption problems (WEP/WPA) in Puppy 4  

astrogreek wrote:
I have tried every suggestion I have come over, and I still cannot connect. I am about to give up on Linux Puppy.


In the immortal words of the immoral William Jefferson Clinton, "I feel your pain."

I've vowed to ditch Puppy on more than a few occasions, but what does work, works so well I stay on.

Quote:
How come it is so easy in Windows, Xubunu, and Linux Mint?


Answers

Windows - Bill threw enough money and resources at the problem

ewwbuntu - huge user base for testing and significant "other" resources

Linux Mint - pure luck

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Wed 18 Jun 2008, 22:34    Post subject: Re: Solving Wifi encryption problems (WEP/WPA) in Puppy 4  

I thought that crypto_blkcipher was related to WEP encryption, but I see from JustGreg's results in Puppy4.01alpha2 that the crypto_blkcipher module is loaded after a WPA connection ... so maybe it's necessary for both WEP and WPA.

astrogreek wrote:
When I tried to load I got a message saying "driver not found"

astrogreek it's really important to reveal the exact Puppy version you are using when asking for help. It's also useful to reveal the device and the driver (module) in question.
The crypto_blkcipher module definitely exists in the experimental Puppy4-k2.6.25, and Puppy4.1 alpha1 and alpha2.
The crypto_blkcipher does not exist in earlier Puppy versions.

Generally, wifi in Puppy4.x is still under development and testing.
Wifi under Puppy3.x is quite solid.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 19 Jun 2008, 00:53    Post subject:  

mustangcobra44 wrote:
tempestuous - anything in the works to support AES or to be able to connect even if my WAP isn't SSID broadcasting?
Actually you are better of not broadcasting the SSID.

After some disbelief, reading and experimentation I finally accepted the fact that broadcasting the SSID is more secure than the alternative.

http://www.murga-linux.com/puppy/viewtopic.php?p=207892#207892

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send private message Visit poster's website 
JustGreg

Joined: 24 May 2005
Posts: 653
Location: Connecticut USA

PostPosted: Thu 19 Jun 2008, 15:57    Post subject:
Subject description: wpa_supplicant configurate file ap-scan values
 

Based on some tests reported here:
http://www.murga-linux.com/puppy/viewtopic.php?t=29205

One should use ap_scan=1 for networks that broadcast the SSID and ap_scan=2 for networks with a hidden SSID. This agrees with the wpa-supplicant documentation. I have also found that ap_scan=2 sometimes works with a broadcasted SSID network. However, ap_scan=1 always (for me works with broadcasted SSID networks) and will not worked with a hidden SSID network.

The bottom line, I use ap_scan=1 for a broadcast SSID network and ap_scan=2 for a hidden SSID network. I hope this helps.

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0878s ][ Queries: 12 (0.0100s) ][ GZIP on ]