1修改配置文件clients.conf文件●目录:/opt/kd/radius/2.1/etc/raddb
●进入clients.conf 在文件末尾增加如下配置
client 218.5.101.44 {
ipaddr=218.5.101.44
secret=qzradius
}
2修改字典dictionary.h3c文件
●目录/opt/kd/radius/2.1/share/freeradius
●增加属性
ATTRIBUTE H3C-ISP-ID 17 string
ATTRIBUTE H3C-Auth-Detail-Result 246 integer
ATTRIBUTE H3C-WEB-URL 250 string
3 修改modules.xml文件
●目录/opt/kd/radius/2.1/etc/raddb
●在文件开头增加如下配置
公网IPV4测试场景
mod_null
Pseudo-Request-Type=Accounting-Request
User-Name="22989911@qzadsl"
mod_null
User-Name="22989911@qzadsl"
Pseudo-Request-Type=Access-Request
Session-Timeout=604800
Idle-Timeout=3600
H3C-Input-Basic-Rate=4823450
H3C-Output-Basic-Rate=120586240
H3C-Input-Average-Rate=4823450
H3C-Output-Average-Rate=120586240
H3C-ISP-ID=public_ipv4
私网IPV4场景
mod_null
Pseudo-Request-Type=Accounting-Request
User-Name="22989911@qzadsl"
mod_null
User-Name="22989911@qzadsl"
Pseudo-Request-Type=Access-Request
Session-Timeout=604800
Idle-Timeout=3600
H3C-Input-Basic-Rate=4823450
H3C-Output-Basic-Rate=120586240
H3C-Input-Average-Rate=4823450
H3C-Output-Average-Rate=120586240
H3C-ISP-ID=private_ipv4
彩虹通道账号为欠费账号
mod_null
Pseudo-Request-Type=Accounting-Request
User-Name="22989911@qzadsl"
mod_null
User-Name="22989911@qzadsl"
Pseudo-Request-Type=Access-Request
Session-Timeout=604800
Idle-Timeout=3600
H3C-ISP-ID=auth_fail
H3C-Auth-Detail-Result=1
H3C-WEB-URL =":16905/btss_lt/htm/ep08.html"
彩虹通道输入密码错误
mod_null
Pseudo-Request-Type=Accounting-Request
User-Name="22989911@qzadsl"
mod_null
User-Name="22989911@qzadsl"
Pseudo-Request-Type=Access-Request
Session-Timeout=604800
Idle-Timeout=3600
H3C-ISP-ID=auth_fail
H3C-Auth-Detail-Result=2
H3C-WEB-URL
=":16905/btss_lt/htm/ep04.html"