Alan DeKok-2 wrote
ulislam.raihan wrote:
Hi Alan , The document says "/The default destination of a CoA packet is the NAS (or client) # the sent the original Access-Request or Accounting-Request./"
Yes. To the *IP* of the NAS. But which port? To Alan>> That was my question in previous mail. So i have to mention the CoA port in home_server section of originate-coa file . If my understanding is right
So in the Access-Request it is mentioned as shown in below
rad_recv: Access-Request packet from host 127.0.0.1 port 57378, id=1, length=59 User-Name = "testing" NAS-IP-Address = 127.0.0.1 NAS-Port = 4200
The NAS-Port is *not* the CoA port.
User-Password = "password"
But then why it is showing "Unknown destination". The log from the radiusd shows below. Thu Apr 5 13:49:52 2012 : Info: WARNING: Unknown destination 127.0.0.1:4200 for CoA request.
Yes... because you didn't configure the shared secret for CoA. To Alan>> where i configure the secret for CoA? I hope in clients.conf. Then it will look like this client 127.0.01 { secret = testing123-2 shortname = private-network-2 coa_server = localhost-coa }
and in originate-coa the configuration will be home_server localhost-coa { type = coa
# # Note that a home server of type "coa" MUST be a real NAS, # with an ipaddr or ipv6addr. It CANNOT point to a virtual # server. # ipaddr = 127.0.0.1 port = 4200
# This secret SHOULD NOT be the same as the shared # secret in a "client" section. secret = testing1234
# CoA specific parameters. See raddb/proxy.conf for details. coa { irt = 2 mrt = 16 mrc = 5 mrd = 30 } }
I have check with the netstat command in the OS that a java program is listening to the port 4200.
That doesn't matter.
Do i have to configure the NAS client IP and port in home_server section of originate-coa file ?
That's what the documentation says.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Quoted from: http://freeradius.1045715.n5.nabble.com/How-to-configure-COA-in-freeRadius-t... -- View this message in context: http://freeradius.1045715.n5.nabble.com/How-to-configure-COA-in-freeRadius-t... Sent from the FreeRadius - User mailing list archive at Nabble.com.