Logging the home server in post_proxy logs
Hi, I have have 4 home servers configured which radius request are proxied to using type = fail-over and would like to log which home server handle a request at any given time. In the Post proxy logs: detail post_proxy_log { detailfile = ${radacctdir}/%d/post-proxy-detail-%H:00 header = "%{NAS-IP-Address} - %t" detailperm = 0600 } Is there a way to log which server handled the proxy in this log or even the main radiusd.conf log? Thanks
On Nov 30, 2015, at 3:14 PM, Chris Taylor (chtaylo2) <chtaylo2@cisco.com> wrote:
Hi,
I have have 4 home servers configured which radius request are proxied to using type = fail-over and would like to log which home server handle a request at any given time.. ... Is there a way to log which server handled the proxy in this log or even the main radiusd.conf log?
See "%{home_server:name}" e.g. update proxy { Tmp-String-0 := "%{home_server:name}" } Alan DeKok.
Thanks for the reply. I¹ve been looking trying to find some reference to %{home_server:name}. I haven¹t had any luck finding any documentation showing this usage. I did try this in radiusd.conf log section with no luck. update proxy { Tmp-String-0 := "%{home_server:name}" } msg_goodpass = ³TMP: %{Tmp-String-0} - Home: %{home_server:name}" msg_badpass = ³TMP: %{Tmp-String-0} - Home: %{home_server:name}" Do you have an example of this working? On 11/30/15, 3:17 PM, "Alan DeKok" <aland@deployingradius.com> wrote:
On Nov 30, 2015, at 3:14 PM, Chris Taylor (chtaylo2) <chtaylo2@cisco.com> wrote:
Hi,
I have have 4 home servers configured which radius request are proxied to using type = fail-over and would like to log which home server handle a request at any given time.. ... Is there a way to log which server handled the proxy in this log or even the main radiusd.conf log?
See "%{home_server:name}"
e.g.
update proxy { Tmp-String-0 := "%{home_server:name}" }
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
You've got some wierd characters in your entry and those entries are only printed if you tell the server to print them. You just need to modify the usual logging. As for the home_server , it's documentation is covered the same as all of the other hundreds of attributes by way of being an attribute in a config file... same as eg client:short-name etc alan
participants (3)
-
Alan Buxey -
Alan DeKok -
Chris Taylor (chtaylo2)