Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show web UI with nodogsplash captive portal when connecting to hotspot #211

Open
zytegalaxy opened this issue Jan 13, 2025 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@zytegalaxy
Copy link
Collaborator

We need to run captive portal to automatically show web UI after connecting to the hotspot. If we don't do this, the user must turn off mobile data on their phone and enter URL of the web UI (ubo-xx.local:4321) manually in the browser which creates a bad experiences.

The captive portal would resolve the following domains to point to gateway endpoint serving the web UI:

  • Apple devices: captive.apple.com
  • Android devices: connectivitycheck.gstatic.com
  • Windows: www.msftncsi.com

I tested running by following the steps in the following document:

https://hackernoon.com/how-to-create-a-custom-captive-portal-for-home-wifi-with-raspberry-pi-and-ai

We need to update /etc/dnsmasq.conf to add this line address=/#/192.168.4.1:

(env) ubo@ubo-3w:/opt/ubo/hotspot $ cat /etc/dnsmasq.conf
interface=wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
address=/#/192.168.4.1
@mehrdadfeller mehrdadfeller added the enhancement New feature or request label Jan 16, 2025
@mehrdadfeller mehrdadfeller moved this to Todo in Ubo App Jan 16, 2025
@mehrdadfeller mehrdadfeller added this to the Version 2 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants