You are visiting:Home arrow Articles for Geeks arrow Latest arrow DD-WRT - Multiple SSIDs - 1 for FON - 1 for Private Network Tuesday, 09 March 2010
Google
Support Geek-Pages.com in making a small donation:
Main Menu
Home
Articles for Geeks
FAQs for Non-Geeks
Links
Kevan's Blog
Contact Us
Search
Login Form





Lost Password?
No account yet? Register
Submit article to:
DD-WRT - Multiple SSIDs - 1 for FON - 1 for Private Network PDF Print E-mail
Written by Kevan   


6) Click the Administration tab and click the Info Site Password Protection check box. Scroll to the bottom and select Save Settings.

FON Infosite

7) Click the Hotspot sub-tab. Verify that Chillispot is set to Disable.  Scroll to the bottom and select Save Settings.

FON Chillispot Settings

8)  Click the Commands sub-tab.  Select the following text and paste it into the Commands window.  Scroll to the bottom and select Save Startup.

------------------- Copy starting below this line. -------------------

#!/bin/sh

##

# The following lines create /tmp/chilli.conf

echo -n '
dhcpif wl0.1
radiusserver1 radius01.fon.com
radiusserver2 radius02.fon.com
macauth
radiussecret garrafon
uamserver https://login.fon.com/cp/index.php
uamsecret garrafon
uamallowed www.fon.com,acceso.fon.com,en.fon.com,es.fon.com
uamallowed www.paypal.com,www.paypalobjects.com
uamanydns
net 192.168.182.0/24
dynip 192.168.182.0/24
' > /tmp/chilli.conf

echo -n "radiusnasid `nvram get wl0_hwaddr|sed -e s/:/-/g`" >>/tmp/chilli.conf

# We need to wait 5 seconds to make sure we have our WAN DHCP lease and DNS info.

sleep 5

echo `nvram get wan_get_dns` | sed -e 's/[0-9]/=&/' -e 's/ /%/' -e 's/=/\ndns1 /' -e 's/%/\ndns2 /' >> /tmp/chilli.conf

#The following statement adds a statement to cron.d that runs a heartbeat to fon each night at 2am.

echo '00 02 * * * root /usr/bin/wget "http://download.fon.com/heartbeat.php?mac=`nvram get wl0_hwaddr|sed s/:/-/g`" -O /tmp/inet.html' > /tmp/cron.d/heartbeat

# Runs the heartbeat to fon at startup.
/usr/bin/wget "http://download.fon.com/heartbeat.php?mac=`nvram get wl0_hwaddr|sed s/:/-/g`"

sleep 15

# Execute chillispot

/usr/sbin/chilli --conf /tmp/chilli.conf

------------- Stop here when selecting text to copy -----------

I received a tip from the_wanderer.   If you have three DNS servers supplied by your ISP try replacing:

echo `nvram get wan_get_dns` | sed -e 's/[0-9]/=&/' -e 's/ /%/' -e 's/=/\ndns1 /' -e 's/%/\ndns2 /' >> /tmp/chilli.conf

With :

echo `nvram get wan_get_dns` | sed -e 's/[0-9]/=&/' -e 's/ /%/' -e 's/ /I/' -e 's/=/\ndns1 /' -e 's/%/\ndns2 /' -e's/I/\n# Extra Dns /'>> /tmp/chilli.conf