[GRLUG] WPA supplicant in Linux

Godwin geektoyz at gmail.com
Wed Jun 21 20:11:54 EDT 2006


A question came up today on using/setting up wpa in linux...  I just have a
quick minute so I'll post on the Wiki later, but....  here's the nitty
gritty... (obvious security items changed...)  Setup your AP for WPA/TKIP
and MAC address filters, etc, etc.

In Linux convert the passphrase from plain text and add it to the conf
file.  I have an intel 2200bg internal card on my laptop and eventhough
there's a specific driver for the 21xx/22xx intel based cards, this one
seems to work best with the generic *wext* driver (last lines).

godwin at runabout:~$ wpa_passphrase oceanside MyW1f1p4ss
network={
        ssid="oceanside"
        #psk="MyW1f1p4ss"
        psk=7b0fed9778698f68f237beb9f060798e0d269fb30e47b606721fb339e4821c6d
}
godwin at runabout:~$ sudo cat /etc/wpa_supplicant.conf
Password:
network={
        ssid="oceanside"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        #psk="MyW1f1p4ss"
        psk=7b0fed9778698f68f237beb9f060798e0d269fb30e47b606721fb339e4821c6d
}
godwin at runabout:~$

root at runabout:/home/godwin# cat /etc/rc.local
...
# Turn on wifi
wpa_supplicant -Bw -c/etc/wpa_supplicant.conf -Dwext -ieth1
...

Setup your interface with DHCP and you should be browsing in no time.  I
have a Linksys WRT54GC with dhcp turned off and plugged in one of the 4 LAN
ports to my switch (fed off my linux router).  Set that interface (on the
linux router) as a DMZ to protect your LAN and you're all set (though you
really don't have to).

cheers,
G-

-- 

Ubber::Geek
http://grlug.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shinobu.grlug.org/pipermail/grlug/attachments/20060621/3e0b33f4/attachment-0001.htm 


More information about the grlug mailing list