framed-ip-address based on nas-ip-address

power159 power159 at gmail.com
Thu Mar 18 08:21:51 CET 2010


Hi ,
As there was a mistake in my previous email title and as I had big
improvement in processing my problem I am sending a new email .  As I said
in previous email I want to configure freeradius to reply different
framed-ip-addresses based on nas servers .

I found following email in the archive which helped a lot :
http://lists.cistron.nl/pipermail/freeradius-users/2009-January/msg00630.html

the only problem that I have is if user is membership of 2 groups .
freeradius is processing none of them ! even if both are matching ! but if I
remove one of groups its working without any problem ! and assigning ip from
ip pool

read-groups is on

here is my tables :
select * from radcheck;
+----+----------+---------------+----+--------+
| id | username | attribute     | op | value  |
+----+----------+---------------+----+--------+
|  4 | test1    | User-Password | := | 123456 |
+----+----------+---------------+----+--------+


select * from radgroupcheck;
+----+-----------+----------------+----+-------------+
| id | groupname | attribute      | op | value       |
+----+-----------+----------------+----+-------------+
|  1 | group1    | Nas-IP-Address | == | 192.168.1.5 |
|  2 | group1    | Pool-Name      | := | pool1       |
|  3 | group2    | Nas-IP-Address | == | 192.168.1.6 |
|  4 | group2    | Pool-Name      | := | pool2       |
+----+-----------+----------------+----+-------------+


select * from radusergroup;
+----------+-----------+----------+
| username | groupname | priority |
+----------+-----------+----------+
| test1    | group1    |        0 |
| test1    | group2    |        0 |
+----------+-----------+----------+


select * from radippool;
+----+-----------+-----------------+--------------+-----------------+------------------+-------------+----------+----------+
| id | pool_name | framedipaddress | nasipaddress | calledstationid |
callingstationid | expiry_time | username | pool_key |
+----+-----------+-----------------+--------------+-----------------+------------------+-------------+----------+----------+
|  1 | pool1     | 90.90.90.1      |              |
|                  | NULL        |          | 0        |
|  2 | pool1     | 90.90.90.2      |              |
|                  | NULL        |          |          |
|  5 | pool2     | 91.90.90.1      |              |
|                  | NULL        |          | 0        |
|  6 | pool2     | 91.90.90.2      |              |
|                  | NULL        |          |          |
+----+-----------+-----------------+--------------+-----------------+------------------+-------------+----------+----------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100318/1eb62b24/attachment.html>


More information about the Freeradius-Users mailing list