Document port
[freeradius.git] / raddb / sqlippool.conf
1 ##  Configuration for the SQL based IP Pool module (rlm_sqlippool)
2 ##
3 ##  The database schemas are available at:
4 ##
5 ##       doc/examples/*.sql
6 ##
7 ##  $Id$
8
9 sqlippool {
10
11  #########################################
12  ## SQL instance to use (from sql.conf) ##
13  #########################################
14  sql-instance-name = "sql"
15
16  ## SQL table to use for ippool range and lease info
17  ippool_table = "radippool"
18
19  ## IP lease duration. (Leases expire even if Acct Stop packet is lost)
20  lease-duration = 3600
21
22  ## Attribute which should be considered unique per NAS
23  ## Using NAS-Port gives behaviour similar to rlm_ippool. (And ACS)
24  ## Using Calling-Station-Id works for NAS that send fixed NAS-Port
25  ## ONLY change this if you know what you are doing!
26  pool-key = "%{NAS-Port}"
27  # pool-key = "%{Calling-Station-Id}"
28
29  ################################################################
30  ## Uncomment the appropriate config file for your SQL dialect ##
31  ################################################################
32
33  # $INCLUDE sql/mysql/ippool.conf
34  $INCLUDE sql/postgresql/ippool.conf
35
36
37  ## Logging configuration. (Comment out to disable logging)
38  sqlippool_log_exists = "Existing IP: %{reply:Framed-IP-Address} \
39   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
40
41  sqlippool_log_success = "Allocated IP: %{reply:Framed-IP-Address} from %{control:Pool-Name} \
42   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
43
44  sqlippool_log_clear = "Released IP %{Framed-IP-Address}\
45  (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"
46
47  sqlippool_log_failed = "IP Allocation FAILED from %{control:Pool-Name} \
48   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
49
50  sqlippool_log_nopool = "No Pool-Name defined \
51   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
52
53 }