<div dir="ltr">Hi all <div><br></div><div style>i configure all config file to use COA .</div><div style>i can use update disconnect and it work will in all section , but update coa is not working.</div><div style><br></div>
<div style>i read all file for 10 times but can not find where is the problem.</div><div style><br></div><div style>in log file i can not find any message that related to update COA in any section.</div><div style><br></div>
<div style>my config file :</div><div style><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><font color="#cc0000"><b> clent.conf :<br></b></font></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<br></div><div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">client lar {</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">ipaddr = 5.190.103.4</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
secret = testing123</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">require_message_authenticator = no</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">nastype = other</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px">coa_server = lar</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">}</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><font color="#cc0000"><b>coa-originate :</b></font></div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">home_server lar {</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
type = coa</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> ipaddr = 5.190.103.4</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> port = 1700</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
secret = testing123</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> coa {</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> irt = 2</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
mrt = 16</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> mrc = 5</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> mrd = 30</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
}</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">}</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
home_server_pool main {</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> type = fail-over</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"> home_server = lar</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px">}</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div><div><font face="arial, sans-serif">server originate-coa.lar {</font></div>
<div><font face="arial, sans-serif"> pre-proxy {</font></div><div><font face="arial, sans-serif"># update proxy-request {</font></div><div><font face="arial, sans-serif"># NAS-IP-Address = 127.0.0.1</font></div>
<div><font face="arial, sans-serif"># }</font></div><div><font face="arial, sans-serif"> ok</font></div><div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"><br></font></div>
<div><font face="arial, sans-serif"> #</font></div><div><font face="arial, sans-serif"> # Handle the responses here.</font></div><div><font face="arial, sans-serif"> #</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif"> post-proxy {</font></div><div><font face="arial, sans-serif"> switch "%{proxy-reply:Packet-Type}" {</font></div><div><font face="arial, sans-serif"> case CoA-ACK {</font></div>
<div><font face="arial, sans-serif"> ok</font></div><div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> case CoA-NAK {</font></div>
<div><font face="arial, sans-serif"> # the NAS didn't like the CoA request</font></div><div><font face="arial, sans-serif"> ok</font></div><div><font face="arial, sans-serif"> }</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> case Disconnect-ACK {</font></div><div><font face="arial, sans-serif"> ok</font></div><div><font face="arial, sans-serif"> }</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> case Disconnect-NAK {</font></div><div><font face="arial, sans-serif"> # the NAS didn't like the Disconnect request</font></div>
<div><font face="arial, sans-serif"> ok</font></div><div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> # Invalid packet type. This shouldn't happen.</font></div>
<div><font face="arial, sans-serif"> case {</font></div><div><font face="arial, sans-serif"> fail</font></div><div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"> }</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> #</font></div><div><font face="arial, sans-serif"> # These methods are run when there is NO response</font></div><div>
<font face="arial, sans-serif"> # to the request.</font></div><div><font face="arial, sans-serif"> #</font></div><div><font face="arial, sans-serif"> Post-Proxy-Type Fail-CoA {</font></div><div><font face="arial, sans-serif"> ok</font></div>
<div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> Post-Proxy-Type Fail-Disconnect {</font></div><div><font face="arial, sans-serif"> ok</font></div>
<div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif"> }</font></div><div><font face="arial, sans-serif">}</font></div></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><font color="#ff0000"><b>default config :</b></font></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px">preacct {<br></div><div><div><font face="arial, sans-serif"> update coa {</font></div><div><font face="arial, sans-serif"><span class="" style="white-space:pre"> </span> <span class="" style="white-space:pre"> </span> User-Name = "%{User-Name}"</font></div>
<div><font face="arial, sans-serif"><span class="" style="white-space:pre"> </span> <span class="" style="white-space:pre"> </span> Acct-Session-Id = "%{Acct-Session-Id}"</font></div><div><font face="arial, sans-serif"><span class="" style="white-space:pre"> </span> <span class="" style="white-space:pre"> </span> NAS-IP-Address = "%{NAS-IP-Address}"</font></div>
<div><font face="arial, sans-serif"><span class="" style="white-space:pre"> </span>Mikrotik-Rate-Limit = "256K/256K" </font></div><div><font face="arial, sans-serif"><span class="" style="white-space:pre"> </span>}</font></div>
</div></div></div><div style><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">}</span> </div><div style><br></div><div style><br></div><div style><br></div><div style>-------------------</div><div style>
<br></div><div style><br></div></div>