LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2014, 07:06 AM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 276

Rep: Reputation: Disabled
What are config differences between WPA & WPA2


I have developed a script for connecting to APs for ad-hoc, WEP, WPA, and WPA2. I have no WPA APs in my area and my reading of how to configure for WPA is a bit shakey.
Is the difference between WPA and WPA2 with Slackwaree that there is the rc.inet2.conf file that needs modifying or is that only if I do not use rc.wireless?
Can anyone clearly state the differences in configuration between WPA & WPA2 or provide a reference other than Alien's? I am looking for bare bones. For example I don't thing specifying frequency is necessary for WPA.
 
Old 04-21-2014, 07:22 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
The rc.inet2 file has nothing to do with wireless, and there is only a rc.inet1.conf.
For WPA/WPA2 configuration it is not needed to change anything in rc.inet1.conf or rc.wireless. All configuration takes place in /etc/wpa_supplicant.conf.

The one difference between WPA and WPA2 is in the "proto" parameter which determines which protocols the wpa_supplicant is allowed to use:
Code:
WPA = WPA/IEEE 802.11i/D3.0
RSN = WPA2/IEEE 802.11i
If not set, the "proto" parameter defaults to: "WPA RSN". Also "WPA2" can be used as an alias for "RSN".

The "pairwise" and "group" parameters mention the allowed cipher(s) to be used for your WPA/WPA2 connection. When you set pairwise and group ciphers to "CCMP TKIP" you'll be OK. This is also the default value if you don't set it.

Summarizing it: when you don't set any explicit values for the above (and for the "key_mgmt" parameter), the defaults will be OK for both WPA and WPA2.

Eric
 
Old 04-21-2014, 10:00 AM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by Alien Bob View Post
The "pairwise" and "group" parameters mention the allowed cipher(s) to be used for your WPA/WPA2 connection. When you set pairwise and group ciphers to "CCMP TKIP" you'll be OK.
The TKIP (RC4) cipher has been broken and got removed from the Wi-Fi standard since 2014. It shouldn't be used anymore.
 
Old 04-21-2014, 10:36 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
TKIP takes about 2-8 hours using Rainbow tables to break into depending on your system. WEP takes about 2 minutes.

AES as of today is still unbroken. It's currently estimated with current technology to take at least 749,822 years to break AES's encryption protocols.
 
Old 04-22-2014, 05:39 AM   #5
nix84
Member
 
Registered: Apr 2014
Posts: 276

Original Poster
Rep: Reputation: Disabled
@Alien Bob: the inet2 was a typo sorry I didn't catch it.
Appreciate your satisfying my quandaries on configuration.
Aware of WPA2 alias from UR description which was the most clear I found with the minor exception regarding rc.inet1.conf in lieu of rc.wireless. I'll need to go back and see what got me changing it as I have.

I'll take it then that WPA RSN are the defaults for proto and CCMP and TKIP are defaults for pairwise and group. I had it that TKIP was for WPA and CCMP for WPA2.

This brings up a question of WEP104 and WEP40 in wpa_supplicant.conf. Can these then be left with CCMP and TKIP in that file and are ignored except for when contacting a WEP AP?

I just scanned my script and now recall my interpretation was that rc.inet1.conf had to have the 4 changed (I used 0 with wlan0) and that ESSID was modified based on the target AP and NETMASK was set to 255.255.255.0. Is that now obviated and just change only the [4] or don't change anything at all (Using Slackware 13.37 if it matters)?
Thanks again for UR efforts and assistance.

Last edited by nix84; 04-25-2014 at 03:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wireless WPA router works fine but not WPA/WPA2 david1967 Linux - Wireless Networking 1 11-09-2013 08:26 AM
(more) WPA v. WPA2 function in Deb/XFCE Ozisl Linux - Wireless Networking 2 03-11-2012 06:14 PM
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 4 06-28-2010 03:51 AM
Not working wpa/wpa2 for ad hoc mode linux_21 Linux - Newbie 2 02-26-2010 11:59 PM
Does wpa/wpa2 work in adhoc mode?? linux_21 Linux - Newbie 0 02-24-2010 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 PM.

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