I use CoovaChilli v1.2.9 with Attitude Adjustment for wireless mesh nodes,
although I don't use CoovaEWT on the NAS since it's bound to a commercial
product.

I did briefly try the version of CoovaChilli (v1.3.0?) under trunk,
compiled earlier this year (before BB released).  I believe I got
CoovaChilli working acceptably, but I didn't get much further since the
system-wide init scripts weren't quite working for me yet.

You do indeed need to disable dhcp on whatever interface CoovaChilli is
bound to, although you shouldn't need to disable dnsmasq entirely.

A problem (for AA and trunk) I had was the need to use a custom
/etc/init.d/chilli file adapted from Robin Mesh firmware.  The CoovaChilli
package source either didn't have this file, or the one included didn't
work.

I'm quoting my /etc/init.d/chilli below for your reference.  The start-up
invocation that probably is relevant to you would just be
"/usr/sbin/chilli".  I specify an MTU value so that chilli client traffic
plays nice with olsrd.

#!/bin/sh /etc/rc.common
# description: Startup/shutdown script for coova-chilli captive portal
# RO.B.IN - 2007 by Antonio Anselmi <a.anselmi-at-oltrelinux-dot-com>
# Modifications 2013 by Ben West <[email protected]>

#/etc/init.d/chilli
. /etc/chilli/functions

START=99
STOP=15
ME="chilli"

check_required

start () {
#    /etc/cp.conf/chilli
    logger -s -t  "$ME" "Starting... "

    insmod tun >/dev/null 2>&1
    writeconfig
    radiusconfig

    ifconfig $HS_LANIF 0.0.0.0

    if [ 1 -eq "$(uci get management.enable.proxy)" ] ; then
        PROXY_IP=$(uci get node.general.IP_ap |awk -F / '{print $1}')
        PROXY_PORT="8888"
        /usr/sbin/chilli --mtu 1480 --postauthproxy $PROXY_IP
--postauthproxyport $PROXY_PORT
    else
        /usr/sbin/chilli --mtu 1480
    fi

    if [ "$?" -eq 0 ] ; then
        logger -s -t  "$ME" "started"
    else
        logger -s -t  "$ME" "start exited with non 0 status"
    fi
}


stop () {
    logger -s -t  "$ME" "Stopping... "

    if [ -f /var/run/chilli.pid ] ; then
        kill $(cat /var/run/chilli.pid)
        rm -f /var/run/chilli.pid
    fi
    killall chilli

    if [ "$?" -eq 0 ] ; then
        logger -s -t  "$ME" "stopped"
    else
        logger -s -t  "$ME" "stop exited with non 0 status"
    fi
}

restart() {
    trap '' TERM
    stop "$@"
    sleep 5
    start "$@"
}
#

I believe the /etc/chillli/functions file referenced is installed with the
coovachilli package.

Likewise, here is the /etc/chilli/config file I use, which will have some
variations specific to my case.  Note that it picks up values from
/etc/config/chilli and /etc/config/network.

HS_UAMHOMEPAGE="http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html";
HS_LOC_NAME=$(uci get system.@system[0].hostname)
HS_UAMPORT=$(chilli.agent.uamport)
HS_SERVICE=$(chilli.agent.service)
HS_RADIUSSERVER1=$(uci get chilli.agent.radiusserver1)
HS_RADIUSSERVER2=$(uci get chilli.agent.radiusserver2)
HS_UAMSERVER=$(uci get chilli.agent.uamserver)
HS_UAMURL=$(uci get chilli.agent.uamurl)
HS_UAMSECRET=$(uci get chilli.agent.uamsecret)
HS_RADIUSSECRET=$(uci get chilli.agent.radiussecret)
HS_RADIUSNASID=$(uci get chilli.agent.radiusnasid)
HS_ADMPWD=$(uci get chilli.agent.adminpwd)
HS_UAMDOMAIN=$(uci get chilli.agent.uamdomain)
HS_MODE=hotspot
HS_TYPE=chillispot
HS_LANIF=br-ap1
HS_NETWORK=$(ipcalc.sh `uci get network.ap1.ipaddr` 255.255.255.0 | awk
-F'NETWORK=' '/NETWORK/ {print $2}')
HS_NETMASK=255.255.255.0
HS_SSID=$(uci get wireless.@wifi-iface[2].ssid)
HS_NASMAC=$(uci get wireless.radio0.macaddr | tr a-z A-Z | sed s/:/-/g)
HS_DNS1=$(uci get network.ap1.ipaddr)
HS_UAMLISTEN=$(uci get network.ap1.ipaddr)
HS_NASID="${HS_RADIUSNASID:-$(uci get system.@system[0].hostname)}"
HS_RADIUS="$HS_RADIUSSERVER1"
HS_RADIUS2="$HS_RADIUSSERVER2"
HS_RADSECRET="$HS_RADIUSSECRET"
HS_ANYIP="${HS_ANYIP:-off}"
HS_MACAUTH="${HS_MACAUTH:-on}"
HS_UAMDOMAINS="$HS_UAMDOMAIN $HS_UAMDOMAINS"
HS_UAMSERVER_URL=$(echo $HS_UAMSERVER|awk -F'://' '{print (NF == 1) ?
"http://"; $1 : $1 "://" $2;}')
HS_UAMSERVER=$(echo $HS_UAMSERVER|awk -F'://' '{print (NF == 1) ? $1 :
$2;}')
HS_UAMFORMAT="\$HS_UAMSERVER_URL\$HS_UAMURL\$HS_UAMURLEXTRAS"

Likewise, this is my /etc/chilli/local.conf

swapoctets
defsessiontimeout 7200
defidletimeout 3600

Hope this helps.


On Thu, Dec 18, 2014 at 6:12 AM, Ronaldo Afonso <
[email protected]> wrote:
>
>  Hi Quinn,
>
>  I'm having a hard time doing it too.
>
>  I don't have a completely deploy here, but I noticed that you have to
> disable dnsmasq in order to coova-chilli to work (/etc/init.d/dnsmasq
> disable).
>
>  If you find some good documentation, please share it with us here, ok?
>
> Thanks ...
>
> 2014-12-17 18:27 GMT-02:00 Quinn McLaughlin <[email protected]>:
>
>> Hi all,
>>
>> Has anyone successfully set up CoovaChilli on Barrier Breaker?  I have
>> installed the packages but am a bit stuck from here.  Would value some help
>> on where to look for next steps - especially on getting the CoovaEWT GUI
>> up, if it is included.  Or any links to successful, recent configurations.
>>
>> Thanks much for your help.
>>
>> Quinn McLaughlin
>> _______________________________________________
>> openwrt-users mailing list
>> [email protected]
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>>
>
>
> --
> Ronaldo Afonso
> 11 9 5252 0484
> www.ronaldoafonso.com.br
>
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
>

-- 
Ben West
http://gowasabi.net
[email protected]
314-246-9434
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to