DOT1X w/ WPA supplicant

Setup

there’s an example for that purpose

less /usr/share/doc/wpa_supplicant/examples/ieee8021x.conf

e.g. for PEAP & MSCHAPv2

vi ethernet.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=2
ap_scan=0

network={
    ssid="some descr dot1x"
    key_mgmt=IEEE8021X
    eap=PEAP
    phase2="auth=MSCHAPV2"
    identity="FIRSTNAME.SURNAME"
    password="YOUR-AD-PASSWORD"
}

Ready to go

wpa_supplicant -i eth0 -c ethernet.conf -D wired &
ls -lF /var/run/wpa_supplicant/*
dhclient -v eth0

dhclient -r eth0
pkill wpa_supplicant

Resources

https://help.ubuntu.com/community/Network802.1xAuthentication

https://www.nowiressecurity.com/configure-8021x-authentication-linux

https://tldp.org/HOWTO/html_single/8021X-HOWTO/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun