FreeRadius on RHEL 5 gives error "radclient: no response from server for ID 224"

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • FreeRadius client/server

Issue

  • FreeRadius on RHEL 5 gives error "radclient: no response from server for ID 224"

Resolution

  • In radclient, the second parameter is expected to be a packet type, such as "auth" or "status", or a numerical value that the server can understand in its place; not the port number as used in radtest. Replacing the port value with a valid packet type fixes the issue.

Root Cause

  • The parameters for radclient are slightly different to radtest:
    • Using radtest:
      # radtest user pass radiusserver.example.com 1812 sharedsecret
      
    • Using radclient:
      # echo "User-Name=user, User-Password=pass" | radclient radiusserver.example.com:1812 auth sharedsecret
      
  • Port is the parameter after the server in radtest, but uses a colon separator in radclient, with the next parameter being packet type

Diagnostic Steps

  • On client:
    [root@server1.example.com ~]# echo "User-Name=user, User-Password=pass" | radclient radiusserver.example.com 1812 sharedsecret
    radclient: no response from server for ID 224
    
  • On Server:
    [root@radiusserver.example.com ~]# tail -f /var/log/radius/radius.log 
    ...
    Mon Jun 28 15:19:26 2010 : Error: Unknown packet code  20 from client server1:48338 - ID 70 : IGNORED
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments