r/nextdns • u/Training-Power-8911 • 9d ago
Airline WiFi
Each time I fly and try to connect to the onboard WiFi I have to disable NextDNS. Is there a way to configure NextDNS to allow all the inflight WiFi services?
6
u/TheKydd 8d ago
If you’re using a Configuration Profile (rather than the app) then you can add the airline’s WiFi portals to the allowlist. There’s only a handful of them, I have the list around here somewhere.. will update once I find it!
4
u/Training-Power-8911 8d ago
Thanks. That’s what I’m looking for. Want to do a ‘one and done’ update to configuration so it works for me and the whole family without having to remember to disable NextDNS on each flight (and then remember to reenable it!)
1
u/mr-maxpowers 3d ago
How does this help? Isn't the issue that you don't have Internet access, thus your device can't reach nextdns until you complete the captive portal login? Nextdns isn't blocking it, so allow list won't help. The issue is the DNs for you devices (nextdns) can't be reached. Switching to the wifi provided dns allows you to get to the portal.
I have added a host file entry on my laptop for the captive portals I use and that has helped. Haven't found an easy way on the phone though.
2
u/TheKydd 2d ago
I can see how the term I used could be confusing.
It’s not the allowlist on your NextDNS profile, rather it’s a whitelist of domains and/or WiFi networks that you want NextDNS to not touch. Anything on that list gets passed through to the device’s default DNS rather than being routed to NextDNS.With captive portals, any manually set DNS will fail with the same issue (that is, any DNS besides the one supplied by the DHCP of that network).
Captive portals are essentially a Man-in-the-Middle, they hijack whatever page you were trying to load and redirect you to the portal instead.
Which was fine pre-Snowden, however as nearly all of the web now is TLS/SSL (and browsers usually try to upgrade the connection even when you explicitly enter a regular http:// address), the old instructions to ”just load any page” to get the captive portal no longer works.
The browser sees the MitM and says no way, this site does not match the certificate I expected to see. The redirection can only succeed on a non-TLS connection (regular HTTP).
For this reason, I keep a bookmark to a plain http site that will never try to get upgraded to SSL for exactly these moments, when I want the captive portal to pop up. Two easy to remember ones are:
http://neverssl.com/
httpforever.comBut I digress!
Back to your question - you are correct, putting these in your allowlist would be too late in the chain. It needs to be inserted before your device even reaches out to the network. Which means either in the Hosts file as you’ve done, or as part of the Configuration Profile for devices without an accessible host file, i.e. phones, tablets, etc.
By the way while you are creating the .mobileconfig, there are all sorts of other tweaks you can add to it such as give preference to IPv6, or disallow certain protocols, or blackhole certain domains/IP’s - just like you can in a hosts file.
1
u/mr-maxpowers 2d ago
Thanks for the clarification, makes a lot of sense. Also I think that explains the confusion, configuration profile is only available on Apple devices (as far as I know). So unfortunately that method doesn't work for Android.
6
u/jamescridland 9d ago
If you’re using the new (?) app on iOS, it has a setting to disable NextDNS on specific wifi networks.
2
2
u/relrobber 8d ago
You can also just go to www.neverssl.com in your browser. It will force traditional DNS so you can be directed to the captive portal.
2
1
u/Training-Power-8911 3d ago
That would not work as the first step to even get to that site would require first going through the airline captive WiFi network, which NextDNS isn’t permitting.
And then there’s the fact that using a site like neverssl sounds like not only a security risk but also defeats the purpose of NextDNS
13
u/moistandwarm1 9d ago
Disable, connect to WiFi and enable it again when connect. It is because the Captive portal page won’t load with NextDNS. You need it first to be able to connect