Hi * I am trying to get COA server running with 2.1.6. After downloading and successfully installing on Redhat Linux setup, I have not been able to get COA to work at all. After a lot of investigation, I have found a discrepency with the clients.conf file in the tar file I downloaded in 2.1.6 and a version I see on the -net. Specifically, the following lines are missing from the file in the tar file compared to an example I found on the web: # A pointer to the "home_server_pool" OR a "home_server" # section that contains the CoA configuration for this # client. For an example of a coa home server or pool, # see raddb/sites-available/originate-coa # coa_server = coa } After going through the C source code I see that this missing coa_server pointer is in fact referenced in the source code. I have now added this, but still I have issues. I originally commented out the coa pool because I don't want pools for now. SO, my problem is that even after adding the following line to my clients.conf file to match the pointer file to the example host_server config in originate-coa file,: coa_server = localhost-coa I still get the following error when I run radiusd -Xx : /usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa" So now I uncomment the stuff to do the coa pool, and now I get the following debug output ### Loading Realms and Home Servers ###### : proxy server { [stuff] } home_server localhost { [stuff] } home_server_pool my_auth_failover { [stuff] } realm example.com { [stuff] } realm LOCAL { } /usr/local/etc/raddb/site-enabled/originate-coa[121]: home_server "localhost-coa" does not exist. Given the file discrepency I have already uncovered, I assume I must be missing something else but I cannot find out what. I appreciate any help as soon as possible. thanks. tony
DILLIOTT Tony wrote:
I still get the following error when I run radiusd -Xx :
/usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa"
I've put a patch into git that should fix the problem. See the "stable" branch. Or, wait a few hours, and grab it from http://git.freeradius.org/pre/ If it works, then everything is OK. If it doesn't work, you probably didn't wait long enough for the auto-build process to grab the relevant patch. Alan DeKok.
Alan DeKok ?????:
DILLIOTT Tony wrote:
I still get the following error when I run radiusd -Xx :
/usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa"
I've put a patch into git that should fix the problem. See the "stable" branch.
Or, wait a few hours, and grab it from http://git.freeradius.org/pre/
If it works, then everything is OK. If it doesn't work, you probably didn't wait long enough for the auto-build process to grab the relevant patch.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hello, Alan. I`ve grabbed http://git.freeradius.org/pre/freeradius-server-2.1.7.tar.gz today (date says 11-Aug-2009 20:38) and tried CoA again. Almost default config, just coa_server = "localhost-coa" in clients.conf and get some# radiusd -X .... radiusd: #### Loading Realms and Home Servers #### proxy server { retry_delay = 5 retry_count = 3 default_fallback = no dead_time = 120 wake_all_if_all_dead = no } home_server localhost { ipaddr = 127.0.0.1 port = 1812 type = "auth" secret = "testing123" response_window = 20 max_outstanding = 65536 require_message_authenticator = no zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 num_answers_to_alive = 3 num_pings_to_alive = 3 revive_interval = 120 status_check_timeout = 4 irt = 2 mrt = 16 mrc = 5 mrd = 30 } home_server_pool my_auth_failover { type = fail-over home_server = localhost } realm example.com { auth_pool = my_auth_failover } realm LOCAL { } home_server localhost-coa { ipaddr = 127.0.0.1 port = 3799 type = "coa" secret = "testing1234" response_window = 30 max_outstanding = 65536 zombie_period = 40 status_check = "none" ping_interval = 30 check_interval = 30 num_answers_to_alive = 3 num_pings_to_alive = 3 revive_interval = 300 status_check_timeout = 4 irt = 2 mrt = 16 mrc = 5 mrd = 30 } home_server_pool coa { type = fail-over virtual_server = originate-coa.example.com home_server = localhost-coa } radiusd: #### Loading Clients #### client localhost { ipaddr = 127.0.0.1 require_message_authenticator = no secret = "testing123" nastype = "other" coa_server = "localhost-coa" } /usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa" some# What am i missing?
Anton G. wrote:
/usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa" some#
What am i missing?
Weird. I guess the code got changed after the feature was tested and added. Oh well. I've committed a fix to git. You can grab that, or wait an hour or two for the "pre/" directory to have a tested and updated "tar" file. Alan DeKok.
Alan DeKok ?????:
Anton G. wrote:
/usr/local/etc/raddb/clients.conf[30]: No such home_server or home_server_pool "localhost-coa" some#
What am i missing?
Weird. I guess the code got changed after the feature was tested and added. Oh well.
I've committed a fix to git. You can grab that, or wait an hour or two for the "pre/" directory to have a tested and updated "tar" file.
Alan DeKok.
Thanks alot, Alan! grabbed today stable from git and tried. As far as i can see - works. But i`ve notice one thing: Home_server of type coa must be listed in any home_server pool (no matter is the pool used or not) to get it work. If it is not - i get /usr/local/etc/raddb/clients.conf[178]: No such home_server or home_server_pool so ---------------WORKS---------------- home_server coa1 { type = coa secret = testing123 ipaddr = 10.1.3.5 port = 1700 coa { irt = 2 mrt = 16 mrc = 5 mrd = 30 } } home_server_pool coa { type = fail-over home_server = coa1 } client test1 { ipaddr = 10.1.3.5 netmask = 32 secret = testing321 nastype = other coa_server = coa1 } ------------------------------------- ---------------DOESN`T WORKS---------------- home_server coa1 { type = coa ipaddr = 10.1.3.5 port = 1700 coa { irt = 2 mrt = 16 mrc = 5 mrd = 30 } } client test1 { ipaddr = 10.1.3.5 netmask = 32 secret = testing321 nastype = other coa_server = coa1 } -------------------------------------
Anton G. wrote:
grabbed today stable from git and tried. As far as i can see - works.
OK, thanks.
But i`ve notice one thing:
Home_server of type coa must be listed in any home_server pool (no matter is the pool used or not) to get it work.
Yes. That's an acceptable limitation for now. Alan DeKok.
participants (3)
-
Alan DeKok -
Anton G. -
DILLIOTT Tony