Linux - EAP-PEAP
How to Connect to Wi-Fi Using EAP-PEAP on Linux
EAP-PEAP (Protected Extensible Authentication Protocol) is a secure and common method for enterprise Wi-Fi authentication. It uses a TLS tunnel and then authenticates using a username and password (typically with MSCHAPv2).
Option 1: GUI Using NetworkManager
- Click the network icon and select your Wi-Fi network.
- Under “Security,” choose WPA & WPA2 Enterprise.
- Set the following:
- Authentication:
Protected EAP (PEAP) - Anonymous identity: Optional (e.g., )
[anonymous@example.com](mailto:anonymous@example.com) - CA certificate: Recommended — e.g.,
/etc/ssl/certs/ca-cert.pem - PEAP version: or
Automatic0 - Inner authentication:
MSCHAPv2 - Username (identity): Your network login (e.g., )
[user@example.com](mailto:user@example.com) - Password: Your Wi-Fi or directory service password Click Connect.
Option 2: CLI Using wpa_supplicant
wpa_supplicant
1. Create Config File
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
2. Add This Configuration:
3. Start the Connection:
Then get a DHCP address:
sudo dhclient wlan0
Troubleshooting
- Use or
dmesgfor logs.journalctl -u NetworkManager - Ensure is correct and readable.
ca_cert - Check that the RADIUS server presents a certificate trusted by your system.
Security Tip
Always validate the RADIUS server’s certificate using
ca_cert
ca_cert="/etc/ssl/certs/ca-cert.pem"