Monday, August 22, 2016

Adding Ubuntu Box To 802.1X Network Without Using GUI

Per: http://www.nowiressecurity.com/#!configure-8021x-authentication-linux/coxb -- add something like this to the /etc/network/interfaces file for wired eth0:

# The eth0 network interface
auto eth0
iface eth0 inet dhcp
pre-up wpa_supplicant -B -i eth0 -D wired -c /etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

The "pre-up" entry (above) will allow the interface to be brought up automatically on rebooting without the need to use a GUI dialog box.

Here are the key entries in the /etc/wpa_supplicant.conf file that I used:

ctrl_interface=/var/run/wpa_supplicant

eapol_version=2

ap_scan=0

network={
        key_mgmt=IEEE8021X
        eap=PEAP
        identity="ACCOUNT NAME HERE"
        password="PASSWORD HERE"
        eapol_flags=0
}