Sunday 17 June 2012

coova-chilli build on ubuntu

This is my install of coova-chilli on ubuntu 8.04 server
I already have a radius server with wireless orbit
so install ubuntu with no extras (ftp apache mysql) and setup the eth0 interface network
set up a user account as asked and password
once built
sudo apt-get update
sudo apt-get upgrade
apt-get ssh
log into ssh with host username and port (22) and password
sudo wget http://ap.coova.org/chilli/coova-chilli_1.0.12-1_i386.deb
sudo dpkg -i coova-chilli_1.0.12-1_i386.deb
sudo nano -w /etc/default/chilli
change
START_CHILLI=0
CONFFILE=”/etc/chilli.conf”
to
START_CHILLI=1
CONFFILE=”/etc/chilli.conf”
ctrl x – yes – enter
now at this point i have a chilli.conf already made with the lines
include /usr/local/etc/chilli/main.conf
include /usr/local/etc/chilli/hs.conf
include /usr/local/etc/chilli/local.conf
deleted
here is my chilli conf
________________________________________________________________________________
#
# Chilli Configuration
#
# To configure chilli, see /usr/local/etc/chilli/default
# and then create your own /usr/local/etc/chilli/config
# start / stop chilli with /chilli
#
# For help with coova-chilli,
# visit http://coova.org/wiki/index.php/CoovaChilli
#
# This file can either contain all your chilli configurations, or include
# other files, as shown per default below. The idea here is that main.conf
# contains your main configurations, hs.conf is for your configurations
# delivered by RADIUS (using the Administrative-User login), and local.conf
cmdsocket /usr/local/var/run/chilli.sock
pidfile /usr/local/var/run/chilli.pid
net 192.168.180.0/255.255.255.0
uamlisten 192.168.180.1
uamport 3990
dhcpif eth1
uamallowed 69.36.234.20,www.paypal.com,
www.wirelessorbit.com,paypal.112.207.net,www.paypalobjects.com,portal.wirelessorbit.com
uamanydns
domain lan
dns1 192.168.180.1
uamhomepage http://192.168.182.1:3990/www/coova.html
wisprlogin https://coova.org/app/uam/auth
wwwdir /etc/chilli/www
wwwbin /etc/chilli/wwwsh
locationname “HotSpot”
radiuslocationname HotSpot
radiuslocationid isocc=,cc=,ac=,network=Coova,
radiusserver1 69.36.234.20
radiusserver2 (leave blank for wireless orbit)
radiussecret *********
radiusauthport 1812
radiusacctport 1813
uamserver https://portal.wirelessorbit.com/portal/index.php?portal_id=**********,
radiusnasid nas01
papalwaysok
uamsecret *********
ipup=/etc/chilli/up.sh
ipdown=/etc/chilli/down.sh
___________________________________________________________________________
before i do anything with my chilli.conf i start chilli
sudo /etc/init.d/chilli start
then stop it again
sudo /etc/init.d/chilli stop
this writes the defaults
then i transfer with a ssh file transer window
i use ssh secure shell but winscp will do
transfer into /home/username
then
sudo cp chilli.conf /etc/chilli.conf
finally
sudo nano /etc/rc.local
add the line
iptables -I POSTROUTING -t nat -o eth0 -j MASQUERADE
to turn on nat
ctrl +x answer y and enter
you might also want a second dns server for you wan eth0
i use opendns
so
sudo nano /etc/resolv.conf
nameservers 208.67.222.222
nameservers 208.67.220.220
ctrl +x answer y and enter
sudo reboot and if radius configured correctly you should have a coova redirect page
then your login page with your radius server
i also fiddle with the index.html in /etc/chilli/www to put a company logo and name for the small redirect page before it goes to the main login page

No comments:

Post a Comment