Setting up WiFi EAP-PEAP on Linux

June 25, 2016 • Linux • 2 minutes to read • Edit

A few months ago I was trying to setup up WiFi on my Raspberry Pi. That time I didn’t know that Pi has problems with Enterprise WiFi and my university did not provide support to Linux distribution. Thanks to Google I fond the answer.

I don’t want others to have the same problem. Follow these steps to setup up your office/university WiFi.

Step 1: Requirements

Make sure you have your username, password, proxy IP and WiFi SSID. For the sake of this tutorial let’s consider a username, password, proxy IP and WiFi SSID.

Username: user
Password: 123456
IP: 123.456.789.012:1234
WiFi SSID: CompanyName

Step 2: Getting your companies HTTP/HTTPS proxies

Ask your company for a proxy address (It’s usually an IP address). Once you have that do the following:

  • Open Terminal, and type sudo nano ~/.bashrc. Go to the end of the nano editor and type the following
export HTTP_PROXY="http://user:123456@123.456.789.012:1234"
export HTTPS_PROXY="http://user:123456@123.456.789.012:1234"
  • Save it by doing ctrl+X, return and return.
  • Next go to sudo nano /etc/apt/apt.conf.d/10proxy, in that type in the following:
Acquire::http:Proxy "http://user:123456@123.456.789.012:1234"
Acquire::https:Proxy "https://user:123456@123.456.789.012:1234"
  • Save it by doing ctrl+X, return and return.

Step 3: Setting up WPA Supplicant (WiFi Manager)

Type in the following

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

If the file is already in that location you would see some text in it, if not you will get a new editor.

In that type int following:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
      ssid="CompanyName"
      proto=RSN
      key_mgmt=WPA-EAP
      pairwaie=CCMP
      aut_alg=OPEN
      eap=PEAP
      identity="user"
      password="123456"
}

Save it by doing ctrl+X, return and return.

Make sure you have connected your WiFi dongle. You should now be able to use the internet.