Difference between revisions of "Raspberry Pi: Wifi"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "=== WPA2 Enterprise Network === <syntaxhighlight lang="bash"> sudo nano /etc/wpa_supplicant/wpa_supplicant.conf </syntaxhighlight><syntaxhighlight lang="text"> network={...") Tag: visualeditor |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| (3 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 lang="text"> | + | </syntaxhighlight> |
| + | |||
| + | ===WPA/WPA2-PSK Network=== | ||
| + | <syntaxhighlight lang="text"> | ||
| + | network={ | ||
| + | ssid="myssid" | ||
| + | psk="mypasskey" | ||
| + | proto=RSN | ||
| + | key_mgmt=WPA-PSK | ||
| + | pairwise=CCMP | ||
| + | auth_alg=OPEN | ||
| + | } | ||
| + | </syntaxhighlight><br /> | ||
| + | ===WPA2 Enterprise Network TODO: https://eparon.me/2016/09/09/rpi3-enterprise-wifi.html<nowiki/>=== | ||
| + | <syntaxhighlight lang="text"> | ||
network={ | network={ | ||
ssid="AU_WiFi" | ssid="AU_WiFi" | ||
| Line 15: | 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