Страница 1 из 1

freeradius + динамический пул

Добавлено: 2010-03-23 17:23:40
Zohan
mpd5.5
freeradius-mysql-1.1.8

Есть динамический пул адресов и статический.
Нужно чтобы тем людям у которых не прописан явно адрес статически в radreply(Framed-IP-Address) выдавался адрес из динамического пула.
Вроды бы freeradius такое умеет :)

radiusd.conf

Код: Выделить всё

ippool main_pool {

		#  range-start,range-stop: The start and end ip
		#  addresses for the ip pool
		range-start = 1**.***.*.1
		range-stop = 1**.**.*.254

		#  netmask: The network mask used for the ip's
		netmask = 255.255.248.0

		#  cache-size: The gdbm cache size for the db
		#  files. Should be equal to the number of ip's
		#  available in the ip pool
		cache-size = 1021

		# session-db: The main db file used to allocate ip's to clients
		session-db = ${raddbdir}/db.ippool

		# ip-index: Helper db index file used in multilink
		ip-index = ${raddbdir}/db.ipindex

		# override: Will this ippool override a Framed-IP-Address already set
		override = no

		# maximum-timeout: If not zero specifies the maximum time in seconds an
		# entry may be active. Default: 0
		maximum-timeout = 0
	}


...

    #  Return an address to the IP Pool when we see a stop record.
    main_pool
#    sqlippool

...

post-auth {
    #  Get an address from the IP Pool.
    main_pool
#    sqlippool
В самом начале users добавил:

Код: Выделить всё

DEFAULT Pool-Name := main_pool
        Fall-Through = Yes

но все равно после авторизацииб radiusd -X:

Код: Выделить всё

modcall: entering group post-auth for request 0
rlm_ippool: Could not find Pool-Name attribute.
  modcall[post-auth]: module "main_pool" returns noop for request 0
Кто делал такое?

Re: freeradius + динамический пул

Добавлено: 2010-05-16 20:21:22
Alex Keda
как успехи? =)