[Chilli] CoovaChiili Permit Server IP

Luis Ferreira lferreira at cabocom.cv
Thu May 30 17:20:05 UTC 2013


Hi Russell,

 

You should put the IP of the client.

 

For instance, I've got a client that ISC-DHCP always gives the same address
(192.168.10.250) on the VLAN ID 10.

 

So what we have to do is a script running on the chillibox that runs the
command if the user is not online. Your mistake is running the command
outside the chillibox.

 

The script for you, should be this:

 


#!/bi/bash

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

if [ $usercheck = '0' ];
then
      /usr/local/sbin/chilli_query -s  /var/run/chilli.vlan888.sock login ip
41.139.29.251 username prabhal password rootantipass
fi

 

1th         - If it does not work, try to identify the problem. First see if
you can ping the client from within Chillibox.

2nd        - run the command "/usr/local/sbin/chilli_query -s
/usr/local/var/run/chilli.vlanxx.sock list" and see if it return the online
users like this:


10.1.10.195 51a7872300000005 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0
http://crl.microsoft.com/pki/crl/products/MicCodSigPCA_08-31-2010.crl

10.1.10.23 51a7864800000004 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0 -

10.1.10.196 51a7863800000003 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0 -

10.1.10.192 51a785810000000c 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0
http://www.apple.com/library/test/success.html

10.1.10.142 51a7851700000013 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0 http:///


10.1.10.129 51a7841f00000009 0 - 0/0 0/0 0/0 0/0 0 0 0/0 0/0
http://www.msftncsi.com/ncsi.txt

.

 

3rd         - run then /usr/local/sbin/chilli_query -s
/usr/local/var/run/chilli.vlanxx.sock list |grep -c "1 <username>" and see
if the return is 0 or 1, depending if the user is online or not.

Regards,

Luis

 

 

 

Dear Luis Ferreira,

 

Thanks for everything in past, i am true with my lab and was testing this
bash script. but still unable to reach device behind the Chilli Box. here
are my details. 

 

My CoovaChilli: 1.3.0 UB_12.4

IP Camera Behind CoovaChilli: 41.139.29.251 (device is CoovaChilli LAN Side,
entring through WAN side to reach device)

My Username: prabhpal

My Password: rootantipass

My location: /var/run/chilli.vlan888.sock

 

Here is my script: 

 

#!/bin/bash

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

 if [ $usercheck = '0' ];

then

        echo "Logging in accountname"

        /usr/local/sbin/chilli_query -s /var/run/chilli.vlan888.sock login
ip 41.139.29.251 username prabhpal password rootantipass

fi

 

When i run this script chilli should be able to ping 41.139.29.251 ip right
? and entry should be seen the 41.139.29.251 in "chilli_query list" No? 

 

Thanks / Regards

RM --

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20130530/18b34364/attachment.html>


More information about the Chilli mailing list