- Disable DNS once. Find out URL/IP of captive portal that way.
- Add to hosts file (Win/Lin/Mac). Maybe even give an alias: "captive-school", "captive-library", etc.
- Turn DNS back on. The hosts file will take prerogative over DNS settings, i.e. it is resolved first.
post
Just have a dedicated browser used for the login that is excluded from your DNS.
Or a dedicated browser profile. https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
I was looking at this one: Captive Browser
But would it work if I have my private DNS configured on system level?
I was also thinking to just disable the private DNS and configure it in firefox, but then it would only block trackers/ads in the browser, not in any other application.
Would make it easy to toggle off for a second to login to a captive portal though, or have a separate firefox profile for that (like davel mentioned)
Disable your dns over tls so you can register your MAC address and complete the portal requirements. Once registered, turn your dns back on.
This is the most straightforward way if I was not on NixOs.
If I want to change the DNS settings in my nix config, I need internet connection (unless it's possible to rebuild while offline?)
I was trying to bypass this by just changing the DNS server for that specific network connection, but I didn't get it to work. Because it has to use the DNS of the captive portal to be able to load the page
Requiring internet connectivity to make network changes seems like a major failure point?
I have Fedora on my laptop. I'll often connect to my VPN and then manually change the DNS. Annoying, but usually works.
Another method if I'm using said WiFi for long periods of time is to use my travel router. Log into the portal on my laptop and then change the MAC of the router to that of my laptop and put it in repeater mode. Then connect the laptop to the router. Equally as annoying, but worth it.
You can connect to your VPN already before changing DNS?
I was interested in having a VPN to my home network which just works over 443, so I can access everything in my home network even on public wifis in a safe way. Haven't managed to set it up yet though.
What do you use for travel router? Might be interesting as well.
all 15 comments