Home Blog

NetworkManager connection notes

These are the NetworkManager commands I use for WireGuard, GlobalProtect, and eduroam connections. Replace the connection names and account details for your own setup.

WireGuard with nmcli

Import a WireGuard configuration:

nmcli connection import type wireguard file school.conf

Use nmcli connection up school to connect and nmcli connection down school to disconnect:

nmcli connection up school / nmcli connection down school

Prevent the connection from starting automatically:

nmcli connection modify school connection.autoconnect no

GlobalProtect at Northeastern

Create an OpenConnect VPN profile for Northeastern’s GlobalProtect gateway:

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 with 802.1X authentication

Create the Wi-Fi profile with your LDAP username and password:

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