3 ms·
What you might not be as familiar with is that these authentication sites often block you from visiting any domain at all, and then to access the authentication
by throwaway17995 3y ago
What you might not be as familiar with is that these authentication sites often block you from visiting any domain at all, and then to access the authentication site on their own domain you must explicitly link their domain to an IP address through the /etc/hosts file.³
3. I'm assuming on Mac and Windows this is taken care of for you somehow and it is a non-problem.
I... have never had to do this in any distro or OS (NixOS, Arch, macOS at least). The way I've found captive portals to work in practice is that when I connect to the WiFi, my computer gets the captive portal's DNS server through DHCP, and their DNS server points any and every website to the IP address of the captive portal. To make it even easier, Firefox checks "detectportal.firefox.com" every so often to see whether or not there's a captive portal, and gives me a prompt to log in to it if need be.
- nathanckim18 3y agoThanks for the comment! For some reason this wasn't the case at some of the hotels/airports/cafes I was visiting, my browser wasn't automatically redirecting requests to the login screen. I saw an entry like the below and thought a DNS configuration might have been the problem -- in retrospect, it could have been another issue, perhaps I set `networking.useDHCP = false` in my NixOS config, but I honestly cannot remember https://askubuntu.com/questions/961557/ubuntu-17-no-redirection-to-wifi-login-page-only-in-some-networks https://askubuntu.com/questions/961557/ubuntu-17-no-redirect... I'll update my post with a note about this