Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

PROBLEM

I was having a problem setting up wpa_supplicant on backtrack4.

My wireless point uses wpa-psk.

In /etc/network/interfaces:


root@bt:/usr/bin# cat /etc/network/interfaces
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp
pre-up wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf # you might change these bold parameters to suit your wireless card and interface.
post-down killall -q wpa_supplicant

#auto eth2
#iface eth2 inet dhcp
#
#auto ath0
#iface ath0 inet dhcp
#
#auto wlan0
#iface wlan0 inet dhcp

Everything I read said to use wpa_passphrase like below, and delete the commented lines:


root@bt:/usr/bin# wpa_passphrase My_ssid My_ssid_key
network={
        ssid="My_ssid"
        psk=e8a2c6fb04c3537ec1ea7c027b78f96fba46bc5497503dfe0aa2510844e82ce9
}

however this failed miserably with my setup.

Ideas?

asked 19 Apr '11, 00:11

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

edited 19 Apr '11, 01:44




UPDATE

What was needed was a conf file like below:


root@bt:/usr/bin# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2
ap_scan=2
fast_reauth=1

network={
        ssid="My_ssid"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk="My_ssid_key"
}

UPDATE2

For posterity:

WPA-PSK


ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2
ap_scan=2
fast_reauth=1

network={
        ssid="my_network"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk="secret_password"
}

For WPA2-Personal


ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
        ssid="my_network"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk="secret_password"
}
link

answered 19 Apr '11, 01:44

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23
×17
×3
×1
×1

Asked: 19 Apr '11, 00:11

Seen: 4,727 times

Last updated: 19 Apr '11, 01:44

powered by OSQA