I’ve solved the problem with the captive portal (somehow, I’m still not sure exactly how). If I ssh into the router, it’s definitely connected to the internet. Now the problem is that I cannot access the internet from my private wifi network.