Chetan Gaonker | 7f4bf74 | 2016-05-04 15:56:08 -0700 | [diff] [blame] | 1 | # -*- text -*- |
| 2 | # |
| 3 | # $Id: 1d3305ba45ec71336f55f8f1db05f183772e1b82 $ |
| 4 | |
| 5 | # Do server side ip pool management. Should be added in |
| 6 | # post-auth and accounting sections. |
| 7 | # |
| 8 | # The module also requires the existence of the Pool-Name |
| 9 | # attribute. That way the administrator can add the Pool-Name |
| 10 | # attribute in the user profiles and use different pools for |
| 11 | # different users. The Pool-Name attribute is a *check* item |
| 12 | # not a reply item. |
| 13 | # |
| 14 | # The Pool-Name should be set to the ippool module instance |
| 15 | # name or to DEFAULT to match any module. |
| 16 | |
| 17 | # |
| 18 | # Example: |
| 19 | # radiusd.conf: ippool students { [...] } |
| 20 | # ippool teachers { [...] } |
| 21 | # users file : DEFAULT Group == students, Pool-Name := "students" |
| 22 | # DEFAULT Group == teachers, Pool-Name := "teachers" |
| 23 | # DEFAULT Group == other, Pool-Name := "DEFAULT" |
| 24 | # |
| 25 | # Note: If you change the range parameters you must then erase the |
| 26 | # db files. |
| 27 | # |
| 28 | ippool main_pool { |
| 29 | # The main db file used to allocate addresses. |
| 30 | filename = ${db_dir}/db.ippool |
| 31 | |
| 32 | # The start and end ip addresses for this pool. |
| 33 | range_start = 192.0.2.1 |
| 34 | range_stop = 192.0.2.254 |
| 35 | |
| 36 | # The network mask used for this pool. |
| 37 | netmask = 255.255.255.0 |
| 38 | |
| 39 | # The gdbm cache size for the db files. Should |
| 40 | # be equal to the number of ip's available in |
| 41 | # the ip pool |
| 42 | cache_size = 800 |
| 43 | |
| 44 | # Helper db index file used in multilink |
| 45 | ip_index = ${db_dir}/db.ipindex |
| 46 | |
| 47 | # If set, the Framed-IP-Address already in the |
| 48 | # reply (if any) will be discarded, and replaced |
| 49 | # ith a Framed-IP-Address assigned here. |
| 50 | override = no |
| 51 | |
| 52 | # Specifies the maximum time in seconds that an |
| 53 | # entry may be active. If set to zero, means |
| 54 | # "no timeout". The default value is 0 |
| 55 | maximum_timeout = 0 |
| 56 | |
| 57 | # The key to use for the session database (which |
| 58 | # holds the allocated ip's) normally it should |
| 59 | # just be the nas ip/port (which is the default). |
| 60 | # |
| 61 | # If your NAS sends the same value of NAS-Port |
| 62 | # all requests, the key should be based on some |
| 63 | # other attribute that is in ALL requests, AND |
| 64 | # is unique to each machine needing an IP address. |
| 65 | # key = "%{NAS-IP-Address} %{NAS-Port}" |
| 66 | } |