cidr cast

Peter Balsianok balsianok.peter at gmail.com
Wed Apr 15 15:00:36 CEST 2015


It doesn`t work.

Debug log (v3.0.7):
Ready to process requests
(0) Received Accounting-Request Id 12 from 127.0.0.1:59308 to 127.0.0.1:1813
length 233
...
(0)   NAS-IP-Address = 213.151.231.112
...
(0) # Executing section preacct from file ./sites-enabled/default
(0)   preacct {
(0)     [preprocess] = ok
(0)     policy huntgroup-regexp {
(0)       if (!&Huntgroup-Name) {
(0)       if (!&Huntgroup-Name)  -> TRUE
(0)       if (!&Huntgroup-Name)  {
(0)         if (<cidr>&NAS-IP-Address == 213.151.231.0/24) {
(0)         if (<cidr>&NAS-IP-Address == 213.151.231.0/24)  -> FALSE

On Wed, Apr 15, 2015 at 2:31 PM, Alan DeKok <aland at deployingradius.com>
wrote:

> On Apr 15, 2015, at 4:29 AM, Peter Balsianok <balsianok.peter at gmail.com>
> wrote:
> > May i use cid cast also for NAP-IP-Address ?
> >
> > if (<cidr>&NAS-IP-Address == 192.168.0.0/24) {
> >  update request {
> >
> > }
>
>   Yes.
>
>   The left hand side will be cast to a CIDR with the same net mask as the
> RHS.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>


More information about the Freeradius-Users mailing list