Tuesday, January 02, 2007

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.

7 comments:

frank said...

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 ?

Daniel said...

Have you found a solution to this? I have a similar problem if I try MAC cloning on the fonera.

goosync said...

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 :(

free ps3 said...

Thanks for the nice post!

aiyipianni said...

Aston Villa rode their luck at Hull City where an 88-minute own goal from Kamil Zayatte saw them leapfrog three points clear of Arsenal and into fourth place in the Premier League wow gold with a 1-0 win.

Villa had to survive Hull penalty appeals for a handball against Ashley Young in time added on, television replays showing that referee Steve Bennett wow gold correctly rejected the claims after consulting a linesman.

Bennett had been involved in controversy after just five minutes when American goalkeeper Brad Friedel looked to have handed Hull the initiative and threaten Villa's return to the Champions League qualifying wow gold zone.

Friedel spilled wow gold the ball under pressure from Nick Barmby and stand-in right-back Nigel Reo-Coker turned it into his own net as he attempted to wow gold clear.

But Bennett cut short wow gold celebrations at the KC Stadium -- and let Friedel off the hook -- when he ruled out the score for an apparent infringement by Barmby.

Zayatte's intervention from a Young cross bound for wow gold Gabriel Agbonlahor then saw Villa leapfrog Arsenal and draw level with Manchester United on 38 points -- seven adrift of leaders Liverpool and four wow gold behind Chelsea.

Stung by an on-pitch dressing down wow gold by manager Phil Brown at Manchester City last week, Hull showed five changes and a vastly improved performance.

Promoted Hull were looking for only their second win in 11 games while wow gold Villa arrived unbeaten in seven and it looked to be heading for a goalless draw when the home side suffered a cruel late blow.

aiyipianni said...

Premier League leaders Liverpool thrrew their "full support" world of warcraft gold behind Steven Gerrard after their captain was charged with assault on Tuesday following an incident at a local nightclub.

Gerrard, 28, and two other men were charged with assault occasioning bodily harm and affray, Merseyside police said.

They are scheduled to world of warcraft gold appear in court on January 23.

In the wake of the charges, Liverpool issued a wow power leveling statement on their official Web site.

"Steven has been an outstanding servant to world of warcraft gold Liverpool for the last ten years and the club will give him all the support he needs at this time," it read.

The offenses with which Gerrard have been charged carry cheap wow gold a maximum penalty of five years in prison.

Three other men, who were also arrested, were world of warcraft gold released without charge pending further inquiries.

Gerrard was arrested cheap wow gold in the early hours of Monday morning and eventually charged after over 20 hours in police custody.

His wife Alex Curran was seen near the police station where world of warcraft gold he was held but drove off without talking to reporters.

Gerrard had been celebrating his side's 5-1 buy wow gold win over Newcastle on Sunday when the alleged altercation occurred.

He had scored two goals in the victory at St James' Park which left world of warcraft gold Liverpool top of the English Premier League and on course for their first English title in 18 years.

He was released on bail to wow power leveling appear in court on January 23 with John Doran, 29, and Ian Smith, 19, who were charged with the same offenses.

Gerrard, who has spent his entire career with Liverpool, world of warcraft gold is one of the most celebrated players in the club's history and renowned as a model professional.

In 2005 he lifted the European Cup -- Liverpool's fifth -- wow gold kaufen after a thrilling penalty shooting victory over AC Milan and turned down the advances of cash-rich Chelsea to stay with his local club.

The midfielder has also made 70 appearances for England, dofus kamas captaining his country on four occasions.

He was made an Member of the British Empire (MBE) last year and received an honorary fellowship from Liverpool's John Moores University.

Liverpool's next match is against Preston in the kamas dofusEnglish FA Cup on Saturday, a game Gerrard was due to sit out because of suspension

Gold Guide for World of Warcraft said...

good post :)