clr

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 :
  • 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!

4 komentarzy

fold this thread Owen  poniedziałek, 11 Sierpień 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  poniedziałek, 11 Sierpień 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  poniedziałek, 11 Sierpień 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  wtorek, 12 Sierpień 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)
 
Podpis (wymagane)
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.

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


Shopping Ads

Google Ads