update coa not working

Mehdi Ravanbakhsh babakco at gmail.com
Wed Apr 3 21:48:48 CEST 2013


Hi all

i configure all config file to use COA .
i can use update disconnect and it work will in all section , but update
coa is not working.

i read all file for  10 times but can not find where is the problem.

in log file i can not find any message that related to update COA in any
section.

my config file :

* clent.conf :
*

client lar {
ipaddr = 5.190.103.4
secret = testing123
require_message_authenticator = no
nastype = other
coa_server = lar
}


*coa-originate :*

home_server lar {
   type = coa
   ipaddr = 5.190.103.4
   port = 1700
   secret = testing123
   coa {
     irt = 2
     mrt = 16
     mrc = 5
     mrd = 30
   }
}

home_server_pool main {
         type = fail-over
         home_server = lar
}

server originate-coa.lar {
  pre-proxy {
#        update proxy-request {
#                NAS-IP-Address = 127.0.0.1
#        }
        ok
  }

  #
  # Handle the responses here.
  #

  post-proxy {
        switch "%{proxy-reply:Packet-Type}" {
                case CoA-ACK {
                        ok
                }

                case CoA-NAK {
                        # the NAS didn't like the CoA request
                        ok
                }

                case Disconnect-ACK {
                        ok
                }

                case Disconnect-NAK {
                        # the NAS didn't like the Disconnect request
                        ok
                }

                # Invalid packet type.  This shouldn't happen.
                case {
                     fail
                }
        }

        #
        #  These methods are run when there is NO response
        #  to the request.
        #
        Post-Proxy-Type Fail-CoA {
                ok
        }

        Post-Proxy-Type Fail-Disconnect {
                ok
        }
  }
}

*default config :*

preacct {
      update coa {
       User-Name = "%{User-Name}"
       Acct-Session-Id = "%{Acct-Session-Id}"
      NAS-IP-Address = "%{NAS-IP-Address}"
Mikrotik-Rate-Limit = "256K/256K"
}
}



-------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130404/1ba839a2/attachment.html>


More information about the Freeradius-Users mailing list