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

« back to all changes in this revision

Viewing changes to raddb/sites-available/dhcp

  • 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:
13
13
#
14
14
#               $ ./configure --with-dhcp
15
15
#               $ make
 
16
#               $ vi share/dictionary
 
17
#
 
18
#       ## Un-comment the line containing $INCLUDE dictionary.dhcp
 
19
#       ## Then, save the file.
 
20
#
16
21
#               $ make install
17
22
#
18
23
#       DHCP is NOT enabled by default.
47
52
#       Q: It doesn't seem to do much of anything!
48
53
#       A: Exactly.
49
54
#
50
 
#       $Id: dhcp,v 1.1 2008/04/20 14:52:18 aland Exp $
 
55
#       $Id$
51
56
#
52
57
######################################################################
53
58
 
56
61
#
57
62
server dhcp {
58
63
 
59
 
#  This is part RADIUS legacy (sorry).  Clients have to be defined for
60
 
#  DHCP.  This is not normal practice for a DHCP server, but it does
61
 
#  enable a simple filter list of "known clients".
62
 
#
63
 
 
64
 
#  DHCP packets are normally sent with source IP address 0.0.0.0.
65
 
#  If you want to accept packets from any IP, uncomment the "netmask"
66
 
#  entry below, and delete the other "client" sections in this file.
67
 
client any {
68
 
        ipaddr = 0.0.0.0
69
 
        #netmask = 0
70
 
        dhcp = yes
71
 
}
72
 
 
73
 
#  For local testing.
74
 
client localnet {
75
 
        ipaddr = 127.0.0.0
76
 
        netmask = 8
77
 
        dhcp = yes
78
 
}
79
 
 
80
64
#  Define a DHCP socket.
81
65
#
82
66
#  The default port below is 6700, so you don't break your network.
83
67
#  If you want it to do real DHCP, change this to 67, and good luck!
84
68
#
85
69
#  You can also bind the DHCP socket to an interface.
86
 
#  See raddb/radiusd.conf for examples.
 
70
#  See below, and raddb/radiusd.conf for examples.
87
71
#
88
72
#  This lets you run *one* DHCP server instance and have it listen on
89
73
#  multiple interfaces, each with a separate policy.
 
74
#
 
75
#  If you have multiple interfaces, it is a good idea to bind the
 
76
#  listen section to an interface.  You will likely also need one
 
77
#  listen section per interface.
90
78
listen {
91
79
        ipaddr = *
92
80
        port = 6700
93
81
        type = dhcp
 
82
        #interface = eth0
94
83
}
95
84
 
96
85
#  Packets received on the socket will be processed through one
186
175
#
187
176
######################################################################
188
177
 
189
 
#passwd mac2vlan {
 
178
#passwd mac2ip {
190
179
#       filename = ${confdir}/mac2ip
191
180
#       format = "*DHCP-Client-Hardware-Address:=DHCP-Your-IP-Address"
192
181
#       delimiter = ","