2011-08-31 - [GRASE-Hotspot] #28: Ability to disconnect active users

Header Data

From: GRASE Trac <tr***c@grasehotspot.org>
Message Hash: 87f2c900c018159847959865dc415f10426db0461081b20049ae7a6954612c5c
Message ID: <039.5e18fd7a4afd41d2f802d1253796c0a9@grasehotspot.org>
Reply To: N/A
UTC Datetime: 2011-08-31 15:39:48 UTC
Raw Date: Wed, 31 Aug 2011 22:39:48 -0000

Raw message

#28: Ability to disconnect active users
--------------------------------------------------+-------------------------
 Reporter:  tim                                   |       Owner:  tim
     Type:  enhancement                           |      Status:  new
 Priority:  major                                 |   Milestone:  4.0
Component:  Admin Interface                       |     Version:  3.4
 Keywords:  coaport, disconnect, active, session  |  
--------------------------------------------------+-------------------------
 Coova Chilli provides the ability to disconnect a session via the coaport.
 We need to make this usable from the web interface.

 The following is from the mailing list, maybe we can make it more secure
 than this?

 >1. first edit /etc/init.d/chilli to add listen port for disconnect packet
 by adding the line
 >DAEMON_ARGS="--coaport 3779"
 >
 >so the first line would be like this:
 >#! /bin/sh
 >PATH=/sbin:/bin:/usr/sbin:/usr/bin
 >DAEMON=/usr/sbin/chilli
 >NAME=chilli
 >DESC=chilli
 >DAEMON_ARGS="--coaport 3779"
 >
 >2. add coaport on /etc/chilli/hs.conf or in
 >
 ># TAG COA Port
 >coaport 3779
 >
 >3. restart chilli
 >
 >4. Don't forget to add sudo line to allow www-data permission on
 /etc/sudoers
 >www-data ALL=NOPASSWD:/bin/echo
 >www-data ALL=NOPASSWD:/usr/bin/radclient
 >
 >
 >5. test it first, try execute this in shellcommand
 >echo "User-Name=username" | radclient -x 127.0.0.1:3779 disconnect
 yourradiussecret
 >
 >username is the username who want you kick out from grase.
 >yourradiussecret is radius secret, if u did not change it, the deflaut
 from grase is >hotspotradius
 >
 >6. or u can use php sript. (example)
 >$shell_command='sudo /bin/echo "User-Name='.kevin.'" | /usr/bin/radclient
 -x 127.0.0.1:3779 >disconnect hotspotradius ';
 >$output = shell_exec($shell_command);
 >
 >

-- 
Ticket URL: <http://trac.grasehotspot.org/ticket/28>
GRASE Hotspot <http://grasehotspot.org/>
GRASE Hotspot bug tracker




Thread