[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: IP allocation from Pool
From: Alan DeKok <aland () deployingradius ! com>
Date: 2020-10-16 12:21:14
Message-ID: 8017EC52-75A5-409B-B7B8-4D0AB741533F () deployingradius ! com
[Download RAW message or body]
On Oct 15, 2020, at 10:56 PM, kabin mool <kabin_mool@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.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic