Configurando wpa supplicant

1 – Instale o pacote wpasupplicant

apt-get install wpasupplicant

2 -Gere a senha da rede com o wpa_passphrase

wpa_passphrase minha_rede senha_rede > /etc/wpa_supplicant/wpa_supplicant.conf

3 – Edite o arquivo /etc/wpa_supplicant/wpa_supplicant.conf assim:

network={
        ssid="minha_rede"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        #psk="senha_rede"
        psk=senha_rede_criptografada
}

4 – Levantando a interface wlan0

wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d -D wext &

5 – Automatizando em tempo de boot no /etc/network/interfaces

vi /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s