[Chilli] CoovaChiili Permit Server IP

Luis Ferreira lferreira at cabocom.cv
Tue May 21 10:23:46 UTC 2013


Hi Russell,

 

Here we had the same problem, and were able to fix it with the following
script:




#!/bin/bash

 

usercheck=$(/usr/local/sbin/chilli_query -s
/usr/local/var/run/chilli.vlanxx.sock list |grep -c "1 accountusername ")

 

if [ $usercheck = '0' ];

then

        echo "Logging in accountname"

        /usr/local/sbin/chilli_query -s
/usr/local/var/run/chilli.vlanxx.sock login ip 192.168.10.251 username
accountusername password accountpassword

fi

 

Replace account name, account password and IP for the correct ones. Also
check the location of the sock files.

 

This script is running every minute. If the IP is not present, Chilli will
not perform the login and ignore it. But if it is present (client connected)
it will trigger the account login.

 

This is a very dirty hack, but we have been using it for more than 2 years
and it never failed (except when the account would ran out of credit J ).

 

Btw, if someone as a different (and less hacked) way of doing this on layer
3, please share it.

 

Regards,

Luis

 

 

Dear Coova Gurus,

 

CoovaChilli Layer3, Working great. But for some days now, i am working
CoovaChilli to allow some devices to allow access without authentication AND
have Static IP address. (Servers, IP phones, Apple TV etc..).

 

MAC auth do not help because of L3 setup. Have anyone got the idea. How can
configure coovachilli to allow access 10 static ip address out of a subnet
by default. 

 

Thanks in advance. 

 

Thanks / Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20130521/37e07402/attachment.html>


More information about the Chilli mailing list