]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update for v4
authorAlan T. DeKok <aland@freeradius.org>
Wed, 3 Apr 2019 13:38:35 +0000 (09:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Apr 2019 13:37:46 +0000 (09:37 -0400)
raddb/sites-available/coa

index 3cd80c9d334f053a8633a6615cd89ed54ae555e9..532f36e068c0509512806982d5dae2f7354b6d28 100644 (file)
@@ -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
+       }
 }