Dynamic IP assignment problem

Mr. K dbuschiazzo at gmail.com
Wed Oct 22 06:00:14 CEST 2008


Hi all, 

I´m starting on using freeRadius and I´m trying to use ippool to assign an
IP dynamically for different users. Using the radiusd –X option, I finally
could receive an Accept packet with an IP.

The problem is that the IP that I’m receiving is not from the pool defined
in the radius.conf file as I will try to show in the logs below.

Module: Loaded IPPOOL 
 ippool: session-db = "/usr/freeRadius/raddb/db.ippool"
 ippool: ip-index = "/usr/freeRadius/raddb/db.ipindex"
 
#### This is the definition used in the radius.conf
ippool: range-start = 10.0.10.1 IP address [10.0.10.1]
 ippool: range-stop = 10.0.10.200 IP address [10.0.10.200]
 ippool: netmask = 255.255.252.0 IP address [255.255.252.0]
 ippool: cache-size = 800
 ippool: override = yes
 ippool: maximum-timeout = 0
Module: Instantiated ippool (main_pool) 
 detail: detailfile =
"/usr/freeRadius/log/radius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d"
 detail: detailperm = 384
 detail: dirperm = 493
 detail: locking = no

Then when I when receiving the IP:
rad_recv: Access-Request packet from host 172.16.3.185:1130, id=0, length=64
        User-Name = "7875305130 at newcomm"
        User-Password = "7875305130"
        NAS-Port = 7777
  Processing the authorize section of radiusd.conf

The process of authorization ends OK, but the assigned IP is from the
original main_ippool that I have modified.

Login OK: [7875305130 at newcomm] (from client iot port 7777)
  Processing the post-auth section of radiusd.conf
modcall: entering group post-auth for request 0
rlm_ippool: Searching for an entry for nas/port: 172.16.3.185/7777
rlm_ippool: Found a stale entry for ip/port: 172.16.3.171/7777
rlm_ippool: num: 0

rlm_ippool: Searching for an entry for nas/port: 172.16.3.185/7777
rlm_ippool: Allocating ip to nas/port: 172.16.3.185/7777
rlm_ippool: num: 1
rlm_ippool: Allocated ip 172.16.3.172 to client on nas 172.16.3.185,port
7777
  modcall[post-auth]: module "main_pool" returns ok for request 0

radius_xlat: 
'/usr/freeRadius/log/radius/radacct/172.16.3.185/reply-detail-20081022'
rlm_detail:
/usr/freeRadius/log/radius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d
expands to
/usr/freeRadius/log/radius/radacct/172.16.3.185/reply-detail-20081022
  modcall[post-auth]: module "reply_log" returns ok for request 0
rlm_sql (sql): Processing sql_postauth
radius_xlat:  '7875305130 at newcomm'
rlm_sql (sql): sql_set_user escaped user --> '7875305130 at newcomm'
radius_xlat:  'INSERT into radpostauth (id, user, pass, reply, date) values
('', '7875305130 at newcomm', '7875305130', 'Access-Accept', NOW())'
rlm_sql (sql) in sql_postauth: query is INSERT into radpostauth (id, user,
pass, reply, date) values ('', '7875305130 at newcomm', '7875305130',
'Access-Accept', NOW())
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql (sql): Released sql socket id: 2
  modcall[post-auth]: module "sql" returns ok for request 0
modcall: leaving group post-auth (returns ok) for request 0
Sending Access-Accept of id 0 to 172.16.3.185 port 1130
        Framed-IP-Address = 172.16.3.172
        Framed-IP-Netmask = 255.255.252.0
Finished request 0

I really don’t understand where are stored this IP from the original
configuration. Maybe I still have to change any other configuration file,
but I don`t realise where.

Thanks in advance.

Darío

-- 
View this message in context: http://www.nabble.com/Dynamic-IP-assignment-problem-tp20103625p20103625.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.





More information about the Freeradius-Users mailing list