Hello, I have been confused about how to create the disconnect message for a specific user. It is possible to create it from java application? I need some guidance what to read and look ! Sorry for my English! Thanks for your time and attention!
Look at jradius or tinyradius as both are java clients. On 23/01/2015 8:59 PM, "Haviaras Kostas" <koshalirod@gmail.com> wrote:
Hello, I have been confused about how to create the disconnect message for a specific user. It is possible to create it from java application? I need some guidance what to read and look !
Sorry for my English! Thanks for your time and attention! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 23 Jan 2015, at 15:01, Peter Lambrechtsen <peter@crypt.co.nz> wrote:
Look at jradius or tinyradius as both are java clients.
FreeRADIUS server can be used to send Disconnect messages and COA-Requests and can do retransmissions. In v3.0.x HEAD we added the capability to send CoAs/DMs directly to a NAS using the control:Packet-Dst-IP-Address attribute, and to read CoAs using the detail reader. We also added the ability to define coa home servers using clients by adding a coa_server definition to the client section. client test { ipddress = 192.168.0.1 secret = testing123 coa_server { } } It means your Java application could write out CoA or DM packets in string form to a flat file, and have FreeRADIUS handle the encoding, and retransmission. The format would be: Packet-Type = Disconnect-Request User-Name = <user> NAS-IP-Address = <ip address> Acct-Session-ID = <acct session id> <new line> Then in the server you set: update control { Packet-Dst-IP-Address := &NAS-IP-Address } The detail reader now also marks up completed entries, so if the server restarts no duplicates are sent. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Hi Which kind of user do you need to disconnect ? Hotspot user ? i user CoovaChilli and deliver disconnection message on COA port of CoovaChilli NAS using java application. it works fine. i am sorry if i did not understand you. Thanks / --RM On Fri, Jan 23, 2015 at 7:58 AM, Haviaras Kostas <koshalirod@gmail.com> wrote:
Hello, I have been confused about how to create the disconnect message for a specific user. It is possible to create it from java application? I need some guidance what to read and look !
Sorry for my English! Thanks for your time and attention! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
Arran Cudbard-Bell -
Haviaras Kostas -
Peter Lambrechtsen -
Russell Mike