RaspiWiFi icon indicating copy to clipboard operation
RaspiWiFi copied to clipboard

resolve all hosts to 10.0.0.1 in host_mode

Open jgruber opened this issue 5 years ago • 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.

jgruber avatar Jul 30 '19 20:07 jgruber

Would be awesome to have this optionally enabled

RedSparr0w avatar Sep 06 '19 22:09 RedSparr0w

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

tonyfdesign avatar Sep 26 '19 18:09 tonyfdesign

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.

tonyfdesign avatar Sep 26 '19 18:09 tonyfdesign

@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.

mwargan avatar Oct 02 '19 21:10 mwargan