Cannot disconnect radius user using radclient
Hi All, I've successfully install coovachili anda freeradius using mysql database. Now I've just try to disconnect coovachilli user online with radclient command: I try with command bellow to disconect user="alice" * echo "User-Name=alice" | radclient -x localhost:3779 disconnect testing123 * *Sending Disconnect-Request of id 126 to 127.0.0.1 port 3779* * User-Name = "alice"* *rad_recv: Disconnect-ACK packet from host 127.0.0.1 port 3779, id=126, length=20* And then, user alice be disconnect from coova. Then i try to give disconnect command using remote acces using command bellow : *echo "User-Name=alice" | radclient -x 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. I've add on client.conf ip address which i use to radius client.But still have same problem. I try that command on my local machine using comand : *echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123* * * Radius still no response. How i can execute this command both of on local and on remote machine ? Thanks -- *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
*echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123* *Sending Disconnect-Request of id 78 to 192.168.2.3 port 3779* * * *>>>> default port of freeradius is 1812 and 1813,, use these ports* On Sun, Mar 10, 2013 at 6:24 PM, Iftakhul Anwar <anwar@meruvian.org> wrote:
Hi All,
I've successfully install coovachili anda freeradius using mysql database.
Now I've just try to disconnect coovachilli user online with radclient command:
I try with command bellow to disconect user="alice"
* echo "User-Name=alice" | radclient -x localhost:3779 disconnect testing123* *Sending Disconnect-Request of id 126 to 127.0.0.1 port 3779* * User-Name = "alice"* *rad_recv: Disconnect-ACK packet from host 127.0.0.1 port 3779, id=126, length=20*
And then, user alice be disconnect from coova.
Then i try to give disconnect command using remote acces using command bellow :
*echo "User-Name=alice" | radclient -x 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.
I've add on client.conf ip address which i use to radius client.But still have same problem. I try that command on my local machine using comand : *echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123* * * Radius still no response.
How i can execute this command both of on local and on remote machine ?
Thanks
-- *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
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Best Regards Muhammad Nadeem Muhammad Ali Jinnah University
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.
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@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
Iftakhul Anwar wrote:
I've run server on debug mode.
You didn't post it. As suggested in the FAQ, "man" page, web pages, and daily on this list.
But when i try to execute : echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123
You already said that.
On server radius debug mode there are no output,
So... you didn't configure the server to listen on port 3779. See raddb/sites-available/coa This is documented. Alan DeKok.
On site-avalaible/coa i've get this : listen { type = coa ipaddr = * port = 3799 server = coa } I think it have been listener 3799. I've try to dsable my firewall too, but still same problem On Sun, Mar 10, 2013 at 9:57 PM, Alan DeKok <aland@deployingradius.com>wrote:
Iftakhul Anwar wrote:
I've run server on debug mode.
You didn't post it. As suggested in the FAQ, "man" page, web pages, and daily on this list.
But when i try to execute : echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123
You already said that.
On server radius debug mode there are no output,
So... you didn't configure the server to listen on port 3779. See raddb/sites-available/coa
This is documented.
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
Iftakhul Anwar wrote:
On site-avalaible/coa i've get this :
You're supposed to READ IT. And ENABLE IT. You do know how to enable it, right? You know the difference between raddb/sites-enabled and raddb/sites-available? And the point of running the server in debugging mode is to READ IT. If it doesn't say "listening on 3799", then you CAN'T SEND IT PACKETS to port 3799. Alan DeKok.
i've enable with link coa on site-avalaible to site-enable, when i try to run on debug mode also appear that port 3779 is listen: Sending Accounting-Response of id 1 to 127.0.0.1 port 3779 Finished request 2. Cleaning up request 2 ID 1 with timestamp +182 Going to the next request Waking up in 4.8 seconds. Cleaning up request 1 ID 6 with timestamp +181 Ready to process requests But when i try to execute command to disconnect , still not response: echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123 Sending Disconnect-Request of id 78 to 192.168.2.3 port 3779 User-Name = "alice" Sending Disconnect-Request of id 78 to 192.168.2.3 port 3779 User-Name = "alice" 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 Actually i execute it inside radius server machie (ip 192.168.2.3) are there missing configuration ? On Sun, Mar 10, 2013 at 10:10 PM, Alan DeKok <aland@deployingradius.com>wrote:
Iftakhul Anwar wrote:
On site-avalaible/coa i've get this :
You're supposed to READ IT. And ENABLE IT.
You do know how to enable it, right? You know the difference between raddb/sites-enabled and raddb/sites-available?
And the point of running the server in debugging mode is to READ IT. If it doesn't say "listening on 3799", then you CAN'T SEND IT PACKETS to port 3799.
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
Iftakhul Anwar wrote:
i've enable with link coa on site-avalaible to site-enable, when i try to run on debug mode also appear that port 3779 is listen:
Sending Accounting-Response of id 1 to 127.0.0.1 port 3779
<sigh> Accounting packets are not CoA packets. See? The name is different. You don't understand RADIUS. That's OK. You're not *trying* to understand it. That's not OK. The server isn't *listening* on port 3779. You haven't bothered to read the debug output. If you're not going to follow instructions, you will be unsubscribed and banned from this list.
But when i try to execute command to disconnect , still not response:
echo "User-Name=alice" | radclient -x 192.168.2.3:3779 disconnect testing123 Sending Disconnect-Request of id 78 to 192.168.2.3 port 3779 User-Name = "alice"
Because the server isn't listening on that port.
are there missing configuration ?
Yes. Lots. I won't repeat myself. If you're not going to try to solve the problem, then neither will I. Follow instructions, or be unsubscribed and banned. Alan DeKok.
participants (3)
-
Alan DeKok -
Iftakhul Anwar -
Muhammad Nadeem