chilli_query(1)
chilli_query(1) β your General Commands Manual era π
β¨
π NAME π
chilli_query β Interface into the chilli server π«Ά
β¨ SYNOPSIS β¨
chilli_query [ -s <unix-socket> ] <command> [<parameters>...]
π¦ DESCRIPTION π¦
okay so chilli_query is your direct interface into the running chilli server π
It hands an administrator the power to see whoβs logged in, force a client to be logged out, or force a client to be authorized β admin main character energy, fr fr πβ¨
π Commands π
listβ lists all connected clients (subscribers) and gives you the MAC Address, IP Address, internal chilli state (dnat,pass, etc), the session id (used inAcct-Session-ID), authenticated status (1authorized,0not), user-name used during login, duration / max duration, idle time / max idle time, input octets / max input octets, output octets / max output octets, max total octets, status of optionswapoctets, bandwidth limitation information, and the original URL. Thatβs a whole info dump and it ate πlistip <ip-address>β Same aslistbut for one IP address.listmac <mac-address>β Same aslistbut for one MAC address.authorize <parameters>β To explicitly authorize a client, or change the session parameters of an already authorized client, by setting a series of session parameters. Glow-up unlocked π«Άlistippoolβ Show the internal IP pool state.listgardenβ Show the internal walled garden state.listradqueueβ Show the internal RADIUS queue state.addgarden [ ip <ip> | mac <mac> ] data <uamallow-resource>β Add to the dynamic walled garden. When used without theipormacoption, the entry applies to the global garden. Otherwise, it is session specific only if configured with--enable-sessgarden.remgarden [ ip <ip> | mac <mac> ] data <uamallow-resource>β Remove from the dynamic walled garden. When used without theipormacoption, the entry applies to the global garden. Otherwise, it is session specific only if configured with--enable-sessgarden.logout <client-mac-address>β Logs out and releases the DHCP lease of a client explicitly based on the MAC address (gotten from alistcommand). Bye bestie, lease revoked π
πΈ PARAMETERS πΈ
ip <ip-address>β Select the session to be authorized by the IP address using this option (may be used with the option below).sessionid <session-id>β Select the session to be authorized by the Session-ID (may be used with the above option).username <username>β Sets the username of the session.sessiontimeout <seconds>β Sets the max session time of the session.idletimeout <seconds>β Sets the max idle time of the session.maxoctets <number-of-bytes>β Sets the max data (input + output) limit of the session.maxinputoctets <number-of-bytes>β Sets the max input data limit of the session.maxoutputoctets <number-of-bytes>β Sets the max output data limit of the session.maxbwup <bandwidth>β Sets the max up bandwidth of the session.maxbwdown <bandwidth>β Sets the max down bandwidth of the session.
π EXAMPLES π
hereβs the vibe in action, bestie:
# chilli_query list
00:0D:XX:XX:XX:XX 10.1.0.3 dnat 46c83f70000 0 - 0/0 0/0 http://url.com
# chilli_query authorize ip 10.1.0.3 sessiontimeout 60 username me
# chilli_query list
00:0D:XX:XX:XX:XX 10.1.0.3 pass 46c83f70000 1 me 2/0 2/0 http://url.com
# chilli_query logout 00:0D:XX:XX:XX:XX
# chilli_query list | awk '{
($5 == 1) {
print "User " i++
print " MAC: " $1
print " IP Address: " $2
print " Session ID: " $4
print " Username: " $6
print " Duration / Max: " $7
print " Idle / Max: " $8
print " Input Octets / Max: " $9
print " Output Octets / Max: " $10
print " Max Total Octets: " $11
print " Using swapoctets: " $12
print " % / Max Up Bandwidth: " $13
print " % / Max Down Bandwidth: " $14
print " Original URL: " $15
}
}'
User 1
MAC: 00-11-XX-XX-XX-XX
IP Address: 10.1.0.2
Session ID: 46fd423c00000001
User URL: http://www.yahoo.com/
Duration / Max: 219/0
Idle / Max: 3/0
π FILES π
/var/run/chilli/run/chilli.sockβ UNIX socket used to daemon communication.
π§ SEE ALSO π§
chilli(8) and chilli.conf(5) β yes, go read the friends too π
π NOTES π
See http://coova.github.io/ for further documentation and community support.
π AUTHORS π
David Bird <david@coova.com>- Copyright (C) 2006-2012 David Bird (Coova Technologies) All rights reserved.
- CoovaChilli is licensed under the GNU General Public License.
Signed with a kiss and a February 2012 timestamp by the chilli_query(1) girlies π
π¦ where this page comes from
- alpine 3.24: coova-chilli-doc 1.7-r0 Β· GPL-3.0-or-later
- Copyright (C) 2007-2012 David Bird (Coova Technologies)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms