首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > OpenLDAP+FreeRADIUS+MySQL+RP-PPPOE 构建PPPOE服务器
【标  题】:OpenLDAP+FreeRADIUS+MySQL+RP-PPPOE 构建PPPOE服务器
【关键字】:OpenLDAP+FreeRADIUS+MySQL+RP-PPPOE,PPPOE
【来  源】:http://www.cublog.cn/u/6542/showart.php?id=179919

OpenLDAP+FreeRADIUS+MySQL+RP-PPPOE 构建PPPOE服务器

经过几天的奋战,总算搞定这个PPPOE服务器。

基本环境:

   Host:       LFS-6.x
   openLDAP:   2.3.19
   MySQL:      5.0.24
   rp-pppoe:   3.8
   freeradius: 1.1.3
   ppp:        2.4.4 (with mppe-mppc patched)
   kernel:     2.6.18 (built-in mppe-mppc support)
  

简介:
   rp-pppoe 作为 PPPOE 服务器,通过 radius 模块,将用户验证交给 freeradius 来处理, freeradius 又使用 LDAP 来保存拨号用户的验证信息(用户名/密码之类的)、MySQL 来存储拨号相关信息(日志记账,如连接时间,流量等)。

步骤:

   至于上述软件的编译就不提了,网上到处都可以找到

配置:

#### ppp: (/etc/ppp/options) ####################################
lock
crtscts
nobsdcomp
nodeflate
nopcomp
debug

plugin /etc/ppp/plugins/radius.so
radius-config-file /etc/radiusclient/radiusclient.conf
#################################################################

#### rp-pppoe: (/etc/ppp/pppoe-server) ##########################
auth
require-pap
default-mru
default-asyncmap
lcp-echo-interval 10
lcp-echo-failure 3
ms-dns 211.161.159.3
ms-dns 211.161.159.5
noipdefault
noipx
defaultroute
noproxyarp
noktune
10.0.0.1:10.0.0.200
netmask 255.255.255.255
logfile /var/log/pppoe.log
#################################################################

#### ldap 数据库 ################################################
# test, pppoe, example.com
dn: cn=test,o=pppoe,dc=example,dc=com
cn: test
objectClass: radiusProfile
radiusAuthType: Local
userPassword: 123456
radiusServiceType: Framed-User
radiusFramedProtocol: PPP
radiusFramedIPAddress: 10.0.0.2
radiusFramedIPNetmask: 255.255.25.0
#################################################################

#### radiusd.conf ###############################################
modules {
   ldap {
server = "localhost"
identity = "cn=Manager,dc=example,dc=com"
password = secret
basedn = "o=pppoe,dc=example,dc=com"
filter = "(cn=%{Stripped-User-Name:-%{User-Name}})"
base_filter = "(objectclass=radiusProfile)"
#access_attr = "dialupAccess"
password_attribute = userPassword
}
}

authorize {

# chap
# mschap
# files
ldap
}

authenticate {
Auth-Type LDAP {
ldap
}
}

accounting {
sql
}
#################################################################

MySQL 数据库表和 LDAP 的schema文件可以在freeradius的源代码目录下的 doc/examples
下面找到。
对信息安全专家的要求(zz):【上一篇】
所爱:【下一篇】
【相关文章】
  • PPPOE + FreeRADIUS + MySQL 配置记录
  • 架设PPPoEServer笔记
  • 架设PPPoEServer笔记(转自system.cublog.cn )
  • PPPOE + FreeRADIUS + MySQL 配置记录(转自本blog的)
  • PPPOE + FreeRADIUS + MySQL+vlan
  • 搭建pppoe-server
  • FTTB+NAT+DHCP+pppoe+CBAC+vpn client+AAA
  • PPPoE验证与利用
  • debian下采取dhcp或pppoe上网,自动修改/etc/resolv.conf的解决方法
  • PPP over Ethernet(PPPoE)协议技术资料
  • 【随机文章】
  • WEBLOGIC Server 的异常高 CPU 占用率
  • 400查询优化--持续补充中
  • PhotoImpact制作破裂的围墙
  • 如何mount ISO文件
  • MySQL重定位数据目录的内容
  • 对C#委托及事件委托的理解
  • 使用JavaScript写的操作系统和输入法程序
  • 常见Visual C++开发使用问答(上)
  • 妙用Windows XP的文件检查器设置系统
  • 深入PXE无盘网络-命令详解(2)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.