IP allocation from Pool

Alan DeKok aland at deployingradius.com
Fri Oct 16 14:21:14 CEST 2020


On Oct 15, 2020, at 10:56 PM, kabin mool <kabin_mool at hotmail.com> wrote:
> 
> Thanks Alan with your guidance, I was able to manage this configuration as required for me.

  Good to hear.

> I have two questions:
> 
>  1.  in dhcp_sqlippool
> sqlippool_log_exists = "DHCP: Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
> 
>        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})"
> 
>        sqlippool_log_clear = "DHCP: Released IP %{Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"
> 
>        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})"
> 
>        sqlippool_log_nopool = "DHCP: No Pool-Name defined (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
> How to enable this log, cannot figure where it writes this information?

  You should be able to just list "sql" in the "Post-auth" section.

>  2.  Inside virtual server, I have define this:
> Post-Auth-Type REJECT {
>                        attr_filter.access_reject
>                        update reply {
>                                User-Name := "%{User-Name}"
>                                Calling-Station-Id := "%{Calling-Station-Id}"
>                                Reply-Message := "PASSWORD incorrect or IPPool Full = %{Pool-Name} for %{NAS-IP-Address}"
>                        }
>                        sql
>                        reply_log
>                }
>  3.
> How can I show different error messages?

   That's too vague for me to answer.  What error messages do you want?

  Alan DeKok.




More information about the Freeradius-Users mailing list