Wireless: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
(add information about MSCHAPv2 hashing; add profiles for wpa_supplicant and netctl)
(→‎netctl: update ArchLinux path; also add domain_suffix_match for extra security)
 
(3 intermediate revisions by one other user not shown)
Line 13: Line 13:
password=hash:HASH_HERE
password=hash:HASH_HERE


==== netcfg ====
Toss this into /etc/network.d/, making sure you edit identity and password. sudo netcfg eduroam


==== netctl ====
CONNECTION='wireless'
Toss this into /etc/netctl/, making sure you edit identity and password. Replace wlan0 with the correct interface. Your correct interface can probably be seen in the output of
INTERFACE=wlan0
ip link
SECURITY='wpa-configsection'
and probably is the one that starts with 'w'.
IP='dhcp'
CONFIGSECTION='
ssid="eduroam"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP
eap=PEAP
identity="userid@uwaterloo.ca"
password="hunter2"
ca_cert="/usr/share/ca-certificates/mozilla/GlobalSign_Root_CA.crt"
phase2="auth=MSCHAPV2"'


To connect, run sudo netctl start eduroam

==== netctl ====
Toss this into /etc/netctl/, making sure you edit identity and password. sudo netctl start eduroam


Connection='wireless'
Connection='wireless'
Line 41: Line 26:
IP='dhcp'
IP='dhcp'
WPAConfigSection=(
WPAConfigSection=(
ssid="eduroam"
'identity="userid@uwaterloo.ca"'
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP
eap=PEAP
identity="userid@uwaterloo.ca"
'password="hunter2"'
'password="hunter2"'
'ssid="eduroam"'
ca_cert="/usr/share/ca-certificates/mozilla/GlobalSign_Root_CA.crt"
'key_mgmt=WPA-EAP'
phase2="auth=MSCHAPV2"
'eap=PEAP'
'ca_cert="/etc/ssl/certs/GlobalSign_Root_CA.pem"'
'domain_suffix_match="uwaterloo.ca"'
)
)



==== wicd ====
==== wicd ====
Line 78: Line 59:


==== wpa_supplicant ====
==== wpa_supplicant ====
add this to a file in /etc/wpa_supplicant/.

network={
network={
ssid="eduroam"
ssid="eduroam"
Line 90: Line 73:
phase2="auth=MSCHAPV2"
phase2="auth=MSCHAPV2"
}
}






Latest revision as of 20:58, 19 June 2018

csc-wireless no longer exists. Members are advised to use eduroam or uw-unsecured.


Rosetta Stone

See IST's page http://ist.uwaterloo.ca/cs/wireless.html for Windows and other devices.

The ca_cert line is only needed to verify the authenticity of the eduroam AP, and is otherwise not actually needed to connect to it. Keep in mind that removing it from your config means that you are technically vulnerable to someone creating a fake eduroam access point and using it to grab your Quest login, though honestly the chances of this ever happening on campus are extremely unlikely.

Linux

If you don't wish to have your password floating around in a text file in /etc, then (at least for the wpa_supplicant based network managers) you may take the output of

echo -n "hunter2" | iconv -t utf16le | openssl md4

and replace the password line with

password=hash:HASH_HERE


netctl

Toss this into /etc/netctl/, making sure you edit identity and password. Replace wlan0 with the correct interface. Your correct interface can probably be seen in the output of

ip link

and probably is the one that starts with 'w'.

To connect, run sudo netctl start eduroam

Connection='wireless'
Interface=wlan0
Security='wpa-configsection'
IP='dhcp'
WPAConfigSection=(
    'identity="userid@uwaterloo.ca"'
    'password="hunter2"'
    'ssid="eduroam"'
    'key_mgmt=WPA-EAP'
    'eap=PEAP'
    'ca_cert="/etc/ssl/certs/GlobalSign_Root_CA.pem"'
    'domain_suffix_match="uwaterloo.ca"'
)

wicd

Toss this into /etc/wicd/encryption/templates/ and edit /etc/wicd/encryption/templates/active to include a line with eduroam.

name = Eduroam UW
author = Steven She
version = 1
require username *Username password *Password
-----
ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="$_ESSID"
    scan_ssid="$_SCAN"
    proto=RSN
    key_mgmt=WPA-EAP
    pairwise=CCMP
    group=CCMP
    eap=PEAP
    identity="$_USERNAME"
    password="$_PASSWORD"
    ca_cert="/usr/share/ca-certificates/mozilla/GlobalSign_Root_CA.crt"
    phase2="auth=MSCHAPV2"
}

wpa_supplicant

add this to a file in /etc/wpa_supplicant/.

network={
    ssid="eduroam"
    proto=RSN
    key_mgmt=WPA-EAP
    pairwise=CCMP
    group=CCMP
    eap=PEAP                                      
    identity="userid@uwaterloo.ca"
    password="hunter2"
    ca_cert="/usr/share/ca-certificates/mozilla/GlobalSign_Root_CA.crt"
    phase2="auth=MSCHAPV2"
}


The previous setup has been archived for posterity.