Hello,<br><br>I'm workimg with Freeradius 2.1.8.<br><br>I would like to use templates in my proxy.conf file to define some home servers.<br><br>My templates.conf file is:<br><br>/etc/freeradius# cat templates.conf<br><br>
templates {<br> home_server tldrediris {<br> type = auth+acct<br> port =1812<br> secret = XXXX<br> #src_ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> response_window = 20<br>
#no_response_fail = no<br> zombie_period = 40<br> revive_interval = 60<br> status_check = status-server<br> check_interval = 30<br> num_answers_to_alive = 3<br> }<br>}<br><br>
Then, in radiusd.conf I include this file:<br><br>$INCLUDE templates.conf<br><br><br>And, if I have in proxy.conf file template = tldrediris, when FreeRADIUS starts doest take the values defines in templates.conf:<br><br>
/etc/freeradius# cat proxy.conf<br><br>home_server tld-rediris1 {<br> template = tldrediris<br> ipaddr = X.X.X.X<br>}<br><br>/etc/freeradius# freeradius -X<br>FreeRADIUS Version 2.1.8, for host x86_64-pc-linux-gnu, built on Jan 3 2010 at 14:14:04<br>
. . .<br>including configuration file /etc/freeradius/radiusd.conf<br>including configuration file /etc/freeradius/templates.conf<br>including configuration file /etc/freeradius/proxy.conf<br>. . . <br> home_server tld-rediris1 {<br>
ipaddr = X.X.X.X<br> port = 0<br> response_window = 30<br> max_outstanding = 65536<br> zombie_period = 40<br> status_check = "none"<br> ping_interval = 30<br> check_interval = 30<br> num_answers_to_alive = 3<br>
num_pings_to_alive = 3<br> revive_interval = 300<br> status_check_timeout = 4<br> irt = 2<br> mrt = 16<br> mrc = 5<br> mrd = 30<br> }<br>/etc/freeradius/proxy.conf[26]: No port, or invalid port defined for home server tld-rediris1.<br>
<br>In the other hand, if I use $template tldrediris in templates.conf, FreeRADIUS doesn't know tldrediris:<br><br>/etc/freeradius# cat proxy.conf<br><br>
home_server tld-rediris1 {<br> $template tldrediris<br> ipaddr =
X.X.X.X<br>}<br><br>/etc/freeradius# freeradius -X<br>FreeRADIUS Version 2.1.8, for host x86_64-pc-linux-gnu, built on Jan 3 2010 at 14:14:04<br>. . .<br>including configuration file /etc/freeradius/radiusd.conf<br>including configuration file /etc/freeradius/templates.conf<br>
including configuration file /etc/freeradius/proxy.conf<br>WARNING: No such configuration item tldrediris<br>/etc/freeradius/proxy.conf[27]: Reference "tldrediris" not found<br>Errors reading /etc/freeradius/radiusd.conf<br>
<br><br>I remember this:<br><br><a href="http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg59018.html">http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg59018.html</a><br><br><br>Sorry for my english and thankyou very much.<br clear="all">
<br>-- <br>____________________<br><br> Ana Gallardo Gómez<br>____________________<br>