Chillispot for OpenWrt for FON
FON patched chillispot
a little bit. E.g. the 001-endian_fix.patch
fixes the dhcp server of chillispot
. This one and 100-fon.patch
works fine with chillispot
1.1, but the others need further attention. I am not a C programmer. Maybe someone could help.
Anyway you can use the chillispot
of the FON sources. It is version 1.0. It also installs chilli_radconfig
. You can generate the long string - describe in the previous post. Thanks Anton for the comment. He says, that you can just use uamserver https://login.fon.com/cp/index.php
in the chilli.conf
. Anyway, I generated the string with chilli_radconfig
. Maybe the string is needed for the first time registration of a La Fonera. This would support the assumption. But this is all speculations.
I tried to use it but with no success yet. The chilli.conf looks like that:
radiusserver1 radius01.fon.com radiusserver2 radius02.fon.com radiussecret garrafon # MAC address of wlan device (wifi0) radiusnasid XX:XX:XX:XX:XX:XX # IP of the OpenFonera dns1 192.168.1.223 dns2 192.168.1.223 # interface of the FON_AP dhcpif ath0 uamsecret garrafon uamanydns uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24 uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24 uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com uamserver https://login.fon.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/cp/index.php
When I start it with
chilli -d -f -c /etc/chilli.conf
and connecting a peer to the FON_AP the output is:chillispot[675]: chilli.c: 3090: New DHCP request from MAC=XX-XX-XX-XX-XX-XX New DHCP connection established DHCP requested IP address chillispot[675]: ippool.c: 436: No more IP addresses available chillispot[675]: chilli.c: 3045: Failed allocate dynamic IP address DHCP requested IP address chillispot[675]: chilli.c: 3051: Client MAC=XX-XX-XX-XX-XX-XX assigned IP 192.168.182.2
When I try to open a webpage,
chillispot
reports several times:cb_dhcp_data_ind. Packet received. DHCP authstate: 5 cb_tun_ind. Packet received: Forwarding to link layer
But it won't open a webpage. The redirection doesn't work. I think the problem is my iptables configuration. Anyone who knows how to set up iptables proper for
chillispot
please leave a comment.
5 comments:
chillispot in debug mode shows a memory allocation error, so I guess it simply hasn't enough memory available or is a nasty bug in dd-wrt. anyway also tested the patched fon chilli version and it's displaying same behaviour...anyone else seen this ?
Have you found a solution to this? I have a similar problem if I try MAC cloning on the fonera.
chillispot[675]: ippool.c: 436: No more IP addresses available
chillispot[675]: chilli.c: 3045: Failed allocate dynamic IP address
DHCP requested IP address
I just had the same issue on a "normal" fonera... (just opened up ssh...and enabled syslogging to my system) when I investigated why I got a 4 scenario status page on MyPlace without any "fon_ap"...
ps -ef gave me a running chillispot though :(
Thanks for the nice post!
good post :)
Post a Comment