Problem in configuring multiple IP pool

ranjan kumar ranjankumar077 at gmail.com
Thu Sep 13 11:55:18 CEST 2012


Hi,

I have created two ip pool in radiusd.conf which looks like below:

=======================================================
In radiusd.conf

ippool myippool {
                 range-start = 192.168.182.129
                 range-stop = 192.168.182.254
                 netmask = 255.255.255.0
                 cache-size = 800
                 session-db = ${raddbdir}/db.ippool1
                 ip-index = ${raddbdir}/db.ipindex1
                 override = yes
                 maximum-timeout = 0
                #key = "%{NAS-IP-Address} %{NAS-Port}"
}

ippool my_sec_ippool {
                 range-start = 192.168.182.129
                 range-stop = 192.168.182.254
                 netmask = 255.255.255.0
                 cache-size = 800
                 session-db = ${raddbdir}/db.ippool1
                 ip-index = ${raddbdir}/db.ipindex1
                 override = yes
                 maximum-timeout = 0
                #key = "%{NAS-IP-Address} %{NAS-Port}"
}

---------------------------------------------------------------------------------------------------------------
In user updated like below:

DEFAULT Auth-Type := aag, Service-Type == Framed-User, Framed-Protocol ==
7, Pool-Name := myippool
        Service-Type == Framed-User,
        Framed-Protocol == 7,
        Acct-Interim-Interval = 500

DEFAULT Auth-Type := aag, Service-Type == Framed-User, Framed-Protocol ==
7, Pool-Name := my_sec_ippool
        Service-Type == Framed-User,
        Framed-Protocol == 7,
        Acct-Interim-Interval = 500
=======================================================

When I am executing radius server in debug mode i.e ./radiusd -X then
getting the below error

=======================================================
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating module "exec" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/exec
  exec {
        wait = no
        input_pairs = "request"
        shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating module "expr" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/expr
 Module: Linked to module rlm_expiration
 Module: Instantiating module "expiration" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/expiration
  expiration {
        reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating module "logintime" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/logintime
  logintime {
        reply-message = "You are calling outside your allowed timespan  "
        minimum-timeout = 60
  }
 Module: Linked to module rlm_aag
 Module: Instantiating module "aag" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/aag
  aag {
        integer = 1
        boolean = no
        ipaddr = *
  }
openfile opened
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/data//admin/log/error/startup.log
LoggingLevel.conf
path...../export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/data//config/logginglevel.conf
alarminglevel.conf
path...../export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/data//config/alarminglevel.conf
Loggerportno conf file
path..../export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/data//config/loggerportno.conf
}
radiusd: #### Loading Virtual Servers ####
server { # from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/radiusd.conf
 modules {
  Module: Creating Auth-Type = aag
  Module: Creating Auth-Type = digest
  Module: Creating Post-Auth-Type = REJECT
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating module "pap" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/pap
  pap {
        encryption_scheme = "auto"
        auto_header = no
  }
 Module: Linked to module rlm_chap
 Module: Instantiating module "chap" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/chap
 Module: Linked to module rlm_mschap
 Module: Instantiating module "mschap" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/mschap
  mschap {
        use_mppe = yes
        require_encryption = no
        require_strong = no
        with_ntdomain_hack = no
        allow_retry = yes
  }
 Module: Linked to module rlm_digest
 Module: Instantiating module "digest" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/digest
 Module: Linked to module rlm_unix
 Module: Instantiating module "unix" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/unix
  unix {
        radwtmp =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/var/log/radius/radwtmp"
  }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating module "preprocess" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/preprocess
  preprocess {
        huntgroups =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/huntgroups"
        hints =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/hints"
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = no
        with_alvarion_vsa_hack = no
  }
 Module: Linked to module rlm_realm
 Module: Instantiating module "suffix" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/realm
  realm suffix {
        format = "suffix"
        delimiter = "@"
        ignore_default = no
        ignore_null = no
  }
 Module: Linked to module rlm_files
 Module: Instantiating module "files" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/files
  files {
        usersfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/users"
        acctusersfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/acct_users"
        preproxy_usersfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/preproxy_users"
        compat = "no"
  }
 Module: Checking preacct {...} for more modules to load
 Module: Linked to module rlm_acct_unique
 Module: Instantiating module "acct_unique" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/acct_unique
  acct_unique {
        key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port"
  }
 Module: Checking accounting {...} for more modules to load
 Module: Linked to module rlm_detail
 Module: Instantiating module "detail" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/detail
  detail {
        detailfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
        header = "%t"
        detailperm = 384
        dirperm = 493
        locking = no
        log_packet_header = no
  }
 Module: Linked to module rlm_radutmp
 Module: Instantiating module "radutmp" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/radutmp
  radutmp {
        filename =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/var/log/radius/radutmp"
        username = "%{User-Name}"
        case_sensitive = yes
        check_with_nas = yes
        perm = 384
        callerid = yes
  }
 Module: Linked to module rlm_attr_filter
 Module: Instantiating module "attr_filter.accounting_response" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/attr_filter
  attr_filter attr_filter.accounting_response {
        attrsfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/attrs.accounting_response"
        key = "%{User-Name}"
        relaxed = no
  }
 Module: Checking session {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 Module: Instantiating module "attr_filter.access_reject" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/attr_filter
  attr_filter attr_filter.access_reject {
        attrsfile =
"/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/attrs.access_reject"
        key = "%{User-Name}"
        relaxed = no
  }
 } # modules
} # server
server inner-tunnel { # from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/sites-enabled/inner-tunnel
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Checking authorize {...} for more modules to load
 Module: Checking session {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 } # modules
} # server
server coa { # from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/sites-enabled/coa
 modules {
 Module: Checking recv-coa {...} for more modules to load
 Module: Linked to module rlm_always
 Module: Instantiating module "ok" from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/modules/always
  always ok {
        rcode = "ok"
        simulcount = 0
        mpp = no
  }
 Module: Checking send-coa {...} for more modules to load
 } # modules
} # server
server originate-coa.example.com { # from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/sites-available/originate-coa
 modules {
  Module: Creating Post-Proxy-Type = Fail-CoA
  Module: Creating Post-Proxy-Type = Fail-Disconnect
 Module: Checking pre-proxy {...} for more modules to load
 Module: Checking post-proxy {...} for more modules to load
 } # modules
} # server
WARNING: Server originate-coa.example.com is empty, and will do nothing!
server Access_Gateway { # from file
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/radiusd.conf
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Checking authorize {...} for more modules to load
 Module: Checking accounting {...} for more modules to load
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/radiusd.conf[890]:
Failed to load module "myippool".
/export/home/lebraaag/ACCESS_GATEWAY/FSS_AAG/RADIUS_STACK/etc/raddb/radiusd.conf[877]:
Errors parsing accounting section.
=====================================================================================================

Please look into my problem and guide me to come out of this problem.

Thanks,

Regards
Ranjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120913/16ce241f/attachment-0001.html>


More information about the Freeradius-Users mailing list