variable containing server IP

Tariq Rashid tariq.rashid at uk.easynet.net
Wed Jun 22 13:28:44 CEST 2005


hi - i'd like to use the radius server's IP within the configuration files.

specifically, to include it in the reply-message - i know that some
variables are defined %u, %p, %n, etc ... see doc... but none of these
contain the radius server's IP address. this needs to be not from the radius
packet's target address, but the real IP as defined by the OS.

why the difference? in load-balancing situations, the target IP on the
request packet is shared amongst different physical servers, so the real IP
is the real identifier.

so i'd like to do something like this in the users file...

test1 at proxyradius User-Password == "test1.proxyradius"
        Reply-Message = "hello from the proxyradius layer server %{Real-IP}"

is there anyway to achieve this?

i don't want to hard-code it on each different server as that is not as
efficient as using a common paramterised configuration file for many servers
of the same function.

tariq



More information about the Freeradius-Users mailing list