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

Use hotspot and captive portal without internet (eth0) #455

Open
mcpeixoto opened this issue Oct 2, 2018 · 8 comments
Open

Use hotspot and captive portal without internet (eth0) #455

mcpeixoto opened this issue Oct 2, 2018 · 8 comments

Comments

@mcpeixoto
Copy link

Heya!
I've installed coova-chilli on a raspberry pi 3 using this script: https://github.com/pihomeserver/Kupiki-Hotspot-Script

I'm trying to use the hotspot and captive portal without internet but when I disconect the device (unplug eth) the captive portal stops working (Dosen't pop up on the phone for example).

I'm running a custom wordpress website as captive portal.

More detailled information here:
pihomeserver/Kupiki-Hotspot-Script#75 (comment)

@irongomme
Copy link

What are the DNS servers set in chilli conf ?

@mcpeixoto
Copy link
Author

"208.67.222.222" and "208.67.220.220", the default of the script I'm using. OpenDNS I beliave

THIS FILE IS AUTOMATICALLY GENERATED

cmdsocket /var/run/chilli.wlan0.sock
unixipc chilli.wlan0.ipc
pidfile /var/run/chilli.wlan0.pid
net 192.168.10.0/255.255.255.0
uamlisten 192.168.10.1
uamport 3990
dhcpif wlan0
uamallowed "192.168.10.1,192.168.10.0/24"
uamanydns
uid "112"
gid "117"
domain "lan"
dns1 "208.67.222.222"
dns2 "208.67.220.220"
uamhomepage http://192.168.10.1:80
wwwdir /etc/chilli/www
wwwbin /etc/chilli/wwwsh
uamuiport 4990
locationname "My HotSpot"
radiuslocationname "My_HotSpot"
radiuslocationid "isocc=,cc=,ac=,network=Coova,"

@mcpeixoto
Copy link
Author

How can I solve the problem of not poping up?

@irongomme
Copy link

irongomme commented Oct 5, 2018

You should use local DNS in the same network than your internal webserver : 192.168.10.X

If no internet access, chilli cannot resolve anything with your current DNS config.

@mcpeixoto
Copy link
Author

Can't I make the raspberry "auto-resolve" chilli itself?

@cschnatz
Copy link

Chilli and the client need to resolve the portal page URL to start and get redirected. I've used dnsmasq to build a black hole for every dns request and answer it with the captive-portal-ip.

@mcpeixoto
Copy link
Author

Can you send me some links/more info?

@pihomeserver
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants