Kupiki-Hotspot-Script icon indicating copy to clipboard operation
Kupiki-Hotspot-Script copied to clipboard

Captive portal without ethernet

Open Tywors opened this issue 6 years ago • 20 comments

Hello! Why don't show the captive portal if the raspberry don't have internet (ethernet cable)?

How I can resolve this, please?

Tywors avatar Dec 30 '17 19:12 Tywors

Sorry i Don't understand what is your expected behavior. Can you please provide more details

pihomeserver avatar Dec 30 '17 20:12 pihomeserver

Hi! I need kupiki only for navegate in Lan websites, for wikis and docs. But if i disconnect the ethernet from the raspberry, i can connect to hotspot but don't show the captive website.

Sorry for my english,

Cool project! thanks

Tywors avatar Dec 30 '17 20:12 Tywors

Ok so let me guess why it does not work. If you remove the ethernet link, then the interface is not set with an IP, etc. Then coova rules in up.sh with IP tables will not work at all. Try to remove added rules in up.sh.

pihomeserver avatar Dec 31 '17 11:12 pihomeserver

ok Thanks! Try remove all rules in /chilli/up.sh or only the rules that contain the word coova? I don't understand the rules very good..

PD: Raspberry have static ip eth0, not enough for coova rules?

Tywors avatar Dec 31 '17 12:12 Tywors

You will have to remove the added rules at the end of the script If there is no cable i'm pretty sure that the IP will not be set and then redirection rules will fail

pihomeserver avatar Jan 01 '18 15:01 pihomeserver

Hi, i'm using your prepare .img Would you know what number of lines they are?

I'm not able to make it work. Thanks!

Tywors avatar Jan 06 '18 16:01 Tywors

The image is obsolete. Lines are the one added to /etc/coova/up.sh Should be the 8-10 lines at the end. I dont have the hotspot available for now

pihomeserver avatar Jan 06 '18 19:01 pihomeserver

Erased this lines `ipt -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE

LOCAL_IP=ifconfig $HS_WANIF | grep -Eo "inet (addr:)?([0-9]\.){3}[0-9]" | gr$ LOCAL_LAN=ip -o -f inet addr show | grep $HS_WANIF | awk '/scope global/ {prin$ ipt -I FORWARD 1 -i $TUNTAP -d $LOCAL_LAN -j DROP ipt -I INPUT 1 -i $TUNTAP -d $LOCAL_IP -j DROP`

Hotspot on, captive portal dead

mcpeixoto avatar Sep 21 '18 20:09 mcpeixoto

Put them back, and now captive portal is still dead '-' HELP?

mcpeixoto avatar Sep 21 '18 20:09 mcpeixoto

Dis you stop - start the service ? Reboot ? If it still does not work then you sure changed something else before

pihomeserver avatar Sep 22 '18 17:09 pihomeserver

Just reinstalled everything. working.

Now I'm trying to see if this work without Ethernet plugged in

mcpeixoto avatar Sep 22 '18 20:09 mcpeixoto

Any thoughts on that? @pihomeserver

mcpeixoto avatar Sep 23 '18 21:09 mcpeixoto

Found this: https://github.com/coova/coova-chilli/issues/212

Any suggestions? Still nothing when I unplug the wlan0

mcpeixoto avatar Oct 02 '18 15:10 mcpeixoto

Sounds to help in the good direction with the capability to have a landing page in case Internet is not up. If you give a try i'm curious of the result to add it in the script

pihomeserver avatar Oct 02 '18 17:10 pihomeserver

@Tywors @acujl Are you able to configure the chilli without internet?

s13884 avatar Apr 18 '19 15:04 s13884

@s13884 yes, without internet yes. But i need connect (raspberry in my case) to a wifi mobile phone without internet. But work :)

Tywors avatar Apr 18 '19 15:04 Tywors

Thanks @Tywors So it requires Ethernet cable plugged in without internet? Or rpi wifi connected to AP?
Also would you please help me to configure the same?

s13884 avatar Apr 19 '19 08:04 s13884

@s13884 sorry i don't have time to help.. but its simple i only connect rpi to AP without internet.

Tywors avatar Apr 19 '19 13:04 Tywors

Ok @Tywors, is it possible for you to share the chilli config?

s13884 avatar Apr 19 '19 14:04 s13884

Hi. I have a similar question. I'm trying to setup a captive portal with only a Raspberry Pi. No internet & no router. The purpose is (in a no wifi situation) to have a custom portal page to allow users to connect via wifi to the page & download different files on the Raspberry Pi. Do you know if this is possible via Kupiki or other option?

Thanks for your help.

doxendine avatar Dec 17 '19 03:12 doxendine