Following Ivan’s article about how the La Fonera automatically updates it’s chilli.conf file (Chillispot configuracion file), and about the fact that you may like to configure your own set of allowed URLs — URLs users can browse without registering against FON radius –, I propose here a modification of /etc/init.d/N50chillispot.
With that patch applyed to N50chillispot:
* You can now specify your own set of allowed URLs. Put the lines into /etc/chilli.allowed (create the file). Leave the file blank or remove file if you don’t want to allow any URL.
* You’ll receive any update to the file (radius changes,…) but you won’t be affected by "uamallowed" lines (your lines will apply instead).
Here is the patch I propose:
--- N50chillispot.old 2007-03-05 11:43:53.000000000 +0100
+++ N50chillispot 2007-03-05 12:22:13.000000000 +0100
@@ -2,7 +2,9 @@
. /tmp/network-config
TMP_C=/tmp/chilli.conf
+TMP_C_T=/tmp/chilli.conf.tmp
ETC_C=/etc/chilli.conf
+ETC_W=/etc/chilli.allowed
PID_F=/var/run/chilli.pid
PID_LOOP_F=/var/run/chilli_loop.pid
LOG_LOOP_F=/var/log/chilli_loop.log
@@ -69,6 +71,9 @@
--dhcpif $wifi_ifname \
> $TMP_C
[ -n "$(cat $TMP_C)" ] && {
+ grep -v "^uamallowed" $TMP_C > $TMP_C_T
+ [ -f "$ETC_W" ] && cat $ETC_W >> $TMP_C_T
+ mv $TMP_C_T $TMP_C
MD5SUM_TMP=$(md5sum $TMP_C | awk '{ print $1 }')
MD5SUM_ETC=$(md5sum $ETC_C | awk '{ print $1 }')
if [ ! "$MD5SUM_TMP" = "$MD5SUM_ETC" ]; then
(tested on Fonera Firmware Version 0.7.1 rev 1)
Right after receiving my free La Fonera social router, I plugged it into my local home network, and registred it, as explained in the provided guide. The problem (I knew it later), is that when the Fonera boots, it connects to Fon and upgrades itself (and reconfigures itself also).

Recent Comments