Configuring WPA-PSK (TKIP) in Slackware
[ piątek, 8 Sierpień 2008, asperczwielun ]
This HOWTO describes the way to configure and manage a WPA-PSK (TKIP) connection between a HP 530 laptop running Slackware 12.1 and a Lantech router with a wireless access point. To get the encryption running, the wpa_supplicant package is required. Unfortunately, the stock package didn’t work correctly for me, which I worked around by building it from source, using SlackBuild.
The package consists of the following programs: the wpa_supplicant daemon, managing the wireless encryption, the wpa_passphrase program, generating pre-shared keys (PSK) and the wpa_cli program, setting up the connection and encryption parameters.
First, the access point needs to be configured on the router:
- The configuration for WPA-PSK (TKIP) case reads as follows :
- The
/etc/rc.d/rc.localentries read as follows : - The newly created
/etc/rc.d/rc.wifi_wpaexecutable script reads as follows: - The PSK value to be entered into above file can be obtained using the following command :
- The
/etc/wpa_supplicant.confentries read as follows : - The
/etc/rc.d/rc.inet1.confentries read as follows :
Slackware-12.1 configuration:
#wpa_passphrase ssid pre-key(passphrase)
Where the SSID and the passphrase must match these entered into the access-point configuration.


The commented out entries are related to a WEP-encrypted connection brought up using iwconfig and ifconfig commands.
The #iwconfig command yields :
The #iwlist auth command yields :
The #iwlist encryption command yields :
The network monitor shows the connection as follows :

Our network is also visible using the wpa_gui program (run as root):

The laptop utilizes a firewall of its own. The only downside to this type of connection is its initialization time, being around 20 seconds to 1 minute in my setup.
Translated-by : el es
Subscribe to RSS feed for this article!
4 komentarzy
- A hyperlink: <a href="polishlinux.org">GNU/Linux for everyone!</a>,
- Strong text: <strong>Strong text</strong>,
- Italic text: <em>italic text</em>,
- Strike: <strike>
strike</strike>, - Code: <code>
printf("hello world");</code>, - Block quote: <blockquote>Block quote</blockquote>



This is similar to the process that took me a while to figure out. Thats the great thing about Slackware though. Once its done, you won’t have to touch it for a good while
wow–did you try the way set up by alien in the rc.wireless.conf and rc.inet1.conf first?
just make sure the wireless interface is configured correctly in the rc.inet1.conf, and then add
#wpa support through wpa_supplicant–configure in /etc/wpa_supplicant
WPA=”wpa_supplicant”
WPADRIVER=”wext”
to rc.wireless.conf, in the first section
after that configure wpa_supplicant as normal. you can even check setting with wpa_gui, etc.
check aliens slackware site for even more info:
http://alien.slackbook.org/dokuwiki/doku.php
forgot to mention–I use this for all connections, including wep. easiest way to make the thing switch networks. just suspend, go to new network unsuspend and do /etc/rc.d/rc.inet1 wlan0_restart to get a new IP
I have that in a button on my desktop, to make it easier.
Nice. But you could tell the readers where to download your wpa_supplicant package …
Packages from me, compatible with Slackware: ftp://ftp.uni-siegen.de/pub/sys-linux