this is the example of my dhcpd.conf

im using dhcp3 for ubuntu and freeradius 1.1.3 , here for example I have two ip pools one for users that belong to the group A and another one for the rest of the users, the class name is "A", here im using the MAC address to divide users, all the MACs with start with "00:04" belong to class "A" and they are gonna get ips from 150.151.6.86 - 90 the rest of the users gonna get from 80 -85

i wanna do something like that but with mysql, for example i have in radcheck table the user "bectizm" this user is gonna belong to group A so i want freeradius to auth the user ( freeradius already do this) and i want dhcp3 to recognize the same user "bectizm" that is stored in mysql and assing him and ip from the range 86-90

 

ddns-update-style none;

option domain-name-servers 150.6.2.105, 150.6.2.100;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 150.151.0.0 netmask 255.255.0.0 {
#range 150.151.6.60  150.151.6.65;
option subnet-mask 255.255.0.0;
option broadcast-address 150.151.255.255;
option routers 150.151.1.250;
option netbios-name-servers 150.151.1.132, 142.188.1.47;

 

class "A" {
match if substring (hardware, 1, 2) = 00:04;

#subclass "foo" 00:04;
# 00-04-23-54-45-0f;
}

pool {
deny members of "foo";
range 150.151.6.80 150.151.6.85;
max-lease-time 300;

}

pool {
allow members of "foo";
max-lease-time 28800;
range 150.151.6.86 150.151.6.90;

}

}


**************************
please if somebody can help me im gonna give him my life! =)

or any idea to do the same with the ip pools in freeradius? or with the tables in radius database of mysql?

regards and thanks in advance





 

 


Crea tu Space y compartelo con quién tu quieras Haz clic aquí Windows Live Spaces en Prodigy/MSN
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to