LinuxQuestions.org
Visit Jeremy's Blog.
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 08-18-2005, 07:47 PM   #1
odysseus.lost
LQ Newbie
 
Registered: Jun 2005
Distribution: FC1-3, Ubuntu 6.06
Posts: 20

Rep: Reputation: 0
how to keep iwconfig encryption key


Hi,

how can I keep the key value on iwconfig? Everytime that the wireless device goes ifdown the key is lost. I believe that the same applies when it goes ifup. So, everytime I have to ifup the wireless device and after a second set the key value. A couple of posts mention some shell scripts to do the job. Is that the only and recommended way? And what about the key??? Isn't it kind of a security leak passing it unencrypted into a text file?

Cheers.

Last edited by odysseus.lost; 08-18-2005 at 07:55 PM.
 
Old 08-18-2005, 08:35 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I do mine with a shell script. It's not like the WEP key is that secret. Most windows wifi utilities just store it unencrypted in the registry.

If someone has compromised your computer, that's probably a bigger issue than them just getting the WEP key
 
Old 08-18-2005, 08:37 PM   #3
koobert637
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian Etch (mostly :D)
Posts: 16

Rep: Reputation: 0
Different distrobutions have different methods of storing network settings, so check your distrobutions documentation about networking. On debian, you have to edit /etc/network/interfaces and add something like wireless_key (Your key here)

About security the only way someone could really read it is if they had already rooted your box, in which case you are more screwed than you think
 
Old 08-19-2005, 03:52 AM   #4
odysseus.lost
LQ Newbie
 
Registered: Jun 2005
Distribution: FC1-3, Ubuntu 6.06
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the help. I guess a shell script might do the job till I see where Fedora keeps the network devices settings. And trully indeed the only way for someone to get the key is to be root... provided your permissions are 700.
 
Old 09-04-2005, 12:05 AM   #5
johnny5
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
help???

does anyone have a real answer for this. i am currently in the same position. i have everything working correctly,
but on reboot all of the settings are gone.

installed w/ndiswrapper
setup iwconfig
ndiswrapper -m

so, wlan0 is seen on bootup, but no settings are saved. do i need to include entries in /etc/network....
if so, what. someone has got an easy answer for this other than setting up a script to run on boot.

j5
 
Old 09-04-2005, 05:25 AM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Unless you save the settings to a file the computer knows to look for on boot, they'll most likely be lost every reboot. Slackware has the rc.local file that is scanned for commands at every boot, but of course every Distro does things slightly differently. Look for a file where you can define such things in the startup scripts and you should be fine.
 
Old 09-04-2005, 11:28 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
For those using KDE, one could give kwifimanager a try.
 
Old 09-04-2005, 03:10 PM   #8
johnny5
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
the answer

ok. true to my word.. here it is. this is a full description of how to configure a wireless card that is not supported by default.
NOTE: i am using Kubuntu (although it works with its base, Ubuntu) and a truemoble 1350 (broadcom).

ok.

#apt-get install ndiswrapper-utils

this will install ndiswrapper. the other vital component is the winXP driver. go to support.dell.com and find the driver for truemoble
1350 (if your using a different card just find the driver) -- you won't be able to use the newest driver. you will need to unpack it..
i used a windows system because fudge figuring out on linux. save the .inf file (in my case bcmwl5a.inf or bcmwl5.inf) to some removable
device and transfer to linux system.

#ndiswrapper -i /path/to/.inf

make sure installed

#ndiswrapper -l

should say it is installed and there is a device that works with it. if it doesn't, find a different driver.

#modprobe ndiswrapper

for linux to "see" the card/driver/ndiswrapper

#ndiswrapper -m

or

#nano /etc/modules

this is to add ndiswrapper to modules .... so, your card will be loaded on boot. if you choose the second option, as i did, 'nano' will
start up and you will be able to add 'ndiswrapper' to one of the lines. each module to its own line!! example:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

ide-cd
ide-disk
ide-generic
lp
mousedev
psmouse
ndiswrapper <---------WHAT I ADDED

you see i have added ndiswrapper. save this... directions are on the bottem of screen. now you must configure the network interfaces

#nano /etc/network/interfaces

you'll be presented with the following:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface

_______________________________________________________________________this is what you need to pay attention to______ADDED

iface eth0 inet dhcp
auto eth0

iface wlan0 inet dhcp
wireless-essid MYESSID
wireless-key MYWEPKEY
auto wlan0
_______________________________________________________________________________________________ADDED



the area with the lines are added, so don't get confused. what i have added under both 'iface eth0 inet dhcp' and 'ifance wlan0 inet dhcp' the option 'auto xxx'. under the wlan0 section you must add 'wireless-essid YOURESSID' and 'wireless-key YOURWEPKEY'. now save. restart. done. another note: i
use nano, but you may use kate, vi, etc. you can go through the process of iwconfig, but i don't think it will be needed since your system will look to this to get the neccessary info. goood'a'luucka!
 
  


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
ndiswrapper adding encryption key error and on Mandrake / Mandriva 10.1 mihanson Linux - Wireless Networking 1 05-08-2005 09:20 AM
Unable to set encryption key Cisco Aironet 350, RH 8.0 arbit0 Linux - Wireless Networking 1 05-23-2004 07:40 PM
CD encryption bypassed by a single key... acid_kewpie General 4 10-09-2003 10:50 PM
wireless encryption key shoot2kill Linux - Wireless Networking 7 10-02-2002 01:18 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM

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

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