OK. I have in proxy.conf: realm with_ip { authhost = LOCAL accthost = LOCAL realm without_ip { authhost = LOCAL accthost = LOCAL Next I have mysql tables containing usernames: mysql> select * from radcheck; +----+----------+---------+--------------------+----+-------+ | id | username | realm | attribute | op | value | +----+----------+---------+--------------------+----+-------+ | 1 | user | with_ip | Cleartext-Password | := | ip | +----+----------+---------+--------------------+----+-------+ mysql> select * from radgroupcheck; +----+-------------+-----------+----+----------+ | id | groupname | attribute | op | value | +----+-------------+-----------+----+----------+ | 1 | withipgroup | Pool-Name | := | ip_pool | +----+-------------+-----------+----+----------+ mysql> select * from radippool; +----+-----------+-----------------+ | id | pool_name | framedipaddress | +----+-----------+-----------------+ | 1 | ip_pool | 10.0.0.1 | | 2 | ip_pool | 10.0.0.2 | +----+-----------+-----------------+ mysql> select * from radusergroup; +----------+---------+-------------+----------+ | username | realm | groupname | priority | +----------+---------+-------------+----------+ | user | with_ip | withipgroup | 1 | +----------+---------+-------------+----------+ That's good for ip-provided users and it works. But I need to understand how to configure the second user, the without-ip one. Arrigo -----Messaggio originale----- Da: freeradius-users-bounces+a.savio=bascom.it@lists.freeradius.org [mailto:freeradius-users-bounces+a.savio=bascom.it@lists.freeradius.org] Per conto di tnt@kalik.net Inviato: venerdì 12 dicembre 2008 17.02 A: FreeRadius users mailing list Oggetto: Re: freeradius and IP pools
For example:
user@with_ip
has to receive an IP from configured RADIPPOOL table
user@without_ip
has only to be authenticated (a user who log to a portal, for example).
How can I make it possibile? Where can I setup this behaviuor?
Create those realms as local realms in proxy.conf. Put: DEFAULT Realm == with_ip, Pool-Name:= your_pool_name in users file. Ivan Kalik Kalik Informatika ISP