R: Re: R: Re: R: rlm_ippool: No available ip addresses in pool

Tabacchiera Stefano stefano.tabacchiera at lottomatica.it
Tue May 4 15:45:18 CEST 2010


Alan,
here's the content of gdbm db:

rlm_ippool_tool -v db.ippool db.ipindex 
KEY: '9067fe4e396704b709d9cb2a592485fa' - ipaddr:192.168.1.5 active:1 cli:0 num:1
KEY: '3502b76273775d9a81147f003ee0c913' - ipaddr:192.168.1.3 active:1 cli:0 num:1
KEY: '7dfab3787e18fa9ac9aa1d29a364259b' - ipaddr:192.168.1.2 active:1 cli:0 num:1
KEY: '2e8e64b237e81be655e98029e4e746eb' - ipaddr:192.168.1.1 active:1 cli:0 num:1
KEY: '959f1236c1743765bd67472af2b043d4' - ipaddr:192.168.1.4 active:1 cli:0 num:1 


And here's the output of radiusd -X:

FreeRADIUS Version 2.1.8, for host x86_64-unknown-linux-gnu, built on May  3 2010 at 08:21:55
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 
You may redistribute copies of FreeRADIUS under the terms of the 
GNU General Public License v2. 
Starting - reading configuration files ...
including configuration file /home/test/etc/raddb/radiusd.conf
including configuration file /home/test/etc/raddb/clients.conf
including files in directory /home/test/etc/raddb/modules/
including configuration file /home/test/etc/raddb/modules/attr_filter
including configuration file /home/test/etc/raddb/modules/digest
including configuration file /home/test/etc/raddb/modules/mac2ip
including configuration file /home/test/etc/raddb/modules/preprocess
including configuration file /home/test/etc/raddb/modules/logintime
including configuration file /home/test/etc/raddb/modules/pap
including configuration file /home/test/etc/raddb/modules/detail.log
including configuration file /home/test/etc/raddb/modules/acct_unique
including configuration file /home/test/etc/raddb/modules/counter
including configuration file /home/test/etc/raddb/modules/expiration
including configuration file /home/test/etc/raddb/modules/linelog
including configuration file /home/test/etc/raddb/modules/realm
including configuration file /home/test/etc/raddb/modules/sradutmp
including configuration file /home/test/etc/raddb/modules/exec
including configuration file /home/test/etc/raddb/modules/krb5
including configuration file /home/test/etc/raddb/modules/detail
including configuration file /home/test/etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /home/test/etc/raddb/modules/radutmp
including configuration file /home/test/etc/raddb/modules/mschap
including configuration file /home/test/etc/raddb/modules/checkval
including configuration file /home/test/etc/raddb/modules/passwd
including configuration file /home/test/etc/raddb/modules/unix
including configuration file /home/test/etc/raddb/modules/etc_group
including configuration file /home/test/etc/raddb/modules/otp
including configuration file /home/test/etc/raddb/modules/sql_log
including configuration file /home/test/etc/raddb/modules/perl
including configuration file /home/test/etc/raddb/modules/inner-eap
including configuration file /home/test/etc/raddb/modules/policy
including configuration file /home/test/etc/raddb/modules/pam
including configuration file /home/test/etc/raddb/modules/files
including configuration file /home/test/etc/raddb/modules/echo
including configuration file /home/test/etc/raddb/modules/ippool
including configuration file /home/test/etc/raddb/modules/mac2vlan
including configuration file /home/test/etc/raddb/modules/cui
including configuration file /home/test/etc/raddb/modules/wimax
including configuration file /home/test/etc/raddb/modules/always
including configuration file /home/test/etc/raddb/modules/chap
including configuration file /home/test/etc/raddb/modules/ldap
including configuration file /home/test/etc/raddb/modules/detail.example.com
including configuration file /home/test/etc/raddb/modules/attr_rewrite
including configuration file /home/test/etc/raddb/modules/ntlm_auth
including configuration file /home/test/etc/raddb/modules/smbpasswd
including configuration file /home/test/etc/raddb/modules/expr
including configuration file /home/test/etc/raddb/modules/smsotp
including configuration file /home/test/etc/raddb/policy.conf
including files in directory /home/test/etc/raddb/sites-enabled/
including configuration file /home/test/etc/raddb/sites-enabled/control-socket
including configuration file /home/test/etc/raddb/sites-enabled/default
including dictionary file /home/test/etc/raddb/dictionary
main {
	prefix = "/home/test"
	localstatedir = "/home/test/var"
	logdir = "/home/test/var/log/radius"
	libdir = "/home/test/lib"
	radacctdir = "/home/test/var/log/radius/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 1024
	pidfile = "/home/test/var/run/radiusd/radiusd.pid"
	checkrad = "/home/test/sbin/checkrad"
	debug_level = 0
	proxy_requests = no
 log {
	stripped_names = no
	auth = yes
	auth_badpass = yes
	auth_goodpass = yes
 }
 security {
	max_attributes = 200
	reject_delay = 1
	status_server = yes
 }
}
radiusd: #### Loading Realms and Home Servers ####
radiusd: #### Loading Clients ####
 client localhost {
	ipaddr = 127.0.0.1
	require_message_authenticator = no
	secret = "testing123"
	nastype = "other"
 }
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating exec
  exec {
	wait = no
	input_pairs = "request"
	shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating expr
 Module: Linked to module rlm_expiration
 Module: Instantiating expiration
  expiration {
	reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating logintime
  logintime {
	reply-message = "You are calling outside your allowed timespan  "
	minimum-timeout = 60
  }
 }
radiusd: #### Loading Virtual Servers ####
server {
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating pap
  pap {
	encryption_scheme = "auto"
	auto_header = no
  }
 Module: Linked to module rlm_chap
 Module: Instantiating chap
 Module: Linked to module rlm_mschap
 Module: Instantiating mschap
  mschap {
	use_mppe = yes
	require_encryption = no
	require_strong = no
	with_ntdomain_hack = no
  }
 Module: Linked to module rlm_unix
 Module: Instantiating unix
  unix {
	radwtmp = "/home/test/var/log/radius/radwtmp"
  }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating preprocess
  preprocess {
	huntgroups = "/home/test/etc/raddb/huntgroups"
	hints = "/home/test/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 suffix
  realm suffix {
	format = "suffix"
	delimiter = "@"
	ignore_default = no
	ignore_null = no
  }
 Module: Linked to module rlm_files
 Module: Instantiating files
  files {
	usersfile = "/home/test/etc/raddb/users"
	acctusersfile = "/home/test/etc/raddb/acct_users"
	preproxy_usersfile = "/home/test/etc/raddb/preproxy_users"
	compat = "no"
  }
 Module: Checking preacct {...} for more modules to load
 Module: Linked to module rlm_acct_unique
 Module: Instantiating 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 detail
  detail {
	detailfile = "/home/test/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
	header = "%t"
	detailperm = 420
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Linked to module rlm_radutmp
 Module: Instantiating radutmp
  radutmp {
	filename = "/home/test/var/log/radius/radutmp"
	username = "%{User-Name}"
	case_sensitive = yes
	check_with_nas = yes
	perm = 384
	callerid = yes
  }
 Module: Linked to module rlm_ippool
 Module: Instantiating main_pool
  ippool main_pool {
	session-db = "/home/test/etc/raddb/db.ippool"
	ip-index = "/home/test/etc/raddb/db.ipindex"
	key = "%{NAS-IP-Address} %{NAS-Port}"
	range-start = 192.168.1.1
	range-stop = 192.168.1.5
	netmask = 255.255.255.0
	cache-size = 5
	override = yes
	maximum-timeout = 10
  }
 Module: Linked to module rlm_attr_filter
 Module: Instantiating attr_filter.accounting_response
  attr_filter attr_filter.accounting_response {
	attrsfile = "/home/test/etc/raddb/attrs.accounting_response"
	key = "%{User-Name}"
  }
 Module: Checking session {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 Module: Instantiating attr_filter.access_reject
  attr_filter attr_filter.access_reject {
	attrsfile = "/home/test/etc/raddb/attrs.access_reject"
	key = "%{User-Name}"
  }
 } # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
	type = "auth"
	ipaddr = 127.0.0.1
	port = 11812
}
listen {
	type = "acct"
	ipaddr = 127.0.0.1
	port = 11813
}
listen {
	type = "control"
 listen {
	socket = "/home/test/var/run/radiusd/radiusd.sock"
 }
}
Listening on authentication address 127.0.0.1 port 11812
Listening on accounting address 127.0.0.1 port 11813
Listening on command file /home/test/var/run/radiusd/radiusd.sock
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1 port 36923, id=139, length=38
	NAS-IP-Address = 127.0.0.1
	User-Name = "void"
	NAS-Port = 32157
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "void", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
++[unix] returns notfound
[files] users: Matched entry DEFAULT at line 136
[files] users: Matched entry DEFAULT at line 139
++[files] returns ok
++[logintime] returns noop
[pap] Found existing Auth-Type, not changing it.
++[pap] returns noop
Found Auth-Type = Accept
Auth-Type = Accept, accepting the user
Login OK: [void/<via Auth-Type = Accept>] (from client localhost port 32157)
+- entering group post-auth {...}
[main_pool] 	expand: %{NAS-IP-Address} %{NAS-Port} -> 127.0.0.1 32157
[main_pool] MD5 on 'key' directive maps to: 71d62669eac0a05008e47c4d54c85193
[main_pool] Searching for an entry for key: '71d62669eac0a05008e47c4d54c85193'
[main_pool] No available ip addresses in pool.
++[main_pool] returns notfound
++[exec] returns noop
Sending Access-Accept of id 139 to 127.0.0.1 port 36923
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.


Do you see anything wrong?
Thanks
ST











______________________________________________________________________________________

La presente comunicazione ed i suoi allegati e' destinata esclusivamente 
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non autorizzata
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di darne 
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the addressees. Any use, 
re-transmission or dissemination not authorized of it is prohibited. If you received 
this e-mail in error, please inform the sender immediately and delete all the material. 
(Rif. D.Lgs. 196/2003). Thank you.





More information about the Freeradius-Users mailing list