Chinaunix首页 | 论坛 | 博客
  • 博客访问: 868365
  • 博文数量: 66
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2071
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-04 15:22
个人简介

从事IT相关工作近10年,获得《网络规划师》《信息系统项目管理师》《系统分析师》、Cisco等认证,对网络和操作系统有较深理解,对认证计费系统和虚拟化技术有深入研究。

文章分类

全部博文(66)

文章存档

2019年(4)

2018年(1)

2015年(2)

2014年(16)

2013年(43)

分类: 网络与安全

2013-08-08 14:12:05

如果采用文本文件的话,可以使用不同的文本文件,如果采用数据库的话,可以采用数据库配置对应的各种个性化的配置,包括NAS等信息


可以使用这种方式进行定义服务器的端口设置,而不需要到radiusd.conf里面进行相应地配置



点击(此处)折叠或打开

  1. server second{
  2.         listen{
  3.                 ipaddr = *
  4.                 port = 1645
  5.                 type = auth
  6.                 }

  7.         listen{
  8.                 ipaddr = *
  9.                 port = 1646
  10.                 type = acct
  11.                 }
  12.         #
  13.         # Security settings. Take a User-Name, and do some simple
  14.         # checks on it, for spaces and other invalid characters. If
  15.         # it looks like the user is trying to play games, reject it.
  16.         #
  17.         # This should probably be enabled by default.
  18.         #
  19.         # See policy.conf for the definition of the filter_username policy.
  20.         #
  21. # filter_username

  22.         #
  23.         # The preprocess module takes care of sanitizing some bizarre
  24.         # attributes in the request, and turning them into attributes
  25.         # which are more standard.
  26.         #
  27.         # It takes care of processing the 'raddb/hints' and the
  28.         # 'raddb/huntgroups' files.
  29.         preprocess

  30. ……

  31. }



同时数据库也可以直接写到新的sql文件中,比如 second.sql.conf
甚至其包含的下一级别的文件 dialup.sql 也可以单独的进行定义,这样才会定制更加个性化的配置文件,能够做到服务的唯一性


还有,即使不在 radiusd.conf 中表示对应的 virtual_server = second 也是可以正常启动虚拟服务的,因为只要在 site-enabled 目录下存在的配置文件就会被启用
阅读(2069) | 评论(3) | 转发(0) |
给主人留下些什么吧!~~

ning_lianjie2013-10-22 09:07:02

哦,原来是这样,呵呵.

回复 | 举报

ning_lianjie2013-10-09 22:00:11

有没有关于" freeradius 虚拟服务器"的介绍,单独看一篇博客,完全不知道是什么?