I am having a similar issue as this, where some public wifi works on my iPhone and not on my Mac (Big Sur 11.6.1)
iPhone connects to public Wi-Fi but Mac doesn't - why?
Other public wifi works fine.
Troubleshooting further, I see that the wifi itself connects, I got an IP address but the TCP connection times out when trying to connect to the captive portal. I can ping the IP where I get redirected (something like 172.0.20.1), but can't establish an HTTP connection on port 8000. It's a TCP issue rather than a cert error, because it doesn't even get a TCP connection established (confirmed with curl -v
). My phone can reach the same port and IP on the same wifi.
I suspect some settings might be blocking outbound TCP - where should I look? Settings & Privacy > Firewall seems to be focused on inbound connections.
sudo pfctl -F all -ef /etc/pf.conf
to reload the default set of rules? Do you have VPN software installed or a VPN configured on your Mac?sudo pfctl -d
did the trick. Once I was connected to wifi then I could re-enable withpfctl -e
. I suspect the issue is this particular wifi used port 8000 which wasn't as common as 80 or 8080. The weird thing is, though, I couldn't find any particular rule that blocked the outgoing traffic or a default block-all rule, so I'm not sure why the config was blocking it to begin with.