搭建基于accel-ppp的VPN服务器
原版英文介绍如下
Welcome to the ACCEL-PPP Open Source ProjectACCEL-PPP is a high performance VPN server application for linux.
Its goal is aggregation of various popular VPN techniques to a single application.
There are many open source projects which provides VPN services,
but they are specialized to a specific VPN technique: only PPPoE, only PPtP, only L2TP.
And you have to learn, configure and manage each one separately to build multi-service VPN server.
With ACCEL-PPP you have all-in-one with single configuration, single management, single monitoring.
?
来自http://sourceforge.net/apps/trac/accel-ppp/wiki
?
由于accel-ppp需要内核支持,并且内核版本在2.6.25以上
ubuntu 10.04 11.10内核版本都高于2.6.25
?
所需依赖软件如下
Requirementsmodern linux distributionkernel-2.6.25 or latercmake-2.6 or laterlibnl-2.0 or later (for builtin shaper)libcrypto-0.9.8 or later (openssl-0.9.8)libpcrenet-snmp-5.x (for snmp)?
以ubuntu 11.10 server为例,记录一下安装过程
?
一、安装依赖软件?
?
要使用/etc/chap-secrets验证还是radius验证,在一开始的[modules]选择响应的即可
?
四、启动accel-ppp需要先加载内核模块,执行
写道modprobe l2tp_ppp?
需要内核编译l2tp_core和l2tp_ppp
?
开启转发,nat转换
写道iptables -A POSTROUTING -t nat -s 172.20.0.0/24 -j MASQUERADE?
命令行执行
写道accel-pppd -d -c /etc/accel-ppp.conf?
即可,-d是开在后台,去掉此参数即是开在前台,但是开前台也没什么log输出
?
启动后,分别监听在tcp 1723和udp 1701端口 (配置文件只开启pptp、l2tp)
?