34 |
- |
1 |
## Configuration for DHCP to use SQL IP Pools.
|
|
|
2 |
##
|
|
|
3 |
## See sqlippool.conf for common configuration explanation
|
|
|
4 |
##
|
|
|
5 |
## $Id: 39358b222d016d62e5cf6e8c77fd214cc7614feb $
|
|
|
6 |
|
|
|
7 |
sqlippool dhcp_sqlippool {
|
|
|
8 |
sql-instance-name = "sql"
|
|
|
9 |
|
|
|
10 |
ippool_table = "radippool"
|
|
|
11 |
|
|
|
12 |
lease-duration = 7200
|
|
|
13 |
|
|
|
14 |
# Client's MAC address is mapped to Calling-Station-Id in policy.conf
|
|
|
15 |
pool-key = "%{Calling-Station-Id}"
|
|
|
16 |
|
|
|
17 |
# For now, it only works with MySQL. Requires freeradius-mysql.
|
|
|
18 |
#$INCLUDE ${confdir}/sql/mysql/ippool-dhcp.conf
|
|
|
19 |
|
|
|
20 |
sqlippool_log_exists = "DHCP: Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
|
|
|
21 |
|
|
|
22 |
sqlippool_log_success = "DHCP: Allocated IP: %{reply:Framed-IP-Address} from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
|
|
|
23 |
|
|
|
24 |
sqlippool_log_clear = "DHCP: Released IP %{Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"
|
|
|
25 |
|
|
|
26 |
sqlippool_log_failed = "DHCP: IP Allocation FAILED from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
|
|
|
27 |
|
|
|
28 |
sqlippool_log_nopool = "DHCP: No Pool-Name defined (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
|
|
|
29 |
|
|
|
30 |
}
|