Configuring WPA-PSK (TKIP) in Slackware

[ Friday, 8 August 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 :
  • Slackware-12.1 configuration:

  • The /etc/rc.d/rc.local entries read as follows :
  • The newly created /etc/rc.d/rc.wifi_wpa executable script reads as follows:
  • The PSK value to be entered into above file can be obtained using the following command :
  • #wpa_passphrase ssid pre-key(passphrase)

    Where the SSID and the passphrase must match these entered into the access-point configuration.

  • The /etc/wpa_supplicant.conf entries read as follows :
  • The /etc/rc.d/rc.inet1.conf entries read as follows :

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!

6 Comments

fold this thread Owen  Monday, 11 August 2008 o godz. 12:46 pm #  Add karma Subtract karma  +1

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 :)

(Comments wont nest below this level)
 
fold this thread luke  Monday, 11 August 2008 o godz. 5:03 pm #  Add karma Subtract karma  +0

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

(Comments wont nest below this level)
fold this thread luke  Monday, 11 August 2008 o godz. 5:06 pm #  Add karma Subtract karma  +0

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.

 
 
fold this thread werner  Tuesday, 12 August 2008 o godz. 2:28 pm #  Add karma Subtract karma  +0

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

(Comments wont nest below this level)
 
fold this thread get ex boyfriend back  Saturday, 29 December 2012 o godz. 6:09 pm #  Add karma Subtract karma  +0

Hey there! I could have sworn Ive been to this site before but after browsing through some of that the post I realized its new to me.
Nonetheless, Im definitely happy I found it
and Ill be book-marking and checking back frequently!

(Comments wont nest below this level)
 
fold this thread Getting Ready Pictures  Tuesday, 8 July 2014 o godz. 11:53 pm #  Add karma Subtract karma  +0

Thank you, I have just been searching for information approximately this subject for ages and yours is
the best I have discovered till now. However, what concerning the bottom line?

Are you positive about the source?

(Comments wont nest below this level)
 
Name (required)
E-mail (required - never shown publicly)
URI

Adjust field size: shrink | enlarge)


You can use simple HTML in your comments. Some examples are as follows:
  • 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>

About the Author

Andrzej Sperczyński

Fourty-nine years old computer science teacher. Linux user since 2002, Slackware user since version 9.1.

New AdTaily ads!

Are you a film buff?

film buffs community, movie recommendations and reviews

RSS: Comments

You can follow the comments to this article through a special channel RSS 2.0 .

Related articles: HOWTOs

 more »

Related articles: Slackware

 more »

PolishLinux Top Content


Become our fan on Facebook!

PolishLinux.org on Facebook

Follow PolishLinux on Twitter!

Follow polishlinux on Twitter

Google Ads