]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update to use the new v4 virtual servers
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 May 2020 12:54:21 +0000 (08:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 May 2020 12:54:21 +0000 (08:54 -0400)
raddb/sites-available/arp

index b89709a3b18250b1d66308e70702bfcdd28fd8c6..c5a1ef308003572a344a70e84f415e435527e889 100644 (file)
 #
 server arp {
        #
-       #  ### listen { ... }
+       #  namespace::
        #
-       #  Please see `listen` for more.
+       #  In v4, all "server" sections MUST start with a "namespace"
+       #  parameter.  This tells the server which protocol is being used.
        #
-       listen {
-               #
-               #  type:: ARP is type arp.
-               #
-               type = arp
+       #  All of the "listen" sections in this virtual server will
+       #  only accept packets for that protocol.
+       #
+       namespace = arp
 
+       #
+       #  ### The listen section
+       #
+       #  The `listen` sections in v4 are very different from the
+       #  `listen sections in v3.  The changes were necessary in
+       #  order to make FreeRADIUS more flexible, and to make the
+       #  configuration simpler and more consistent.
+       #
+       listen {
                #
                #  interface:: The only configuration possible for ARP
                #  is the name of the interface.
                #
-               interface = en1
+               interface = en0
        }
 
-       #
-       #  ### arp { ... }
-       #
-       #  If you need to know the interface, use `%{listen:interface}`
-       #
-       arp {
-               ok
-       }
+#
+#  ### Process an ARP request
+#
+recv Request {
+       ok
+}
+
+#
+#  ### Process an ARP reply before sending it
+#
+send Reply {
+       ok
+}
 }