cmbranco
Posts: 1
Joined: Wed Nov 28, 2012 1:40 pm

Captive Portal - CoovaChilli

Wed Nov 28, 2012 1:44 pm

Hello all
I´m planning to use my raspberry PI to limit the access to my wireless.

I want to create an HotSpot and install a captive portal so that users have to login before using the internet access.

Does anyone tryed this? I saw in other topic to use the following "chillispot_1.0-10.1_armhf.deb" but i believe this is an old version and i always get the message "segmentation fault" after instalation.

Any ideas or alternatives for a captive portal solution?

Thanks

broo0ose
Posts: 318
Joined: Wed Dec 14, 2011 3:59 pm
Location: Wirral, UK

Re: Captive Portal - CoovaChilli

Fri Nov 30, 2012 10:40 pm

CoovaChilli is the captive portal system, but you need something for it to authenticate against. This is usually a RADIUS server. In some circles this is known as a AAA server which stands for Authentication Authorisation and Accounting. The usual open source RADIUS server is FreeRADIUS which is excellent, but can be a bit daunting as there are so many options.

I've done it using YFi and CoovaChilli on PCs using Ubuntu. I have 13 Coova Chilli hotspots around the country being managed centrally from one YFi instance. But you can have both on one piece of hardware. I've never tried it on a Pi though.

It works very well on a PC. The YFi system is excellent, it allows you to set up vouchers, and permanent users. Even MAC address authentication and paid access. Walt the developer is very helpful. It uses MySQL and FreeRADIUS as a back end.

http://sourceforge.net/projects/hotcakes/
http://sourceforge.net/apps/trac/hotcak ... /WikiStart
http://www.coova.org/CoovaChilli

freehotspot
Posts: 1
Joined: Wed Apr 03, 2013 5:40 pm

Re: Captive Portal - CoovaChilli

Wed Apr 03, 2013 8:58 pm

Hello,

i am looking for a good tutorial for Coova-Chilli with YFI on a Raspi... Do you know any?

broo0ose
Posts: 318
Joined: Wed Dec 14, 2011 3:59 pm
Location: Wirral, UK

Re: Captive Portal - CoovaChilli

Sat Apr 06, 2013 4:17 pm

Not specifically for RasPi. But the wiki here is very good.

http://sourceforge.net/apps/trac/hotcak ... /WikiStart

chon
Posts: 4
Joined: Wed Aug 14, 2013 4:27 am

Re: Captive Portal - CoovaChilli

Thu Aug 15, 2013 3:47 am

I've done up a howto guide on how to install CoovaChilli on the Pi and it's in a .doc file format. When I try and post it I'm given an error. I changed the format to an openfile format but that is also rejected. As this is my first post and it is reviewed to make sure it is not spam I'm hoping the reviewer will tell me how to do this. I'll post this document as soon as I can.
Chon

grovep
Posts: 10
Joined: Sun Oct 21, 2012 8:32 pm

Re: Captive Portal - CoovaChilli

Thu Aug 15, 2013 7:57 am

Thanks
I did have a go at the guide at http://aryo.info/labs/captive-portal-us ... ables.html but seemed to go amiss when setting iptables. I look forward to your guide.

chon
Posts: 4
Joined: Wed Aug 14, 2013 4:27 am

Re: Captive Portal - CoovaChilli

Thu Aug 15, 2013 2:39 pm

Hi all.

I've put together this howto guide on how to install CoovaChilli on the Pi. Please feel free to edit it and improve on it as you see fit. Should you have any issues, questions, or comments, I'd be happy to help out.

Thanks,
chon
Attachments
HOWTO Install CoovaChilli on a Raspberry Pi using Raspian, FreeRADIUS and MySQL v1.zip
(22.37 KiB) Downloaded 3287 times

grovep
Posts: 10
Joined: Sun Oct 21, 2012 8:32 pm

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 1:59 pm

I've managed to compile chilli but get a different output when I install it:
chown cannot access /etc/chilli/www - no file or directory
chillil default off look at etc/default/chilli

Also 1 typo (I think) step 4 "nano /etc/freeradius/radius.conf" should read "nano /etc/freeradius/radiusd.conf"

Thanks for a very extensive guide

chon
Posts: 4
Joined: Wed Aug 14, 2013 4:27 am

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 3:22 pm

Hi grovep.

I ran into this error as well when I tried to compile CoovaChilli. The fix is the following. Go into the file:
$ sudo nano /usr/src/coova-chilli-1.3.0/debian/rules

Close to the bottom of the file you need to change the line:
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
to:
$(MAKE) DESTDIR=/ install

Then re-compile.

To confirm this is the issue, you may want to install the .deb file using the dpkg -i command. The downside to doing this is that you'll have to remove all the files installed by this prior to reinstalling the re-compiled .deb file (a bit of a pain in the butt) but the upside is that you'll be able to check whether the /etc/chilli/www directory is under the /usr/src/coova-chilli-1.3.0/debian/tmp/ directory (which I suspect is the case). There shouldn't be anything in there by the way. In fact, there shouldn't even be a tmp directory. If there's a .../debian/tmp directory with directories and files in it then the above change will fix your issue.

Let me know if this helps. Thanks for pointing out the typo.
chon

grovep
Posts: 10
Joined: Sun Oct 21, 2012 8:32 pm

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 5:36 pm

