Results 1 to 10 of 10
By default, Ubuntu does not seem to support WPA Encryption. I am very new to linux. How hard would it be to get WPA (Pre Shared Key) support working?
How ...
- 08-20-2005 #1Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
WPA For Wireless
By default, Ubuntu does not seem to support WPA Encryption. I am very new to linux. How hard would it be to get WPA (Pre Shared Key) support working?
How would I go about doing that?- EndianX -
- 08-20-2005 #2
You will need to download a program called wp_supplicant, I am not sure if apt has wpa_supplicant in its repositories, so you can try the following command to see if it is in the repository:
then install it with apt-get install whatever.Code:sudo apt search wpa*
Once that is done, you will need to create a config file like the following:
place it in /etc and name it wpa_supplicant.conf, then run it via this commandCode:ctrl_interface=/var/run/wpa_supplicant network={ ssid="My_ssid" psk="My_super_secret_pass" key_mgmt=WPA-PSK }
replace the wlan0 with the name of your wireless card, this can be found using the iwconfig command, replace the driver_name with the name of the driver, e.g. ndiswrapper, madwifi etc...Code:sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Ddriver_name
EDIT: Note, there are no spaces in the last command, cos that is the way it expects stuff to be entered (between the -iwlan0 stuff)Life is complex, it has a real part and an imaginary part.
- 08-25-2005 #3Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
Thank you for the response. This looks easy enough.
How do I go about finding the "name" of my driver. Ubuntu has autodetected it. Is there a way I can figure out what driver it is using? Does name refer to a file, or do drivers have an actual "name" somewhere.replace the wlan0 with the name of your wireless card, this can be found using the iwconfig command, replace the driver_name with the name of the driver, e.g. ndiswrapper, madwifi etc...
Thanks again,- EndianX -
- 08-25-2005 #4Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
Well, I saw in the wpa_supplicant help this list of drivers...
I believe Intel ipw2200 is what I have. So I tried the following...Code:hostap = Host AP driver (Intersil Prism2/2.5/3) prism54 = Prism54.org driver (Intersil Prism GT/Duette/Indigo) madwifi = MADWIFI 802.11 support (Atheros, etc.) atmel = ATMEL AT76C5XXx (USB, PCMCIA) wext = Linux wireless extensions (generic) ndiswrapper = Linux ndiswrapper ipw = Intel ipw2100/2200 driver
sudo wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -Dipw
Here is my output...
Oh, also, output from iwconfig...Code:ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported Failed to set encryption. ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported Failed to set encryption. ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported Failed to set encryption. ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported Failed to set encryption. ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Code:lo no wireless extensions. eth0 no wireless extensions. eth1 unassociated ESSID:off/any Mode:Managed Channel=0 Access Point: 00:00:00:00:00:00 Bit Rate=0 kb/s Tx-Power=20 dBm RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:360 Missed beacon:0 sit0 no wireless extensions.- EndianX -
- 08-25-2005 #5
I dont know why it says operation not supported when you try to run wpasupplicant, I did a quick google search and I found this howto in ubuntu forums regarding wpa_supplicant. Hope this helps.
Life is complex, it has a real part and an imaginary part.
- 08-25-2005 #6Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
Oh my. A lot of steps there. But that looks to be exactly what I need.
Thank you very much.- EndianX -
- 08-26-2005 #7
Well, most of the steps there are for installing the card's driver and firmware, only the last few are for getting wpa working.
Also, setup your wireless network so that the ssid is broadcast, for some reason, wpa_supplicant will refuse to connect to a AP whose ssid is hidden. Don't worry about the security implications about the ssid being broadcast, no one will be able to connect unless they supply the correct wpa key.Life is complex, it has a real part and an imaginary part.
- 08-26-2005 #8Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
DOH! Well that explains a lot. I have it working but my connection is going up and down. My SSID is hidden though.
Originally Posted by AlexK
My roommate is a complete security nut. The kind of guy who uses encryption with IM. Will be difficult to convince him to allow it to be broadcast. You'd think a 50 character PSK with WPA and MAC address filtering would be enough...
Well, I'll turn it off for a least a while and see if that fixes the problem I am having.- EndianX -
- 08-26-2005 #9Linux Newbie
- Join Date
- Aug 2005
- Location
- Sterling, VA
- Posts
- 100
Awww, that didn't fix my problem
Sometimes I have a signal...
Sometimes I don't...Code:eth1 IEEE 802.11g ESSID:"b7ar*i6a" Mode:Managed Frequency:2.457 GHz Access Point: 00:13:10:62:9B:08 Bit Rate=54 Mb/s Tx-Power=20 dBm Retry limit:7 RTS thr:off Fragment thr:off Power Management:off Link Quality=77/100 Signal level=-52 dBm Noise level=-86 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:440 Missed beacon:0And even when I do have a signal, pings to the gateway return "destination host not reachable". I'm so confused...Code:eth1 unassociated ESSID:"b7ar*i6a" Mode:Managed Channel=0 Access Point: 00:13:10:62:9B:08 Bit Rate=0 kb/s Tx-Power=20 dBm Retry limit:7 RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:596 Missed beacon:0- EndianX -
- 08-26-2005 #10
ok then try this:
replace gedit with your favourite text editor, e.g. vi, emacs etc.sudo gedit /etc/resolv.conf
then add the following line to it:
replace xxx.xxx.xxx.xxx with the ip address of your router.Code:nameserver xxx.xxx.xxx.xxx
That should help a bit with the destination unreachable problems. And don't worry a 50 char PSK with MAC filtering is more than enough until 802.11i comes out.Life is complex, it has a real part and an imaginary part.


Reply With Quote