~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to raddb/radrelay.conf.in

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- text -*-
 
2
##
 
3
## radrelay.conf  -- FreeRADIUS server configuration file.
 
4
##
 
5
##      Use with: radiusd -n radrelay
 
6
##
 
7
##      http://www.freeradius.org/
 
8
##      $Id$
 
9
##
 
10
 
 
11
######################################################################
 
12
#
 
13
#       This file is a sample configuration that replaces the old
 
14
#       "radrelay" program.  It is a *minimal* configuration that
 
15
#       does little more than read the detail file, and proxy the
 
16
#       packets to a home server.  If you need it to do more than
 
17
#       just replace radrelay, you will need to add additional
 
18
#       configuration.
 
19
#
 
20
#       See raddb/sites-available/copy-acct-to-home-server for a
 
21
#       more complete example.  That example is intended to be run
 
22
#       as part of a larger radius configuration, where the server
 
23
#       also listens on ports 1812, etc.  The example given here
 
24
#       is a minimal example that has ONLY radrelay functionality.
 
25
#
 
26
#       See radiusd.conf for a complete description of the configuration
 
27
#       parameters used here.
 
28
#
 
29
######################################################################
 
30
 
 
31
prefix = @prefix@
 
32
exec_prefix = @exec_prefix@
 
33
sysconfdir = @sysconfdir@
 
34
localstatedir = @localstatedir@
 
35
sbindir = @sbindir@
 
36
logdir = @logdir@
 
37
raddbdir = @raddbdir@
 
38
radacctdir = @radacctdir@
 
39
 
 
40
#
 
41
#  name of the running server.  See also the "-n" command-line option.
 
42
#
 
43
name = radrelay
 
44
 
 
45
#
 
46
#  Generic configuration
 
47
#
 
48
confdir = ${raddbdir}
 
49
run_dir = ${localstatedir}/run/${name}
 
50
libdir = @libdir@
 
51
pidfile = ${run_dir}/${name}.pid
 
52
 
 
53
#
 
54
#  Request handling configuration
 
55
#
 
56
max_request_time = 30
 
57
cleanup_delay = 5
 
58
max_requests = 65536
 
59
 
 
60
#
 
61
#  Logging section.
 
62
#
 
63
log {
 
64
        destination = files
 
65
        file = ${logdir}/${name}.log
 
66
}
 
67
 
 
68
#
 
69
#  Security configuration
 
70
#
 
71
security {
 
72
        max_attributes = 200
 
73
 
 
74
        # reject_delay && status_server don't apply when we are
 
75
        # only reading accounting packets from the detail file
 
76
}
 
77
 
 
78
#
 
79
#  If you need more modules, add them here.
 
80
#
 
81
modules {
 
82
        $INCLUDE ${confdir}/modules/always
 
83
}
 
84
 
 
85
#
 
86
#  If you need to instantiate modules, add them here.
 
87
#
 
88
instantiate {
 
89
}
 
90
 
 
91
#
 
92
#  Configuration of home servers, etc.
 
93
#
 
94
proxy_requests  = yes
 
95
 
 
96
#
 
97
#  See proxy.conf for additional home server configuration.
 
98
#
 
99
home_server home1 {
 
100
        type = acct
 
101
 
 
102
        #
 
103
        #  This directive replaces the "-r" command-line option
 
104
        #  in radrelay
 
105
        #
 
106
        ipaddr = 192.168.10.20
 
107
 
 
108
        port = 1812
 
109
 
 
110
        #
 
111
        #  This directive replaces the "-i" command-line option
 
112
        #  in radrelay
 
113
        #
 
114
#       src_ipaddr = 192.168.1.1
 
115
 
 
116
        #
 
117
        #  This directive replaces the "-s", "-S", and "-n" command-line
 
118
        #  options in radrelay
 
119
        #
 
120
        secret = testing123
 
121
}
 
122
 
 
123
#
 
124
#  List one or more home servers here for fail-over, load-balancing, etc.
 
125
#
 
126
home_server_pool radrelay {
 
127
        type = fail-over
 
128
        home_server = home1
 
129
}
 
130
 
 
131
#
 
132
#  A dummy realm.
 
133
#
 
134
realm radrelay {
 
135
        acct_pool = radrelay
 
136
}
 
137
 
 
138
#
 
139
#  Read the detail file.
 
140
#
 
141
listen {
 
142
        type = detail
 
143
 
 
144
        #
 
145
        #  The "radacctdir" parameter below replaces the "-a" command-
 
146
        #  line option in radrelay.  The "detail" parameter replaces
 
147
        #  the "detailfile" command-line option in radrelay
 
148
        #
 
149
        filename = ${radacctdir}/detail
 
150
        load_factor = 90
 
151
}
 
152
 
 
153
#
 
154
#  See also raddb/sites-available/copy-acct-to-home-server
 
155
#  for additional description.
 
156
#
 
157
preacct {
 
158
        #
 
159
        #  Proxy the packet using the given realm.
 
160
        #  Note that we do not use the realm for anything else such
 
161
        #  as prefix/suffix stripping or comparisons.
 
162
        #
 
163
        update control {
 
164
                Proxy-To-Realm := "radrelay"
 
165
        }
 
166
}