LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Wireless WEP encryption (https://www.linuxquestions.org/questions/linux-security-4/wireless-wep-encryption-320286/)

chris71mach1 05-05-2005 01:41 AM

Wireless WEP encryption
 
I need to figure out how to get WEP encryption running from a Linksys WRT54G wireless router to 2 wireless boxes, one running WinXP home and the other running debain sarge. setting it up on the router and the windows box should be a breeze, but i dont know where to set up the WEP on the linux box, or what file to edit with the encryption key.

any help, docs, and whatever else would be appreciated.

thanks

Matir 05-05-2005 10:35 PM

man iwconfig.
as in, 'iwconfig wlan0 key HEXWEPKEY'

raxxal 05-06-2005 06:54 AM

Re: Wireless WEP encryption
 
Quote:

Originally posted by chris71mach1
I need to figure out how to get WEP encryption running from a Linksys WRT54G wireless router to 2 wireless boxes, one running WinXP home and the other running debain sarge. setting it up on the router and the windows box should be a breeze, but i dont know where to set up the WEP on the linux box, or what file to edit with the encryption key.

any help, docs, and whatever else would be appreciated.

thanks

This is a script that I have in my home dir, if the WiFi does not start when the machine boots, I type this commands, I put them in a file called "wlan", that's it:

echo "Loading ndiswrapper..."
modprobe ndiswrapper

echo "Setting mode Managed..."
iwconfig wlan0 mode Managed

echo " -- Setting ESSID"
iwconfig wlan0 essid HomeNet

echo " --Setting to channel 11..."
iwconfig wlan0 channel 11

echo " --Turning on managed mode..."
iwconfig wlan0 mode Managed

echo " --Setting encryption key"
iwconfig wlan0 key restricted XXXXE6358666EEFA3B0624XXXX

echo "Bringing up interface wlan0..."
ifconfig wlan0 up

echo "Activating UP address via DHCP..."
dhclient wlan0

chadwick 05-25-2007 08:41 PM

Thanks raxxal! Works like a charm.


All times are GMT -5. The time now is 08:38 PM.