~ubuntu-branches/ubuntu/jaunty/freeradius/jaunty-proposed

« back to all changes in this revision

Viewing changes to raddb/sites-available/status

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-09-22 08:42:02 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080922084202-eyjprg3z55481ha5
Tags: 2.1.0+dfsg-0ubuntu1
* New upstream release.
* Fixes FTBFS issue with new libtool.
* Fixes listen on random port. (LP: #261809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- text -*-
 
2
######################################################################
 
3
#
 
4
#       A virtual server to handle ONLY Status-Server packets.
 
5
#
 
6
#       Server statistics can be queried with a properly formatted
 
7
#       Status-Server request.  See dictionary.freeradius for comments.
 
8
#
 
9
#       If radiusd.conf has "status_server = yes", then any client
 
10
#       will be able to send a Status-Server packet to any port
 
11
#       (listen section type "auth", "acct", or "status"), and the
 
12
#       server will respond.
 
13
#
 
14
#       If radiusd.conf has "status_server = no", then the server will
 
15
#       ignore Status-Server packets to "auth" and "acct" ports.  It
 
16
#       will respond only if the Status-Server packet is sent to a
 
17
#       "status" port.
 
18
#
 
19
#       The server statistics are available ONLY on socket of type
 
20
#       "status".  Qeuries for statistics sent to any other port
 
21
#       are ignored.
 
22
#
 
23
#       Similarly, a socket of type "status" will not process
 
24
#       authentication or accounting packets.  This is for security.
 
25
#
 
26
#       $Id$
 
27
#
 
28
######################################################################
 
29
 
 
30
server status {
 
31
        listen {
 
32
                #  ONLY Status-Server is allowed to this port.
 
33
                #  ALL other packets are ignored.
 
34
                type = status
 
35
 
 
36
                ipaddr = 127.0.0.1
 
37
                port = 18120
 
38
        }
 
39
 
 
40
        #
 
41
        #  We recommend that you list ONLY management clients here.
 
42
        #  i.e. NOT your NASes or Access Points, and for an ISP,
 
43
        #  DEFINITELY not any RADIUS servers that are proxying packets
 
44
        #  to you.
 
45
        #
 
46
        #  If you do NOT list a client here, then any client that is
 
47
        #  globally defined (i.e. all of them) will be able to query
 
48
        #  these statistics.
 
49
        #
 
50
        #  Do you really want your partners seeing the internal details
 
51
        #  of what your RADIUS server is doing?
 
52
        #
 
53
        client admin {
 
54
                ipaddr = 127.0.0.1
 
55
                secret = adminsecret
 
56
        }
 
57
 
 
58
        #
 
59
        #  Simple authorize section.  The "Autz-Type Status-Server"
 
60
        #  section will work here, too.  See "raddb/sites-available/default".
 
61
        authorize {
 
62
                # respond to the Status-Server request.
 
63
                ok
 
64
        }
 
65
}
 
66
 
 
67
#       Statistics can be queried via a number of methods:
 
68
#
 
69
#       All packets received/sent by the server (1 = auth, 2 = acct)
 
70
#               FreeRADIUS-Statistics-Type = 3
 
71
#
 
72
#       All packets proxied by the server (4 = proxy-auth, 8 = proxy-acct)
 
73
#               FreeRADIUS-Statistics-Type = 12
 
74
#
 
75
#       All packets sent && received:
 
76
#               FreeRADIUS-Statistics-Type = 15
 
77
#
 
78
#       Internal server statistics:
 
79
#               FreeRADIUS-Statistics-Type = 16
 
80
#
 
81
#       All packets for a particular client (globally defined)
 
82
#               FreeRADIUS-Statistics-Type = 35
 
83
#               FreeRADIUS-Stats-Client-IP-Address = 192.168.1.1
 
84
#
 
85
#       All packets for a client attached to a "listen" ip/port
 
86
#               FreeRADIUS-Statistics-Type = 35
 
87
#               FreeRADIUS-Stats-Client-IP-Address = 192.168.1.1
 
88
#               FreeRADIUS-Stats-Server-IP-Address = 127.0.0.1
 
89
#               FreeRADIUS-Stats-Server-Port = 1812
 
90
#
 
91
#       All packets for a "listen" IP/port
 
92
#               FreeRADIUS-Statistics-Type = 67
 
93
#               FreeRADIUS-Stats-Server-IP-Address = 127.0.0.1
 
94
#               FreeRADIUS-Stats-Server-Port = 1812
 
95
#
 
96
#       All packets for a home server IP / port
 
97
#               FreeRADIUS-Statistics-Type = 131
 
98
#               FreeRADIUS-Stats-Server-IP-Address = 192.168.1.2
 
99
#               FreeRADIUS-Stats-Server-Port = 1812
 
100
 
 
101
#
 
102
#  You can also get exponentially weighted moving averages of
 
103
#  response times (in usec) of home servers.  Just set the config
 
104
#  item "historic_average_window" in a home_server section.
 
105
#
 
106
#  By default it is zero (don't calculate it).  Useful values
 
107
#  are between 100, and 10,000.  The server will calculate and
 
108
#  remember the moving average for this window, and for 10 times
 
109
#  that window.
 
110
#
 
111
 
 
112
#
 
113
#  Some of this could have been simplified.  e.g. the proxy-auth and
 
114
#  proxy-acct bits aren't completely necessary.  But using them permits
 
115
#  the server to be queried for ALL inbound && outbound packets at once.
 
116
#  This gives a good snapshot of what the server is doing.
 
117
#
 
118
#  Due to internal limitations, the statistics might not be exactly up
 
119
#  to date.  Do not expect all of the numbers to add up perfectly.
 
120
#  The Status-Server packets are also counted in the total requests &&
 
121
#  responses.  The responses are counted only AFTER the response has
 
122
#  been sent.
 
123
#
 
 
b'\\ No newline at end of file'