Home Blog

Networking in linux

nmcli

To import:

nmcli connection import type wireguard file school.conf

To activate/deactivate:

nmcli connection up school / nmcli connection down school

To disable autoconnect:

nmcli connection modify school connection.autoconnect no

GlobalProtect, using Northeastern as an example.

nmcli connection add connection.id school \
connection.type vpn vpn.service-type openconnect \
vpn.data cookie-flags=1,gateway=vpn.northeastern.edu,protocol=gp \
vpn.secrets gateway=vpn.northeastern.edu,gwcert=

eduroam and 802-1x authentication

nmcli con add \
  type wifi \
  ifname wlp3s0 \
  con-name eduroam \
  ssid eduroam \
  ipv4.method auto \
  802-1x.eap peap \
  802-1x.phase2-auth mschapv2 \
  802-1x.identity "<your ldap username>" \
  802-1x.password "<your ldap password>" \
  wifi-sec.key-mgmt wpa-eap