JRS - Proxying v2

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Sat Apr 7 16:47:58 CEST 2007


Alan DeKok wrote:
>   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...
>
>   
Very very cool, have these gone into CVS ? If so i'll recompile now and 
have a go :)

And i'm guessing templates are global too :) ? So they can also be used 
in clients and anywhere else you have to repeat something over and over 
again ??

Excellent work !

--
Arran





More information about the Freeradius-Users mailing list