JRS - Proxying v2
Alan DeKok
aland at deployingradius.com
Sat Apr 7 16:31:09 CEST 2007
OK... two new features.
server_pool foo {
# hash the source IP, and pick one of the
# home servers.
type = client-balance
...
}
Nice, but not rocket science. Even nicer is the templates:
#
# Holds default configurations for other sections
# best used when the data is repeated a lot.
#
templates {
#
# Default configurations for all home_servers.
# Note: no second name.
# Note: entries given here are over-ridden by
# entries in a real home_server
#
home_server {
zombie_period = 15
...
}
#
# Name a specific template
home_server companyX {
zombie_period = 13
...
}
}
#
# And some examples...
#
home_server foo {
...
# no zombie_period: choose zombie_period from the template
}
home_server bar {
# over-rides what's in the template
zombie_period = 20
}
home_server dud {
...
#
# Choose a particular home_server template
#
template = companyX
}
I think this will do much the same thing you've been trying to do with
include files, but with less work.
It's ~80 lines of code, and very cool...
Alan DeKok.
--
http://deployingradius.com - The web site of the book
http://deployingradius.com/blog/ - The blog
More information about the Freeradius-Users
mailing list