insert into radusergroup (UserName,GroupName) values ('fredf','dynamic');
insert into radusergroup (UserName,GroupName) values ('barney','static');
insert into radusergroup (UserName,GroupName) values ('dialrouter','netdial');
insert into radcheck (UserName,Attribute,Value,Op) values ('fredf','Password','wilma','==');
insert into radcheck (UserName,Attribute,Value,Op) values ('barney','Password','betty','==');
insert into radcheck (UserName,Attribute,Value,Op) values ('dialrouter','Password','dialup','==');
insert into radgroupcheck (GroupName,Attribute,Value,Op) values ('dynamic','Auth-Type','Local',':=');
insert into radgroupcheck (GroupName,Attribute,Value,Op) values ('static','Auth-Type','Local',':=');
insert into radgroupcheck (GroupName,Attribute,Value,Op) values ('netdial','Auth-Type','Local',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('barney','Framed-IP-Address','192.168.103.13',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('dialrouter','Framed-IP-Address','192.168.103.13',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('dialrouter','Framed-IP-Netmask','255.255.255.255',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('dialrouter','Framed-Routing','Broadcast-Listen',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('dialrouter','Framed-Routing','192.168.103.0 255.255.255.248',':=');
insert into radreply (UserName,Attribute,Value,Op) values ('dialrouter','Idle-Timeout','900',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('dynamic','Framed-Compression','Van-Jacobsen-TCP-IP',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('dynamic','Framed-Protocol','PPP',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('dynamic','Service-Type','Framed-User',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('dynamic','Framed-MTU','1500',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('static','Framed-Protocol','PPP',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('static','Service-Type','Framed-User',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('static','Framed-Compression','Van-Jacobsen-TCP-IP',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('netdial','Framed-Protocol','PPP',':=');
insert into radgroupreply (GroupName,Attribute,Value,Op) values ('netdial','Service-Type','Framed-User',':=');
测试
radtest barney betty localhost 1812 testing123
在实际配置当中,要检查clients.conf,需要把客户端的地址加到配置文件当中,要不radius服务器会拒绝
,另外,usergroup表实际应该是radusergroup组,要不也不能成功
初始化最主要的是radcheck、radgroupcheck、radusergroup三张表,radgroupreply表中记录是在收到认证信息后的回包的返回信息