Does WifiOnICE (Wifi on Deutsche Bahn/German Railway) work for you?

Since a few months, I can’t connect to the internet anymore when on an ICE train in Germany. (My config is a pretty plain KDE & Networkmanager.) Does this work for you? If yes, did you do anything to get it to work? I’m assuming that it’s a NixOS specific DNS issue, because noone else, not even Linux users, seem to have this problem. (Android always works.)

I can connect to the Wifi WIFIOnICE, that’s not the issue. Some months ago, there would be a dialogue that would automatically pop up in Firefox to connect to the internet. This dialogue doesn’t appear anymore.

1 Like

it’s likely there is a captive portal to get Internet access over the wireless connection. If your web browser doesn’t redirect you there, this could mean:

  • check you are not using a custom DNS server
  • check your web browser isn’t using DNS over TLS/HTTPS
  • check you are not using a VPN by default
  • check you are not using a custom defined proxy

if it doesn’t work, try with another browser


You’re absolutely right, there is a captive portal. Sorry, I was not precise enough in my explanation.

I’m pretty sure that none of the points apply, though I will double check my config. Chromium doesn’t work either.

Hah, the advice in Dutch railroad wifi ("WiFi in de trein") does not work with nixos - #10 by volth seems to work: I set

networking.resolvconf.dnsExtensionMechanism = false

and right now it works!


I can also highly recommend captive-browser. It works even with a fully encrypted networking setup and does not mess around with your system’s dns at all.

1 Like

Alternatively you can also just set up a special DNS zone for whatever URL your browser chooses to detect captive portals, and make sure that isn’t sent through your VPN interface or to an encrypted DNS provider. Here’s Firefox’ docs on that: Captive portal detection | Firefox Help