Cannot disconnect radius user using radclient
Iftakhul Anwar
anwar at meruvian.org
Sun Mar 10 15:27:38 CET 2013
I've run server on debug mode.
But when i try to execute : echo "User-Name=alice" | radclient -x
192.168.2.3:3779 disconnect testing123
[output bellow]
*$ echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect
testing123*
*Sending Disconnect-Request of id 185 to 192.168.2.3 port 3779*
* User-Name = "alice"*
*Sending Disconnect-Request of id 185 to 192.168.2.3 port 3779*
* User-Name = "alice"*
*Sending Disconnect-Request of id 185 to 192.168.2.3 port 3779*
* User-Name = "alice"*
*radclient: no response from server for ID 185 socket 3*
*
*
On server radius debug mode there are no output,
But when i try to execute
*$ echo "User-Name=alice" | radclient -x localhost:3779 disconnect
testing123*
*Sending Disconnect-Request of id 40 to 127.0.0.1 port 3779*
* User-Name = "alice"*
*rad_recv: Disconnect-ACK packet from host 127.0.0.1 port 3779, id=40,
length=20*
i got log bellow on radius debug mode:
*Cleaning up request 145 ID 213 with timestamp +22592*
*Ready to process requests.*
*rad_recv: Accounting-Request packet from host 127.0.0.1 port 3779, id=70,
length=264*
* ChilliSpot-Version = "1.3.0"*
* ChilliSpot-Attr-10 = 0x00000002*
* Event-Timestamp = "Mar 10 2013 21:24:48 WIT"*
* User-Name = "alice"*
* Acct-Input-Octets = 18078*
* Acct-Output-Octets = 2132*
* Acct-Input-Gigawords = 0*
* Acct-Output-Gigawords = 0*
* Acct-Input-Packets = 16*
* Acct-Output-Packets = 18*
* Acct-Session-Time = 16*
* Acct-Terminate-Cause = Admin-Reset*
* Acct-Status-Type = Stop*
* Acct-Session-Id = "513c977b00000001"*
* Framed-IP-Address = 10.1.0.3*
* NAS-Port-Type = Wireless-802.11*
* NAS-Port = 1*
* NAS-Port-Id = "00000001"*
* Calling-Station-Id = "00-19-DB-3B-84-15"*
* Called-Station-Id = "F4-EC-38-80-74-3A"*
* NAS-IP-Address = 10.1.0.1*
* NAS-Identifier = "nas01"*
* WISPr-Location-ID = "isocc=,cc=,ac=,network=Coova,"*
* WISPr-Location-Name = "My_HotSpot"*
*# Executing section preacct from file
/usr/local/etc/raddb/sites-enabled/default*
*+- entering group preacct {...}*
*++[preprocess] returns ok*
*
*
*++[jradius] returns noop*
*[acct_unique] Hashing 'NAS-Port = 1,NAS-Identifier =
"nas01",NAS-IP-Address = 10.1.0.1,Acct-Session-Id =
"513c977b00000001",User-Name = "alice"'*
*[acct_unique] Acct-Unique-Session-ID = "111cacfa42a2853f".*
*++[acct_unique] returns ok*
*[suffix] No '@' in User-Name = "alice", looking up realm NULL*
*[suffix] No such realm "NULL"*
*++[suffix] returns noop*
*++[files] returns noop*
*# Executing section accounting from file
/usr/local/etc/raddb/sites-enabled/default*
*+- entering group accounting {...}*
*[detail] expand: %{Packet-Src-IP-Address} -> 127.0.0.1*
*[detail] expand:
/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
-> /usr/local/var/log/radius/radacct/127.0.0.1/detail-20130310*
*[detail]
/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
expands to /usr/local/var/log/radius/radacct/127.0.0.1/detail-20130310*
*[detail] expand: %t -> Sun Mar 10 21:24:48 2013*
*++[detail] returns ok*
*
*
*++[jradius] returns noop*
*[sql] expand: %{User-Name} -> alice*
*[sql] sql_set_user escaped user --> 'alice'*
*[sql] expand: %{Acct-Input-Gigawords} -> 0*
*[sql] expand: %{Acct-Input-Octets} -> 18078*
*[sql] expand: %{Acct-Output-Gigawords} -> 0*
*[sql] expand: %{Acct-Output-Octets} -> 2132*
*[sql] expand: %{Acct-Delay-Time} -> *
*[sql] ... expanding second conditional*
*[sql] expand: UPDATE radacct SET acctstoptime
= '%S', acctsessiontime = '%{Acct-Session-Time}',
acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 |
'%{%{Acct-Input-Octets}:-0}',
acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 |
'%{%{Acct-Output-Octets}:-0}',
acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay
= '%{%{Acct-Delay-Time}:-0}', connectinfo_stop =
'%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}'
AND username = '%{SQL-User-Name}' AND
nasipaddress = '%{NAS-IP-Address}' -> UPDATE radacct SET
acctstoptime = '2013-03-10 21:24:48',
acctsessiontime = '16', acctinputoctets = '0' << 32 |
'18078', acctoutputoctets =
'0' << 32 | *
*rlm_sql (sql): Reserving sql socket id: 2*
*rlm_sql (sql): Released sql socket id: 2*
*++[sql] returns ok*
*++[exec] returns noop*
*[attr_filter.accounting_response] expand: %{User-Name} -> alice*
*attr_filter: Matched entry DEFAULT at line 12*
*++[attr_filter.accounting_response] returns updated*
*Sending Accounting-Response of id 70 to 127.0.0.1 port 3779*
*Finished request 147.*
*Cleaning up request 147 ID 70 with timestamp +22608*
*Going to the next request*
*Ready to process requests.*
Any suggestions ?
On Sun, Mar 10, 2013 at 8:59 PM, Alan DeKok <aland at deployingradius.com>wrote:
> Iftakhul Anwar wrote:
> > /echo "User-Name=alice" | radclient -x 192.168.2.3:3779
> > <http://192.168.2.3:3779> disconnect testing123/
> > /Sending Disconnect-Request of id 78 to 192.168.2.3 port 3779/
> > / User-Name = "alice"/
> > /radclient: no response from server for ID 78 socket 3/
> > /
> > /
> > Note: 192.168.2.3 is ip of radius server
> >
> > But no response from radius server.
>
> Run the server in debugging mode, as suggested in the FAQ, "man" page,
> web pages, and daily on this list.
>
> There is *no* excuse for failing to do this.
>
> Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
--
*M.Iftakhul Anwar*
Meruvian Integrator
High Performance Computing / Cloud Computing (HPC/CC)
Office Phone : 021-93586577
Mobile Phone : 085215331477
Blog : http://blog.mervpolis.com/roller/anwar
FB : http://www.facebook.com/troya.adromeda
Website : www.meruvian.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130310/aec46ca6/attachment-0001.html>
More information about the Freeradius-Users
mailing list