Added sample radrelay.conf
authorAlan T. DeKok <aland@freeradius.org>
Mon, 6 Jul 2009 08:18:23 +0000 (10:18 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 6 Jul 2009 08:18:23 +0000 (10:18 +0200)
configure
configure.in
raddb/radrelay.conf.in [new file with mode: 0644]

index 950a68c..df6d345 100755 (executable)
--- a/configure
+++ b/configure
@@ -25906,7 +25906,7 @@ USE_STATIC_LIBS=$enable_static
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
+  ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -26481,6 +26481,7 @@ do
     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
+    "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
 
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
index 7d2f24a..fe94d3e 100644 (file)
@@ -1182,5 +1182,6 @@ AC_OUTPUT(\
        ./scripts/radiusd.cron.monthly \
        ./scripts/cryptpasswd \
        ./raddb/dictionary \
+       ./raddb/radrelay.conf \
        ./raddb/radiusd.conf
 )
diff --git a/raddb/radrelay.conf.in b/raddb/radrelay.conf.in
new file mode 100644 (file)
index 0000000..d3d6c93
--- /dev/null
@@ -0,0 +1,166 @@
+# -*- text -*-
+##
+## radrelay.conf  -- FreeRADIUS server configuration file.
+##
+##     Use with: radiusd -n radrelay
+##
+##     http://www.freeradius.org/
+##     $Id$
+##
+
+######################################################################
+#
+#      This file is a sample configuration that replaces the old
+#      "radrelay" program.  It is a *minimal* configuration that
+#      does little more than read the detail file, and proxy the
+#      packets to a home server.  If you need it to do more than
+#      just replace radrelay, you will need to add additional
+#      configuration.
+#
+#      See raddb/sites-available/copy-acct-to-home-server for a
+#      more complete example.  That example is intended to be run
+#      as part of a larger radius configuration, where the server
+#      also listens on ports 1812, etc.  The example given here
+#      is a minimal example that has ONLY radrelay functionality.
+#
+#      See radiusd.conf for a complete description of the configuration
+#      parameters used here.
+#
+######################################################################
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+sysconfdir = @sysconfdir@
+localstatedir = @localstatedir@
+sbindir = @sbindir@
+logdir = @logdir@
+raddbdir = @raddbdir@
+radacctdir = @radacctdir@
+
+#
+#  name of the running server.  See also the "-n" command-line option.
+#
+name = radrelay
+
+#
+#  Generic configuration
+#
+confdir = ${raddbdir}
+run_dir = ${localstatedir}/run/${name}
+libdir = @libdir@
+pidfile = ${run_dir}/${name}.pid
+
+#
+#  Request handling configuration
+#
+max_request_time = 30
+cleanup_delay = 5
+max_requests = 65536
+
+#
+#  Logging section.
+#
+log {
+       destination = files
+       file = ${logdir}/${name}.log
+}
+
+#
+#  Security configuration
+#
+security {
+       max_attributes = 200
+
+       # reject_delay && status_server don't apply when we are
+       # only reading accounting packets from the detail file
+}
+
+#
+#  If you need more modules, add them here.
+#
+modules {
+       $INCLUDE ${confdir}/modules/always
+}
+
+#
+#  If you need to instantiate modules, add them here.
+#
+instantiate {
+}
+
+#
+#  Configuration of home servers, etc.
+#
+proxy_requests  = yes
+
+#
+#  See proxy.conf for additional home server configuration.
+#
+home_server home1 {
+       type = acct
+
+       #
+       #  This directive replaces the "-r" command-line option
+       #  in radrelay
+       #
+       ipaddr = 192.168.10.20
+
+       port = 1812
+
+       #
+       #  This directive replaces the "-i" command-line option
+       #  in radrelay
+       #
+#      src_ipaddr = 192.168.1.1
+
+       #
+       #  This directive replaces the "-s", "-S", and "-n" command-line
+       #  options in radrelay
+       #
+       secret = testing123
+}
+
+#
+#  List one or more home servers here for fail-over, load-balancing, etc.
+#
+home_server_pool radrelay {
+       type = fail-over
+       home_server = home1
+}
+
+#
+#  A dummy realm.
+#
+realm radrelay {
+       acct_pool = radrelay
+}
+
+#
+#  Read the detail file.
+#
+listen {
+       type = detail
+
+       #
+       #  The "radacctdir" parameter below replaces the "-a" command-
+       #  line option in radrelay.  The "detail" parameter replaces
+       #  the "detailfile" command-line option in radrelay
+       #
+       filename = ${radacctdir}/detail
+       load_factor = 90
+}
+
+#
+#  See also raddb/sites-available/copy-acct-to-home-server
+#  for additional description.
+#
+preacct {
+       #
+       #  Proxy the packet using the given realm.
+       #  Note that we do not use the realm for anything else such
+       #  as prefix/suffix stripping or comparisons.
+       #
+       update control {
+               Proxy-To-Realm := "radrelay"
+       }
+}