Solved Connecting to open network behind captive portal

I recently installed FreeBSD on my laptop, before that I really only used it on desktops.
At home, I set up the wifi for my home, and it worked well.
But my school requires me to authenticate via a webpage in order to access the internet.
I can't really access the webpage, and ping failed too.
But when I ping the ip address of the page redirected from msftconnecttest.com when I was doing authentication on Windows, it shows a subdomain below my school's website.
ifconfig reports the status to be associated.
How can I login to my school's wifi?

This is my wpa_supplicant configuration:
Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
    ssid="Students"
    key_mgmt=NONE
}

rc.conf
Code:
ifconfig_wlan0="WPA SYNCDHCP powersave"
 
Back
Top