Skip to content

Instantly share code, notes, and snippets.

View mahboobkarimian's full-sized avatar

Mahboob Karimian mahboobkarimian

View GitHub Profile
@mahboobkarimian
mahboobkarimian / connect peap using nmcli
Last active October 12, 2023 14:42 — forked from beomkm/connect peap using nmcli
Connect to PEAP access points in school using nmcli
In Linux, specially Ubuntu, sometimes there is problem with connecting to Enterprise networks using GUI NetworKManager.
This is the situation where nmcli is needed.
* In terminal:
nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid
nmcli con edit id work-wifi
* Then enter the following:
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity myusername