Client hostname in clients.conf instead of IP address

tohaikmeng tohaikmeng at live.com
Tue Nov 1 04:25:48 CET 2011


Hello,

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 www.abc.com {
        secret = password
}

Any help will be greatly appreciated. Thanks :)

Alex

--
View this message in context: http://freeradius.1045715.n5.nabble.com/Client-hostname-in-clients-conf-instead-of-IP-address-tp4954180p4954180.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.



More information about the Freeradius-Users mailing list