Difference between revisions of "Raspberry Pi: Wifi"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
m
Tag: visualeditor
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 +
wpa_passphrase YOUR_SSID YOUR_PASSWORD
 +
</syntaxhighlight><syntaxhighlight lang="bash">
 
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== WPA/WPA2-PSK Network ===
+
===WPA/WPA2-PSK Network===
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
 
  network={
 
  network={
Line 14: Line 16:
 
     }
 
     }
 
</syntaxhighlight><br />
 
</syntaxhighlight><br />
===WPA2 Enterprise Network===
+
===WPA2 Enterprise Network TODO: https://eparon.me/2016/09/09/rpi3-enterprise-wifi.html<nowiki/>===
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
 
network={
 
network={
Line 28: Line 30:
 
         phase2="auth=MSCHAPV2"       
 
         phase2="auth=MSCHAPV2"       
 
}
 
}
 +
</syntaxhighlight>Or<syntaxhighlight lang="text">
 +
network={
 +
        ssid="Unifi"
 +
        priority=1
 +
        proto=RSN
 +
        key_mgmt=WPA-EAP
 +
        pairwise=CCMP
 +
        auth_alg=OPEN
 +
        eap=PEAP
 +
        identity="Your student ID"
 +
        password=hash:Paste_your_password_hash
 +
        phase1="peaplevel=0"
 +
        phase2="auth=MSCHAPV2"
 +
}
 +
</syntaxhighlight>
 +
 +
 +
 +
<br />
 +
===Protect WIFI password===
 +
<syntaxhighlight lang="bash">
 +
echo -n 'YOUR_REAL_PASSWORD' | iconv -t utf16le | openssl md4 > hash.txt
 +
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 +
password=hash:a6fsfs71xxxxxxxxxxxxxxxetcetcetc
 +
 +
history -w
 +
history -c
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 19:48, 3 June 2021

wpa_passphrase YOUR_SSID YOUR_PASSWORD
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

WPA/WPA2-PSK Network[edit]

 network={
            ssid="myssid"
            psk="mypasskey"
            proto=RSN
            key_mgmt=WPA-PSK
            pairwise=CCMP
            auth_alg=OPEN
    }


WPA2 Enterprise Network TODO: https://eparon.me/2016/09/09/rpi3-enterprise-wifi.html[edit]

network={
        ssid="AU_WiFi"
        # For hidden SSIDs
        scan_ssid=1
        mode=0
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        identity="XXXXXXXX"
        password="XXXXXXXX"
        phase1="peaplabel=0"
        phase2="auth=MSCHAPV2"       
}

Or

 network={
        ssid="Unifi"
        priority=1
        proto=RSN
        key_mgmt=WPA-EAP
        pairwise=CCMP
        auth_alg=OPEN
        eap=PEAP
        identity="Your student ID"
        password=hash:Paste_your_password_hash
        phase1="peaplevel=0"
        phase2="auth=MSCHAPV2"
}



Protect WIFI password[edit]

echo -n 'YOUR_REAL_PASSWORD' | iconv -t utf16le | openssl md4 > hash.txt
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
password=hash:a6fsfs71xxxxxxxxxxxxxxxetcetcetc

history -w
history -c