Connecting to Campus Networks on Linux: Difference between revisions

Jump to navigation Jump to search
update sha1sum
(made initial entry)
 
(update sha1sum)
 
(2 intermediate revisions by the same user not shown)
 
=== iwd ===
If you use Intel's wireless daemon, you can't add the network from the iwctl utility and must instead manually create a configuration file with all the details about the network.
 
Create the following file in <code>/var/lib/iwd/eduroam.8021x</code>:
 
 
Type your password, immediately followed by <code>CTRL+D</code> (You may need to press it twice). '''DO NOT PRESS <code>ENTER</code>!''' Pressing enter will mess up the hash, and you will not be able to authenticate to Tech's network with it!
 
 
 
This is of course not advisable for security reasons, but it is technically an option if you cannot get the previous method to work.
 
==== Getting the certificate (the easy way): ====
Next, you need Tech's eduroam certificate. You can get it by parsing eduroam's "Configuration Assistant Tool" python script from their website:
 
<code>curl -s '<nowiki>https://cat.eduroam.org/user/API.php?action=downloadInstaller&lang=en&profile=3932&device=linux&generatedfor=user&openroaming=0'</nowiki> | sedgrep -ePzo 's/Config.CA-- = """//g'-----BEGIN CERTIFICATE-ne----(\n|.)*-----END '1083,1152pCERTIFICATE-----' > eduroam.pem</code>
 
Confirm that you have the correct file, and if so move it to <code>/var/lib/iwd/eduroam.pem</code>:
 
<code>echo "736c7004527b8d42c27526a5e8ad67b39f395d2d6f721c8150972c401148464c71c2c3701a031932 eduroam.pem" | sha1sum -c && sudo mv eduroam.pem /var/lib/iwd/eduroam.pem</code>
 
If the command returns <code>eduroam.pem: FAILED</code>, proceed to the section below. Otherwise, skip it and proceed to "'''Connecting to eduroam'''".
 
==== Getting the certificate (the hard way): ====
Open [https://cat.eduroam.org cat.eduroam.org] in your browser, and navigate through the site until you reach the page to download the configuration script for Michigan Tech.
 
Now you can proceed to "'''Connecting to eduroam'''".
 
==== Connecting to eduroam: ====
You should be all good to go! Just connect to eduroam in <code>iwctl</code> and it should take care of the rest for you.
 
</syntaxhighlight>Where <code><USER></code> is the username of your account on your Linux computer, <code><MTU_ID></code> is your MTU Student ID (such as <code>noahholl</code>) and <code><PASSWORD></code> is your MTU password in plaintext.
 
==== Connecting to MichiganTech: ====
You should be all good to go, so try connecting to MichiganTech via <code>nmcli</code>, <code>nmtui</code>, or one of the many NetworkManager GUIs (whichever you prefer)!
 
 
Type your password, immediately followed by <code>CTRL+D</code> (You may need to press it twice). '''DO NOT PRESS <code>ENTER</code>!''' Pressing enter will mess up the hash, and you will not be able to authenticate to Tech's network with it!
 
 
 
This is of course not advisable for security reasons, but it is technically an option if you cannot get the previous method to work.
 
==== Connecting to MichiganTech: ====
You should be all good to go! Just connect to MichiganTech in <code>iwctl</code> and it should take care of the rest for you.
 
 
== MichiganTechIoT ==
AFAIK, this network is like MichiganTechOpen (open securitynetwork, devices need to be MAC whitelisted) but devices are allowed to communicate between each other on the LAN.
 
Primarily intended for IoT devices and gaming consoles.
 
<nowiki>https://wiki.archlinux.org/title/Wpa_supplicant#Advanced_usage</nowiki>
 
 
 
 
__FORCETOC__
[[Category:Michigan Technological University]]

Navigation menu