Tuesday, September 24, 2002, 7:29:03 PM, [EMAIL PROTECTED] wrote:

> On Tue, 24 Sep 2002 [EMAIL PROTECTED] wrote:

>>
>> ippool assign the same ip address for two different users.
>> May be my config is broken?
>> When i use large pool (1-254), i have the same bug after restarting
>> radiusd.
>> --------------------------------- Now I try send auth packet with radclient (user 
>mmike):
>>
>> Thread 1 handling request 0, (1 handled so far)
>>         Service-Type = Framed-User
>>         Framed-Protocol = PPP
>>         User-Name = "mmike"
>>         MS-CHAP-Challenge = 0xb9ca50b535f1d25c8d22873d4c203565
>>         MS-CHAP2-Response = 
>0x01002bbf1007dc607b833af3cdd279ece38b00000000000000002284ae758753dd9cd3e78d98dfcdde06a8db899b56543336
>>         NAS-IP-Address = 192.168.0.5
>>         NAS-Port = 0

> All Access-Requests contain the same NAS/Port pair. rlm_ippool will consider the
> corresponding ip allocated stale and will free it. As a result it will get
> reallocated to another user.

Whith large pool (1-254) ippool returns differ ip for the same
requests.

(old db-files removed)
Auth-request:
Service-Type = Framed-User
Framed-Protocol = PPP
User-Name = "mmike"
MS-CHAP-Challenge = 0xb9ca50b535f1d25c8d22873d4c203565
MS-CHAP2-Response = 
0x01002bbf1007dc607b833af3cdd279ece38b00000000000000002284ae758753dd9cd3e78d98dfcdde06a8db899b56543336
NAS-IP-Address = 192.168.0.5
NAS-Port = 0


# radiusd -xx | grep ippool

 ippool: session-db = "/etc/raddb/pools/db.pool-1-fast"
 ippool: ip-index = "/etc/raddb/pools/db.pool-1-fast.idx"
 ippool: range-start = 192.168.5.1 IP address [192.168.5.1]
 ippool: range-stop = 192.168.5.254 IP address [192.168.5.254]
 ippool: netmask = 255.255.255.0 IP address [255.255.255.0]
 ippool: cache-size = 800
rlm_ippool: Initializing database
Module: Instantiated ippool (ippool-1-fast)

REQUEST #1
rlm_ippool: Searching for an entry for nas/port: 192.168.0.5/0
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.5.55 to client on nas 192.168.0.5,port 0
  modcall[post-auth]: module "ippool-1-fast" returns ok

REQUEST #2
rlm_ippool: Searching for an entry for nas/port: 192.168.0.5/0
rlm_ippool: Found a stale entry for ip/port: 192.168.5.55/0
rlm_ippool: num: 0
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.5.217 to client on nas 192.168.0.5,port 0
  modcall[post-auth]: module "ippool-1-fast" returns ok

REQUEST #3
rlm_ippool: Searching for an entry for nas/port: 192.168.0.5/0
rlm_ippool: Found a stale entry for ip/port: 192.168.5.217/0
rlm_ippool: num: 0
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.5.92 to client on nas 192.168.0.5,port 0
  modcall[post-auth]: module "ippool-1-fast" returns ok

REQUEST #4
rlm_ippool: Searching for an entry for nas/port: 192.168.0.5/0
rlm_ippool: Found a stale entry for ip/port: 192.168.5.92/0
rlm_ippool: num: 0
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.5.233 to client on nas 192.168.0.5,port 0
  modcall[post-auth]: module "ippool-1-fast" returns ok



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to