Cannot get value of config item with \\

Alan DeKok aland at
Mon Feb 2 12:37:09 CET 2009

Matej Vadnjal wrote:
> On Monday 02.02.2009 10:37:59 Alan DeKok wrote:
> I'd like to check if a request that I received from a radius server will be 
> proxied back to that same server resulting in a proxy loop.

  Hmm... if a server proxies requests to you that it *should* have
handled itself, it is seriously broken.

> The way I see things there is no other way to find out to which server the 
> request will be proxied to.

 Put this in pre-proxy:

	if (Realm &&
	    ("%{home_server:ipaddr}" == "%{client:ipaddr}")) {

  That should work.  And no, this isn't well documented.

> My idea is that if I keep the names of servers in clients.conf and server 
> pools in proxy.conf similar enough, I could compare them with a regexp and if 
> they match reject the request, preventing a loop.

  Just check IP's.

  Alan DeKok.

More information about the Freeradius-Users mailing list