我能够使用 tinyradius 向 Freeradius 服务器发送 Access-Request 并获得 Access-Accept > Spring Boot应用程序中的库。现在,我需要发送 COA请求,然后发送 Disconnect-Request 来结束会话。
我尝试发送COA请求,但出现错误。
> 2019-07-23 08:11:26.383 INFO 1 --- [nio-8080-exec-2]
> org.tinyradius.util.RadiusClient : communication failure,
> retry 1 2019-07-23 08:11:29.387 INFO 1 --- [nio-8080-exec-2]
> org.tinyradius.util.RadiusClient : communication failure,
> retry 2 2019-07-23 08:11:32.391 ERROR 1 --- [nio-8080-exec-2]
> org.tinyradius.util.RadiusClient : communication failure
> (timeout), no more retries
RadiusClient rc = new RadiusClient("172.17.0.2", "testing123");
CoaRequest coaRequest=new CoaRequest();
coaRequest.setAuthenticator(dto.getAuthenticator().getBytes());
RadiusPacket response = rc.communicate(coaRequest,3799);
我收到“接收超时” 错误,该请求似乎也未到达服务器。我想知道如何使用Tinyradius库发送COA-Request和Disconnect-Request