Connecting to UGent eduroam with netctl or wpa_supplicant on Linux

by on

There is a dedicated webpage for eduroam at the UGent helpdesk, but it doesn’t provide any advanced settings. Most graphical network managers should be able to detect these settings by themselves, but for wpa_supplicant (and thus netctl), we need to specify these settings in the configuration file.

I have tested these settings using the eduroam networks provided by UGent campus Kortrijk and Vives campus Kortrijk. If you are unable to connect using the configuration files on this page, consider changing your UGent CAS password. I’ve had weird connection problems in the past: Connecting from windows worked, Arch Linux and Android did not. Simply changing my CAS password fixed everything. I am still unable to explain why.

wpa_supplicant

The following wpa_supplicant configuration file should be enough to connect to the eduroam network. The identity is your CAS (Minerva/Oasis) username followed by @ugent.be, not your e-mail address.

network={
    ssid="eduroam"
    scan_ssid=1
    key_mgmt=WPA-EAP
    eap=TTLS
    auth_alg=OPEN
    mode=0
    anonymous_identity="username@ugent.be"
    identity="username@ugent.be"
    password="..."
    phase2="auth=MSCHAPV2"
}

Connect to the network by using:

# wpa_supplicant -B -i interface -c configuration_file

netctl

On Arch Linux, the default command-line network manager is netctl. The following configuration file should allow you to connect to the UGent eduroam netwerk. Note that you can use the netctl-auto@interface.service systemd service to switch profiles automatically.

Description='Eduroam'
Interface=wlp6s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
    'ssid="eduroam"'
    'scan_ssid=1'
    'key_mgmt=WPA-EAP'
    'eap=TTLS'
    'auth_alg=OPEN'
    'mode=0'
    'anonymous_identity="username@ugent.be"'
    'identity="username@ugent.be"'
    'password="..."'
    'phase2="auth=MSCHAPV2"'
)