Client hostname in clients.conf instead of IP address

tohaikmeng tohaikmeng at
Tue Nov 1 04:25:48 CET 2011


Can anyone help me with this question?

I have added the following configuration to raddb/modules/attr_rewrite,
which allows me to get Client IP address. 

attr_rewrite addclientip {
        attribute = Client-IP-Address
        searchin = packet
        searchfor = "^$"
        replacewith = "%{Client-IP-Address}"
        maxmatches = 1
        new_attribute = yes

Is there anyway for me to retrieve the Client hostname as configured in
raddb/clients.conf shown in the example below.

client {
        secret = password

Any help will be greatly appreciated. Thanks :)


View this message in context:
Sent from the FreeRadius - User mailing list archive at

More information about the Freeradius-Users mailing list