Ubuntu 12.04 LTS, Chilli 1.2.9, Chilli Won't Run

Long story short just built and installed chilli on a clean install of Ubuntu 12.04 LTS x64.

eth0 has a static WAN IP, goes to modem
eth1 is set to static at 10.0.1.1, wired DIRECTLY into a test system

Here is a step by step of what I did.


apt-get install dpkg-dev debhelper libtool libssl-dev libcurl4-openssl-dev
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
sed --in-place=.old 's/^#\(net.ipv4.ip_forward=1\)/\1/' /etc/sysctl.conf
sysctl -p
cd /tmp
wget -c http://ap.coova.org/chilli/coova-chilli-1.2.9.tar.gz
tar xzf coova-chilli*.tar.gz
cd coova-chilli*
./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-json --enable-largelimits --with-openssl --enable-layer3 --enable-binstatusfile
make
checkinstall
mv ./coova-chilli*.deb /root/coova-chilli_1.2.9_amd64.deb
cd /root
dpkg -i coova*.deb
reboot

At this point it is built, and installed. I then configure it

nano /etc/chilli/config

HS_WANIF=eth0 # WAN Interface toward the Internet
HS_LANIF=eth1 # Subscriber Interface for client devices
HS_NETWORK=10.0.1.0 # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=255.255.255.0 # HotSpot Network Netmask
HS_UAMLISTEN=10.0.1.1 # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990 # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990 # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)
HS_DYNIP=10.0.1.100
HS_DYNIP_MASK=255.255.255.0
HS_STATIP=10.0.1.1
HS_STATIP_MASK=255.255.255.0
HS_DNS_DOMAIN=X.net
HS_NASID=nas01
HS_RADIUS=localhost
HS_RADIUS2=localhost
HS_UAMALLOW=X.net
HS_RADSECRET=X # Set to be your RADIUS shared secret
HS_UAMSECRET=XX # Set to be your UAM secret
HS_UAMALIASNAME=chilli
HS_UAMDOMAINS=".paypal.com,.paypalobjects.com"
HS_UAMSERVER=$HS_UAMLISTEN
HS_UAMFORMAT=http://X.net/gateway.php
HS_UAMHOMEPAGE=http://X.net/gateway.php

I then run and stop the service to generate hs.conf, local.conf, and main.conf

service chilli start && service chilli stop

Now when I run coovachilli, I get this...


