如果采用文本文件的话,可以使用不同的文本文件,如果采用数据库的话,可以采用数据库配置对应的各种个性化的配置,包括NAS等信息
可以使用这种方式进行定义服务器的端口设置,而不需要到radiusd.conf里面进行相应地配置
-
server second{
-
listen{
-
ipaddr = *
-
port = 1645
-
type = auth
-
}
-
-
listen{
-
ipaddr = *
-
port = 1646
-
type = acct
-
}
-
#
-
# Security settings. Take a User-Name, and do some simple
-
# checks on it, for spaces and other invalid characters. If
-
# it looks like the user is trying to play games, reject it.
-
#
-
# This should probably be enabled by default.
-
#
-
# See policy.conf for the definition of the filter_username policy.
-
#
-
# filter_username
-
-
#
-
# The preprocess module takes care of sanitizing some bizarre
-
# attributes in the request, and turning them into attributes
-
# which are more standard.
-
#
-
# It takes care of processing the 'raddb/hints' and the
-
# 'raddb/huntgroups' files.
-
preprocess
-
-
……
-
-
}
同时数据库也可以直接写到新的sql文件中,比如 second.sql.conf
甚至其包含的下一级别的文件 dialup.sql 也可以单独的进行定义,这样才会定制更加个性化的配置文件,能够做到服务的唯一性
还有,即使不在 radiusd.conf 中表示对应的 virtual_server = second 也是可以正常启动虚拟服务的,因为只要在 site-enabled 目录下存在的配置文件就会被启用
阅读(2130) | 评论(3) | 转发(0) |