I am using a raspberry pi 4 to connect to my college network (so using WPA-Enterprise using PEAP) using wpa_supplicant
when I run the command,
sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
with my wpa_supplicant.conf
as follows:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
ap_scan=1
country=US
network={
ssid="eduroam"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="[email protected]"
password=hash:aaaaaaaaaaaaaaaa
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
everything seems good, no failed authentication, phase 1 and 2 completed, CTRL-EVENT-CONNECTED
. But then I get the following message:
CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
It reconnects and goes through the whole process again, which seemingly repeats indefinitely. What is this reason=3
and how do I fix it?
PG69 EDIT
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
# /etc/network/interfaces.d is an empty directory
source-directory /etc/network/interfaces.d
wpa_supplicant assoc/auth log:
pi@raspberrypi:~ $ sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'eduroam'
wlan0: Associated with b0:b8:67:ef:d9:11
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services' hash=d7a7a0fb5d7e2731d771e9484ebcdef71d5f0c3e0a2948782bc83ee0ea699ef4
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services' hash=d7a7a0fb5d7e2731d771e9484ebcdef71d5f0c3e0a2948782bc83ee0ea699ef4
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority' hash=68b9c761219a5b1f0131784474665db61bbdb109e00f05ca9f74244ee5f5f52b
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=US/ST=MI/L=Ann Arbor/O=Internet2/OU=InCommon/CN=InCommon RSA Server CA' hash=0a05c462756390dd1f1d5dd82794c300f04be789dce76d7e312f790d68fd385a
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=US/<address>/OU=EIT/CN=clearpass.XXX.edu' hash=74e40048dc2c07b1b5498b2792ceb62b976cc29d5c704d0426cedbccb49a8e31
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-cra.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-hv.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-tel-2.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-tel.XXX.edu
EAP-MSCHAPV2: Authentication succeeded
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
wlan0: CTRL-EVENT-CONNECTED - Connection to b0:b8:67:ef:d9:11 completed [id=0 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
wlan0: Trying to associate with SSID 'eduroam'
wlan0: Associated with b0:b8:67:ef:d9:11
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
wlan0: CTRL-EVENT-CONNECTED - Connection to b0:b8:67:ef:d9:11 completed [id=0 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
wlan0: Trying to associate with SSID 'eduroam'
Not adding full wpa_supplicant debug log, >3200 lines. Pastebin link: