nixCraft Poll

Topics

Linux Configure WPA2 for RT61 based Wireless Card

Posted by Vivek Gite [Last updated: February 18, 2008]

I've already written about configuring and using DLink wireless card with the help of RT61 driver. However, few readers like to know more about Wi-Fi Protected Access (WPA and WPA2) secure wireless configurations.

Step # 1: Configure Router / AP with WPA2 Security Mode

First you need to configure WPA2 security mode on the access point. All devices on your network must use the same security mode in order to communicate. Open router configuration by visiting default IP https://192.168.1.1/ and setup

Configure WPA2-PSK for Your Router or Access Point
(Fig. 01: Configure WPA2 for your router / access point)

Step # 2: Configure RT61 Wireless Card

Open /etc/network/interfaces file and make changes as follows:
$ sudo vi /etc/network/interfaces
Output:

auto ra0
iface ra0 inet dhcp
pre-up iwconfig ra0 mode managed
pre-up ifconfig ra0 up
pre-up iwconfig ra0 essid nixcraft
pre-up iwpriv ra0 set AuthMode=WPA2PSK
pre-up iwpriv ra0 set WPAPSK='|zdUkK(!X)_'G!}@1|@OS/6RA#'+}eq8b&V@x1%OZyyDVV:Xwp8UmwLFNS^7=A+'
pre-up iwpriv ra0 set EncrypType=AES

Save and close the file. Make sure you replace device name (ra0), essid and WPAPSK with actual configuration parameters. Restart the networking:
$ sudo /etc/init.d/networking restart

Other simple security suggestion

  1. Change the default admin password on the access point / router.
  2. If possible turn off administration feature on the access point for wireless interface
  3. Set up an access control list by Mac address of all devices you want to associate with the access point.

Please note that above instructions are only tested using RT61 driver under Ubuntu Linux. However, instructions should work with any other Linux distos and drivers with minor or minimum changes.

Suggested readings:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.