jasbur/RaspiWiFi

resolve all hosts to 10.0.0.1 in host_mode

Opened this issue · 4 comments

Current dnsmasq resolves only two special hostnames to the default 10.0.0.1 address. A simple configuration change to the static_files/dnsmasq.conf file with this entry:

address=/#/10.0.0.1

would resolve all hosts to 10.0.0.1

Additionally, if Flash is configured to have a self-signed certificate with a TLS listener redirecting you to http://10.0.0.1, it would provide a familiar 'sign-in' captive portal like experience typical to hotels or other IoT gateways.

Would be awesome to have this optionally enabled

This works for me on my iOS phone, but not Chrome on the desktop. What would be the difference? TIA.

On my phone any URL will arrive at 10.0.0.1—works as described. On desktop, any URL will find the internet. Only 10.0.0.1 displays the RaspiWifi information.

@jgruber good tip on the address! What do you mean by "Flash is configured to have a self-signed certificate with a TLS listener redirecting you to http://10.0.0.1"? How is Flash used in the python code, and how can I go about setting this up?

Edit: oh I think it's Flask :P Still, I can't seem to get both http and https sites to redirect... and when I use the SSL options in the RaspiWiFi config it doesn't even show up as an access point.