problem with radclient

Vladimir Grujić Vladimir.Grujic at
Wed Oct 17 11:20:34 CEST 2012


I have the following setup:

freeradius is compiled with udpfromto. The reason is that advertised public service address is on lo:1 interface (because the freeradius is behind load balancer in routed mode not in nat mode). There is also another public ip on the eth interface to receive packets from the load balancer.

The freeradius itself works well in that setup.
The problem is radclient.
When i send the packet of type COA-Disconnect to the nas using Packet-Src-IP-Address in the request with the value of lo:0 public ip address to terminate the user session i get this response:

rad_recv: Disconnect-ACK packet from host port 3799, id=110, length=43
rad_verify: Received Disconnect-ACK packet from home server port 3799 with invalid signature!  (Shared secret is incorrect.)
radclient: no response from server for ID 110 socket 3

user is disconnected properly but radclient does not recognize that response ( I've used just -r 1 in this case, when using -r 3 i see additional packets sent but they of course get a Disconnect-NAK)

i traced the communication and only one packet send and one is received.

Looks like the problem is in the logic of rad_verify function when using  Packet-Src-IP-Address.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Freeradius-Devel mailing list