My /usr/src/debian/rules files looks like this already

Code: Select all

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_prep
        dh_installdirs
        $(MAKE) DESTDIR=/install

grovep
Posts: 10
Joined: Sun Oct 21, 2012 8:32 pm

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 5:40 pm

I'll try with a space between the "/" and "install" :)

chon
Posts: 4
Joined: Wed Aug 14, 2013 4:27 am

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 6:24 pm

That's the likely culprit. Let me know how it goes.

grovep
Posts: 10
Joined: Sun Oct 21, 2012 8:32 pm

Re: Captive Portal - CoovaChilli

Fri Aug 16, 2013 10:07 pm

yes that was the culprit. - Thanks
Now managed to get it running but not quite working properly - no internet access, redirects when I attempt to access the router but even after authenticating still no access to internet nor router
My config is 2 wired nics eth0 facing internet and eth1 facing home network. I will check IP addresses etc next few days when I have a little more time.

Thanks

itza3985
Posts: 1
Joined: Mon Nov 04, 2013 9:20 pm

Re: Captive Portal - CoovaChilli

Mon Nov 04, 2013 9:36 pm

hi. I also I have the same problem. achievement not have internet access. I use coovachilli, yfi, please if you can help me or give me an idea of how to solve the problem :?

codelectron
Posts: 16
Joined: Thu Oct 10, 2013 6:11 pm
Location: Germany
Contact: Website

Re: Captive Portal - CoovaChilli

Tue Jan 28, 2014 1:47 pm

itza3985 wrote:hi. I also I have the same problem. achievement not have internet access. I use coovachilli, yfi, please if you can help me or give me an idea of how to solve the problem :?
did you add this line
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
at the end of this file /etc/chilli/up.sh

Krishna
www.codelectron.com
www.codelectron.com

Shiki
Posts: 1
Joined: Mon Feb 03, 2014 12:36 am

Re: Captive Portal - CoovaChilli

Mon Feb 03, 2014 12:53 am

Hi All, I have tried the above setup steps closely on the doc, works till the last portion when I try tried the first test login, I saw redirect of URL and coova logo with a blank page.

Anyone can advise how to troubleshoot the problem?

hmvy88
Posts: 3
Joined: Thu Feb 20, 2014 9:53 pm

Re: Captive Portal - CoovaChilli

Thu Feb 20, 2014 9:55 pm

Which is a web server using CoovaChilli ???

hmvy88
Posts: 3
Joined: Thu Feb 20, 2014 9:53 pm

Re: Captive Portal - CoovaChilli

Fri Feb 21, 2014 12:37 am

When I try to enter with the browser appear "coova redirecting" next don't charge nothing.... Please Help me

codelectron
Posts: 16
Joined: Thu Oct 10, 2013 6:11 pm
Location: Germany
Contact: Website

Re: Captive Portal - CoovaChilli

Fri Feb 21, 2014 10:58 am

Can you post your dmesg and other log messages?
Check if your radius, and chilli are running fine using ps -e |grep radius.

Krishna
www.codelectron.com
www.codelectron.com

arcanon
Posts: 36
Joined: Wed Nov 14, 2012 9:18 am

Re: Captive Portal - CoovaChilli

Mon Feb 24, 2014 7:35 pm

At last, I found a way to allow anonymous users per MAC address and then you can track each user to only allow 30 min per day. I can't believe this feature is not there by default and its so easy to up in. Details at:
http://subgroup-ash.blogspot.de/2014/02 ... allow.html

hmvy88
Posts: 3
Joined: Thu Feb 20, 2014 9:53 pm

Re: Captive Portal - CoovaChilli

Tue Mar 04, 2014 2:38 am

Thanks but I solved reinstalling CoovaChilli ;)

aaxx254
Posts: 1
Joined: Thu Mar 27, 2014 5:40 am

Re: Captive Portal - CoovaChilli

Thu Mar 27, 2014 5:45 am

If eth0 does not connect to the network,can not to redirect.
How should I do?

MassDivide
Posts: 1
Joined: Fri Jun 20, 2014 4:43 am

Re: Captive Portal - CoovaChilli

Fri Jun 20, 2014 4:47 am

I wish I could find a solution here.

Says its installed:
http://i.imgur.com/F0r0Gv7.png

Configed:
http://i.imgur.com/GYCD4ZN.png


And this is what I get after the "coova redirecting"

http://i.imgur.com/xaltFmw.png

nepalaya
Posts: 1
Joined: Wed Aug 27, 2014 5:54 pm

Re: Captive Portal - CoovaChilli

Fri Aug 29, 2014 5:06 pm

when ever i start coova chilli it gives an error could not generate configuration fie /var/run/ coova.2742.cgi.bin please help me. i am new here

moymac
Posts: 1
Joined: Fri Sep 05, 2014 8:50 pm

Re: Captive Portal - CoovaChilli

Fri Sep 05, 2014 8:53 pm

MassDivide wrote:I wish I could find a solution here.

Says its installed:
http://i.imgur.com/F0r0Gv7.png

Configed:
http://i.imgur.com/GYCD4ZN.png


And this is what I get after the "coova redirecting"

http://i.imgur.com/xaltFmw.png
Hey MassDivide. Any solution yet? I have the same problem

Return to “Networking and servers”