Difference between revisions of "Raspberry Pi: Wifi"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
m
Tag: visualeditor
Line 3: Line 3:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== WPA/WPA2-PSK Network ===
+
===WPA/WPA2-PSK Network===
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
 
  network={
 
  network={
Line 28: Line 28:
 
         phase2="auth=MSCHAPV2"       
 
         phase2="auth=MSCHAPV2"       
 
}
 
}
 +
</syntaxhighlight>
 +
 +
=== 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>

Revision as of 11:05, 31 October 2019

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

WPA/WPA2-PSK Network

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


WPA2 Enterprise Network

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"       
}

Protect WIFI password

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