LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-05-2017, 01:54 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
iwconfig shows no encryption, yet router is set to encrypt, why?


iwconfig gives me:
Code:
$ iwconfig
wlan2     IEEE 802.11abgn  ESSID:"ATT33Lu4E9"
          Mode:Managed  Frequency:5.785 GHz  Access Point: F8:18:97:E7:2C:A2
          Bit Rate=121.5 Mb/s   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=53/70  Signal level=-57 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:5  Invalid misc:33   Missed beacon:0
Yet the AT&T router for this shows that security is enabled. See image: ATT-5GHz.jpg. The KDE desktop network icon also shows security. See image KDEnetInfo.jpg.

Why do the command line tools (iwconfig, iwlist, ...) show no security setting, but the router and KDE desktop icon do?

WHY?
Attached Thumbnails
Click image for larger version

Name:	ATT-5GHz.jpg
Views:	38
Size:	60.4 KB
ID:	25186   Click image for larger version

Name:	KDEnetInfo.jpg
Views:	39
Size:	16.3 KB
ID:	25187  

Last edited by mfoley; 06-05-2017 at 01:55 PM.
 
Old 06-05-2017, 02:08 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
https://www.linuxquestions.org/quest...ey-off-818878/
Code:
# iwconfig wlan0
wlan0     IEEE 802.11  ESSID:"MYESSID"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: AA:AA:AA:AA:AA:AA   
          Bit Rate=39 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=63/70  Signal level=-47 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:25535   Missed beacon:0
Code:
# iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: AA:AA:AA:AA:AA:AA
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=49/70  Signal level=-61 dBm  
                    Encryption key:on
                    ESSID:"MYESSID"
                    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
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
[...]
https://en.wikipedia.org/wiki/Wired_Equivalent_Privacy

https://en.wikipedia.org/wiki/Wi-Fi_...ed_Access#WPA2

Last edited by ponce; 06-05-2017 at 02:16 PM.
 
4 members found this post helpful.
Old 06-05-2017, 11:06 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
So, seriously, iwconfig's "Encryption key" setting ONLY refers to WEP? How nearly last-century! Somebody should fix that! Very confusing; and repeatedly so given the various posts asking my same question.

Yes, running `iwlist wlan2 scanning` does show "Encryption Keyn".

Thanks - I'd have likely never figured that out.
 
Old 06-06-2017, 07:55 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
In my, albeit limited, knowledge of wireless and Linux, iwconfig knows nothing about WPA/WPA2. It was made to only work with WEP-encrypted or unencrypted networks. Once major security holes were found in WEP, the industry switched encryption protocols, and wpa_supplicant was brought about because of that. I'm not sure why iwconfig never added support for WPA directly in the program.

But basically, iwconfig doesn't recognize WPA, so it thinks the connection is unencrypted since it didn't pass a WEP key. wpa_supplicant is managing everything regarding the encryption, and iwconfig doesn't know any better.
 
1 members found this post helpful.
  


Reply

Tags
kde, security, wireless



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
iwconfig: encryption key: off? tramni1980 Linux - Wireless Networking 2 07-13-2010 01:19 PM
iwconfig shows Not-Associated Legolas327 Linux - Wireless Networking 5 07-04-2008 01:02 PM
ndiswrapper shows hardware, but iwconfig shows no device ZST Linux - Hardware 6 04-20-2006 12:15 PM
using encryption with iwconfig (wi-fi connection) MichelGillesMS Linux - Networking 1 04-01-2006 04:22 PM
how to keep iwconfig encryption key odysseus.lost Linux - Wireless Networking 7 09-04-2005 03:10 PM

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

All times are GMT -5. The time now is 07:40 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