john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Linux wifi wpa supplicant wpa2

linux-wifi-wpa_supplicant-wpa2

Even though WEP encryption wifi is built into the kernel WEP is more privacy than protection. To use the newer standard, WPA or WPA2...

apt-get -y install wpa_supplicant yum install wpa_supplicant


wpa2 pre-shared key mixed WPA algorithm set to "AES"

wpa_passphrase ssid passwordisreallylong

You'll have to copy the the really long string of numbers/digits

nano /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

ap_scan=2

network= { ssid="yourssidhere" scan_ssid=1 proto=WPA RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk=copy&pastthefunnystringfromwpa_passphrase


sudo ifconfig wlan0 up //ensure the device is working sudo iwlist scan //look for Access Points sudo iwconfig wlan0 essid ssid channel 1 //connect...

sudo wpa_supplicant -Bw -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext?

sudo wpa_supplicant -Bw -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

//the above connects the device using the passkey in the .conf file //now all traffic will be encrypted using WPA or WPA2

sudo dhclient wlan0 //this may be unnecessary


!/bin/sh

example script for WPA on boot, may need tweaking

sudo pkill wpa_supplicant sudo ifconfig wlan0 down sudo ifconfig wlan0 up sudo iwconfig wlan0 essid "ssid" channel 1 sudo wpa_supplicant -Bw -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf sudo dhclient wlan0


GUI UBUNTU GNOME

apt-get install network-manager-gnome (this front end will install the network-manager package too!)


  • « Multiple monitors dual display gnome ati radeon
  • Wget download move directory timestamp variable »

Published

Mar 23, 2011

Category

linux

~185 words

Tags

  • linux 249
  • supplicant 1
  • wifi 10
  • wpa 2
  • wpa2 1