- 26
- 0
- 约6.22千字
- 约 7页
- 2016-12-03 发布于江苏
- 举报
Linux上Radius+PPPoe服务器的安装
一、基本环境
所用平台为RedHat Enterprise AS4(不保证其他平台有些差异,另外命令也许有些参数也不一定相同C devel
C++ devel扩展包
Openssl(FreeRadius需要openssl支持)
mysql
mysql-server
mysql-devel(这个包是必须得装的,很多由rpm包安装的mysql默认是没有这个
包的,如果没有这个包最后Radius是启动不了的)
mysql-client
如果想用到web界面管理,还需要安装
Apache
php
php-mysql
mod-auth-mysql
另外重点准备如下
wget /pub/ppp/ppp-2.4.4.tar.gz
wget /penguin/pppoe/rp-pppoe-3.8.tar.gz
wget /pub/radius/ freeradius-1.1.0.tar.gz
把上述的压缩文件都考入根目录下
二、安装rp-pppoe部分
1.安装 ppp-2.4..tar.gz
#cd
# tar zxvf php-2.4.4.tar.gz
# cd ppp-2.4.4
# ./configure
# make
# make install
2.安装rp-pppoe?# tar zxvf rp-pppoe-3.8.tar.gz
# cd rp-pppoe-3.8/src
# ./configure --prefix=/usr/local --enable-plugin=../../ppp-2.4.4(刚刚ppp-2.4.的路径)# make
# make install
3.在此处可先做PPPOE-SERVER的测试配置: # cat /etc/ppp/options
lock
crtscts
nobsdcomp
nodeflate
nopcomp
# cat /etc/ppp/pppoe-server-options
auth
require-chap
default-mru
default-asyncmap
lcp-echo-interval 60
lcp-echo-failure 5
ms-dns 8 (本地DNS服务器1,可调整)ms-dns xxx.xxx.xxx.xxx (本地DNS服务器2,可调整)noipdefault
noipx
nodefaultroute
noproxyarp
noktune
logfile /var/log/pppd.log
# cat /etc/ppp/chap-secrets?????? abc?? *?? def?? *??? 测试启动服务:??????# /usr/local/sbin/pppoe-server -k -I eth0 -L -R -N 20??????// -k 为内核模式??????// -I 为指定接入的网络设备??????// -L 本地IP??????// -R 远程起始IP??????// -N 最大支持连接数??????在windows下用拨号程序直接拨号即可,用户名密码为上。没意外情况,将会很顺利此步通过,即可接着下面的。复制模块# cp –rf /usr/local/lib/pppd/2.4.4/* /etc/ppp/plugins
# mkdir /etc/radiusclient
# cp –rf ppp-2.4.4/pppd/plugins/radius/etc/* /usr/local/etc/radiusclient
# cat /etc/ppp/options
lock
crtscts
nobsdcomp
nodeflate
nopcomp
plugin /etc/ppp/plugins/radius.so //注意pppd安装时radius.so的位置
radius-config-file /usr/local/etc/radiusclient/radiusclient.conf
#cat /etc/ppp/radius/radiusclient.conf
auth_order radius
login_tries 4
login_timeout 60
nologin /etc/nologin
issue /etc/ppp/radius/issue
authserver radius_server:1812
acctserver radius_server:1813
servers /etc/ppp/radius/servers
dictionary /etc/ppp/radius/dictionary
login_radius /usr/
原创力文档

文档评论(0)