chilli --fg --debug
main-opt.c: 601: 0 (Debug) DHCP Listen: 10.0.1.1
main-opt.c: 602: 0 (Debug) UAM Listen: 10.0.1.1
garden.c: 413: 0 (Debug) Uamallowed IP address #0:1024: proto=0 host=173.245.61.43 port=80
garden.c: 413: 0 (Debug) Uamallowed IP address #1:1024: proto=0 host=173.245.61.119 port=80
garden.c: 442: 0 (Debug) Uamallowed www.coova.org
garden.c: 413: 0 (Debug) Uamallowed IP address #2:1024: proto=0 host=174.129.195.118 port=0
garden.c: 442: 0 (Debug) Uamallowed 10.0.1.1
garden.c: 413: 0 (Debug) Uamallowed IP address #3:1024: proto=0 host=10.0.1.1 port=0
garden.c: 442: 0 (Debug) Uamallowed X.net
garden.c: 413: 0 (Debug) Uamallowed IP address #4:1024: proto=0 host=173.245.61.43 port=0
garden.c: 413: 0 (Debug) Uamallowed IP address #5:1024: proto=0 host=173.245.61.119 port=0
options.c: 442: 0 (Debug) PID 9321 saving options to /var/run/chilli.9320.cfg.bin
options.c: 651: 0 (Debug) PID 9320 reloaded binary options file
chilli.c: 7147: 0 (Debug) clock realtime sec 1344884267 nsec 117722384
chilli.c: 7152: 0 (Debug) clock monotonic sec 736 nsec 174976944
tun.c: 604: 0 (Debug) TX queue length set to 100
tun.c: 1107: 0 (Debug) Running /etc/chilli/up.sh
ippool.c: 337: 0 (Debug) Hashlog 8 253 256
net.c: 1236: 0 (Debug) Net SNDBUF 229376
net.c: 1239: 0 (Debug) Net RCVBUF 229376
net.c: 1292: 0 (Debug) device eth1 ifindex 3
net.c: 1308: 0 (Debug) lo address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) eth0 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) eth1 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) lo address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) eth0 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) eth1 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) tun0 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) lo address family: 10 (AF_INET6)
net.c: 1308: 0 (Debug) eth0 address family: 10 (AF_INET6)
net.c: 1308: 0 (Debug) eth1 address family: 10 (AF_INET6)
net.c: 1323: 0 (Debug) address:
dhcp.c: 480: 0 (Debug) hash table size 512 (512)
dhcp.c: 332: 0 (Debug) GARP: Replying to broadcast
dhcp.c: 1172: 0 (Debug) dhcpif (eth1) IPv6 address fe80::a00:27ff:fe25:9535
radius.c: 1285: 0 (Debug) RADIUS client 0.0.0.0:0
chilli.c: 7296: 0 (Debug) Waiting for client request...
radius.c: 224: 0 (Debug) qnext=0
radius.c: 224: 0 (Debug) qnext=0
radius.c: 294: 0 (Debug) RADIUS queue-in id=0 idx=0
radius.c: 1505: 0 (Debug) RADIUS id=0 sent to 127.0.0.1:1813
net.c: 387: 0 (Debug) net select count: 1
net.c: 387: 0 (Debug) net select count: 2
net.c: 387: 0 (Debug) net select count: 3
net.c: 387: 0 (Debug) net select count: 4
net.c: 387: 0 (Debug) net select count: 5
net.c: 387: 0 (Debug) net select count: 6
net.c: 387: 0 (Debug) net select count: 7
net.c: 387: 0 (Debug) net select count: 8
radius.c: 1740: 0 (Debug) Received RADIUS packet id=0
radius.c: 264: 0 (Debug) idx 0 pid 0 id 0
radius.c: 406: 0 (Debug) RADIUS queue-out id=0 idx=0
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 78-CD-8E-7A-21-5E
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 00-90-7F-3C-8E-55
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
dhcp.c: 3491: 0 (Debug) function dhcp_receive_ip()
dhcp.c: 3579: 0 (Debug) Not for our MAC or broadcast: 08-00-27-74-38-E3
chilli.c: 378: 0 (Debug) caught 17 via selfpipe
chilli.c: 309: 0 (Debug) child 9323 terminated

Here it hangs and does nothing, so I quit out

^C
chilli.c: 378: 0 (Debug) caught 2 via selfpipe
chilli.c: 335: 0 (Debug) SIGTERM: shutdown
chilli.c: 7535: 0 (Debug) CoovaChilli shutting down
radius.c: 224: 0 (Debug) qnext=1
radius.c: 224: 0 (Debug) qnext=1
radius.c: 294: 0 (Debug) RADIUS queue-in id=1 idx=1
radius.c: 1505: 0 (Debug) RADIUS id=1 sent to 127.0.0.1:1813
tun.c: 1107: 0 (Debug) Running /etc/chilli/down.sh
options.c: 681: 0 (Debug) Removing /var/run/chilli.9320.cfg.bin

Any ideas on what I am doing wrong?

Same setup, debian 6.0.5, i386

Did the same setup as above, except in debian. Get the same error.


