Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
0ad1e3d8
A
accel-ppp
项目概览
Achou.Wang
/
accel-ppp
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
accel-ppp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0ad1e3d8
编写于
12月 08, 2010
作者:
K
Kozlov Dmitry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.3.0 release
上级
30924d60
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
22 addition
and
13 deletion
+22
-13
README
README
+21
-12
accel-pptpd/CMakeLists.txt
accel-pptpd/CMakeLists.txt
+1
-1
未找到文件。
README
浏览文件 @
0ad1e3d8
...
@@ -19,11 +19,12 @@ Features
...
@@ -19,11 +19,12 @@ Features
7. Supported authentication types: PAP, CHAP (md5), Microsoft CHAP Extentions (including version 2), not supported - EAP
7. Supported authentication types: PAP, CHAP (md5), Microsoft CHAP Extentions (including version 2), not supported - EAP
8. Supported MPPE
8. Supported MPPE
9. Compression is not supported
9. Compression is not supported
10. Extensible logging engine with per session logging support, implemented log to file and log to PostgreSQL targets
10. Extensible logging engine with per session logging support, implemented log to file
, log to remote host
and log to PostgreSQL targets
11. Extensible user/password database, implemented Radius,
chap-secret
sources
11. Extensible user/password database, implemented Radius,
pppd compatible chap-secrets
sources
12. Extensible IP pool, implemented Radius and static pools
12. Extensible IP pool, implemented Radius
, chap-secrets
and static pools
13. Supported pppd compatible ip-up/ip-down scripts
13. Supported pppd compatible ip-up/ip-down scripts
14. Builtin tbf shaper manager
14. Builtin tbf shaper manager
15. Command line interface via telnet
Requirment
Requirment
...
@@ -31,22 +32,29 @@ Requirment
...
@@ -31,22 +32,29 @@ Requirment
1. modern linux distribution
1. modern linux distribution
2. kernel-2.6.25 or later
2. kernel-2.6.25 or later
4. cmake-2.6 or later
4. cmake-2.6 or later
5. libnl-2.0 or probably later (required for
l2tp and
builtin shaper)
5. libnl-2.0 or probably later (required for builtin shaper)
Compilation and instalation
Compilation and instalation
-----------
-----------
Make sure you have configured kernel headers in /usr/src/linux,
Make sure you have configured kernel headers in /usr/src/linux,
or specify other location via KDIR.
or specify other location via KDIR.
1. cd /path/to/accel-pptp-1.
1
1. cd /path/to/accel-pptp-1.
3.0
2. mkdir build
2. mkdir build
3. cd build
3. cd build
4. cmake [-DBUILD_DRIVER=TRUE] [-DKDIR=/usr/src/linux] [-DCMAKE_INSTALL_PREFIX=/usr/local] [-DCMAKE_BUILD_TYPE=Debug] [-DLOG_PGSQL=TRUE] [-DSHAPER=TRUE] ..
4. cmake [-DBUILD_DRIVER=FALSE] [-DKDIR=/usr/src/linux] [-DCMAKE_INSTALL_PREFIX=/usr/local] [-DCMAKE_BUILD_TYPE=Release] [-DLOG_PGSQL=FALSE] [-DSHAPER=FALSE] [-DRADIUS=TRUE] ..
Please note that the double dot record in the end of the command is essential. You'll get error if you miss it.
Please note that the double dot record in the end of the command is essential. You'll probably get error or misconfigured sources if you miss it.
BUILD_DRIVER, KDIR, CMAKE_INSTALL_PREFIX, CMAKE_BUILD_TYPE, LOG_PGSQL, SHAPER are optional,
BUILD_DRIVER, KDIR, CMAKE_INSTALL_PREFIX, CMAKE_BUILD_TYPE, LOG_PGSQL, SHAPER, RADIUS are optional,
but while pptp is not present in mainline kernel you probably need BUILD_DRIVER.
But while pptp is not present in mainline kernel you probably need BUILD_DRIVER.
5. make
For example:
6. make install
cmake -DBUILD_DRIVER=TRUE ..
will configure sources to build pptp driver, search kernel headers at /usr/src/linux, install to /usr/local,
build with no debug, pgsql and shaper support, build with radius support.
5. If you want to use chap-secrets for authentication purpose then you need to disable radius support, configure as following:
cmake -DBUILD_DRIVER=TRUE -DRADIUS=FALSE ..
of course you can include additional options if needed.
6. make
7. make install
Configuration
Configuration
...
@@ -56,7 +64,8 @@ read man accel-pptp.conf
...
@@ -56,7 +64,8 @@ read man accel-pptp.conf
Warning !!!
Warning !!!
-----------
-----------
1. This driver conflicts with ip_gre driver (in kernel), so make sure that ip_gre is not built-in or loaded at run time.
1. The pptp driver conflicts with ip_gre driver (in kernel), so make sure that ip_gre is not built-in or loaded at run time
(don't matter if you have 2.6.37 or later kernel).
2. Never mix connections of accel-pptp and original pptpd, before starting accel-pptp make sure that no connections
2. Never mix connections of accel-pptp and original pptpd, before starting accel-pptp make sure that no connections
of original pptpd exists.
of original pptpd exists.
...
...
accel-pptpd/CMakeLists.txt
浏览文件 @
0ad1e3d8
...
@@ -23,7 +23,7 @@ IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
...
@@ -23,7 +23,7 @@ IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
)
)
STRING
(
STRIP
${
ACCEL_PPTP_VERSION
}
ACCEL_PPTP_VERSION
)
STRING
(
STRIP
${
ACCEL_PPTP_VERSION
}
ACCEL_PPTP_VERSION
)
ELSE
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
ELSE
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
SET
(
ACCEL_PPTP_VERSION
${
CMAKE_HOME_DIRECTORY
}
/
"1.3
-rc
"
)
SET
(
ACCEL_PPTP_VERSION
${
CMAKE_HOME_DIRECTORY
}
/
"1.3
.0
"
)
ENDIF
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
ENDIF
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
ADD_DEFINITIONS
(
-DACCEL_PPTP_VERSION=
"
${
ACCEL_PPTP_VERSION
}
"
)
ADD_DEFINITIONS
(
-DACCEL_PPTP_VERSION=
"
${
ACCEL_PPTP_VERSION
}
"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录