From: Alan T. DeKok Date: Wed, 3 Apr 2019 13:38:35 +0000 (-0400) Subject: update for v4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=536253e047157cd81cbd2e9ea1b03e5d732f13e8;p=thirdparty%2Ffreeradius-server.git update for v4 --- diff --git a/raddb/sites-available/coa b/raddb/sites-available/coa index 3cd80c9d334..532f36e068c 100644 --- a/raddb/sites-available/coa +++ b/raddb/sites-available/coa @@ -3,36 +3,71 @@ # # Sample virtual server for receiving a CoA or Disconnect-Request packet. # +server coa { + namespace = radius -# Listen on the CoA port. -# -# This uses the normal set of clients, with the same secret as for -# authentication and accounting. -# -listen { - type = coa - ipaddr = * - port = 3799 - virtual_server = coa -} + # Listen on the CoA port. + # + # This uses the normal set of clients, with the same secret as for + # authentication and accounting. + # + listen { + type = CoA-Request + type = Disconnect-Request -server coa { - # When a packet is received, it is processed through the - # recv-coa section. This applies to *both* CoA-Request and - # Disconnect-Request packets. - recv-coa { + transport = udp + + udp { + ipaddr = * + port = 3799 + } + } + + # + # Receive a CoA request + # + recv CoA-Request { # Insert your own policies here. ok } - # When a packet is sent, it is processed through the - # send-coa section. This applies to *both* CoA-Request and - # Disconnect-Request packets. - send-coa { + # + # Send a CoA ACK + # + send CoA-ACK { + # Sample module. + ok + } + + # + # Send a CoA NAK + # + send CoA-NAK { # Sample module. ok } - # You can use pre-proxy and post-proxy sections here, too. - # They will be processed for sending && receiving proxy packets. + # + # Receive a Disconnect request + # + recv Disconnect-Request { + # Insert your own policies here. + ok + } + + # + # Send a Disconnect ACK + # + send Disconnect-ACK { + # Sample module. + ok + } + + # + # Send a Disconnect NAK + # + send Disconnect-NAK { + # Sample module. + ok + } }