root@debian:~# chilli --fg --debug
main-opt.c: 601: 0 (Debug) DHCP Listen: 10.0.1.1
main-opt.c: 602: 0 (Debug) UAM Listen: 10.0.1.1
main-opt.c: 627: 0 (Debug) Could not resolve IP address of uamserver: http://X.net/gateway.php!
garden.c: 442: 0 (Debug) Uamallowed www.coova.org
garden.c: 530: 11 (Resource temporarily unavailable) Invalid uamallowed domain or address: www.coova.org!
garden.c: 442: 0 (Debug) Uamallowed 10.0.1.1
garden.c: 413: 0 (Debug) Uamallowed IP address #0:1024: proto=0 host=10.0.1.1 port=0
garden.c: 442: 0 (Debug) Uamallowed uberwireless.net
garden.c: 530: 11 (Resource temporarily unavailable) Invalid uamallowed domain or address: uberwireless.net!
options.c: 442: 0 (Debug) PID 1468 saving options to /var/run/chilli.1467.cfg.bin
options.c: 410: 0 (Debug) Loading modules
options.c: 651: 0 (Debug) PID 1467 reloaded binary options file
chilli.c: 7147: 0 (Debug) clock realtime sec 1344888522 nsec 724718868
chilli.c: 7152: 0 (Debug) clock monotonic sec 38 nsec 173746498
tun.c: 604: 0 (Debug) TX queue length set to 100
tun.c: 1107: 0 (Debug) Running /etc/chilli/up.sh
ippool.c: 337: 0 (Debug) Hashlog 8 253 256
net.c: 1236: 0 (Debug) Net SNDBUF 112640
net.c: 1239: 0 (Debug) Net RCVBUF 112640
net.c: 1292: 0 (Debug) device eth1 ifindex 3
net.c: 1308: 0 (Debug) lo address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) eth0 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) eth1 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) lo address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) eth0 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) eth1 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) tun0 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) lo address family: 10 (AF_INET6)
net.c: 1308: 0 (Debug) eth0 address family: 10 (AF_INET6)
net.c: 1308: 0 (Debug) eth1 address family: 10 (AF_INET6)
net.c: 1323: 0 (Debug) address:
dhcp.c: 480: 0 (Debug) hash table size 512 (512)
dhcp.c: 332: 0 (Debug) GARP: Replying to broadcast
dhcp.c: 1172: 0 (Debug) dhcpif (eth1) IPv6 address fe80::a00:27ff:fe25:9535
radius.c: 1285: 0 (Debug) RADIUS client 0.0.0.0:0
chilli.c: 7296: 0 (Debug) Waiting for client request...
radius.c: 224: 0 (Debug) qnext=0
radius.c: 224: 0 (Debug) qnext=0
radius.c: 294: 0 (Debug) RADIUS queue-in id=0 idx=0
radius.c: 1505: 0 (Debug) RADIUS id=0 sent to 127.0.0.1:1813
net.c: 387: 0 (Debug) net select count: 1
net.c: 387: 0 (Debug) net select count: 2
net.c: 387: 0 (Debug) net select count: 3
net.c: 387: 0 (Debug) net select count: 4
net.c: 387: 0 (Debug) net select count: 5
net.c: 387: 0 (Debug) net select count: 6
net.c: 387: 0 (Debug) net select count: 7
rtmon.c: 461: 0 (Debug) i=0 sz=1
rtmon.c: 461: 0 (Debug) i=0 sz=2
rtmon.c: 461: 0 (Debug) i=1 sz=2
rtmon.c: 461: 0 (Debug) i=0 sz=3
rtmon.c: 461: 0 (Debug) i=1 sz=3
rtmon.c: 461: 0 (Debug) i=2 sz=3
System Interfaces
0) lo (1) ip=127.0.0.1 net=127.0.0.0 mask=255.0.0.0 mac=00-00-00-00-00-00 mtu=16436
1) eth0 (2) ip=24.159.XXX.XXX net=24.159.XXX.XXX mask=255.255.255.240 bcase=24.159.XXX.XXX mac=08-00-27-74-38-e3 mtu=1500
2) eth1 (3) ip=10.0.1.1 net=10.0.1.0 mask=255.255.255.0 bcase=10.0.1.255 mac=08-00-27-25-95-35 mtu=1500
3) tun0 (9) ip=10.0.1.1 net=10.0.1.0 mask=255.255.255.0 peer=10.0.1.1 mac=00-00-00-00-00-00 mtu=1500
System Routes
0) dst=24.159.XXX.XXX mask=255.255.255.240 dev=eth0 (2)
1) dst=10.0.1.0 mask=255.255.255.0 dev=eth1 (3)
2) dst=10.0.1.0 mask=255.255.255.0 dev=tun0 (9)
net.c: 387: 0 (Debug) net select count: 8
net.c: 387: 0 (Debug) net select count: 9
radius.c: 1740: 0 (Debug) Received RADIUS packet id=0
radius.c: 264: 0 (Debug) idx 0 pid 0 id 0
radius.c: 406: 0 (Debug) RADIUS queue-out id=0 idx=0
options.c: 410: 0 (Debug) Loading modules
main-script.c: 75: 0 (Debug) USER root(0/0), GROUP root(0/0) CHILLI[UID 105, GID 108]
main-script.c: 93: 0 (Debug) Running /etc/chilli/up.sh (0/0)
chilli.c: 378: 0 (Debug) caught 17 via selfpipe
chilli.c: 309: 0 (Debug) child 1470 terminated

Don't overlap the DYNIP and

Don't overlap the DYNIP and STATIP ranged and don't have the UAMLISTEN within the STATIP range. in fact, you should just comment out the STATIP configuration and try again.

I commented out the static IP

I commented out the static IP range, and still have the same issue.