首页
社区
课程
招聘
[原创]IPSec-tools(for android)服务器的搭建
发表于: 2018-2-27 11:01 3270

[原创]IPSec-tools(for android)服务器的搭建

2018-2-27 11:01
3270
几年前就说要放一篇ipsec-tools VPN的搭建,由于权益问题,一直搁置到今天,现在给大家补上。

一. IPSec-Tools简介....................................................................................................... 1

二.网络环境构筑............................................................................................................. 1

1.环境及软件包........................................................................................................... 1

2. 环境搭建.................................................................................................................. 2

三. 服务器软件安装......................................................................................................... 2

1.下载IPSec-tools以及安装准备工作.......................................................................... 2

2.编译安装ipsec-tools................................................................................................. 4

2. 安装xl2tpd............................................................................................................... 4

四. 配置为L2tp/PSK服务器............................................................................................ 4

1. 配置文件/etc/setkey.conf.......................................................................................... 4

2. 配置文件/etc/racoon/racoon.conf............................................................................. 5

3. 配置/etc/racoon/psk.txt............................................................................................. 5

4. 配置/etc/ppp/chap-secrets......................................................................................... 6

5. 配置/etc/ppp/options.xl2tpd...................................................................................... 6

6. 配置/etc/xl2tpd/xl2tpd.conf...................................................................................... 6

7. 测试......................................................................................................................... 7

五. 配置为L2tp/RSA服务器............................................................................................ 7

1. 配置文件/etc/setkey.conf.......................................................................................... 7

2. 配置文件/etc/racoon/racoon.conf............................................................................. 7

3. 拷贝证书.................................................................................................................. 8

4. 配置/etc/ppp/chap-secrets......................................................................................... 8

5. 配置/etc/ppp/options.xl2tpd...................................................................................... 9

6. 配置/etc/xl2tpd/xl2tpd.conf...................................................................................... 9

7. 配置转发表(可选).............................................................................................. 10

8. 测试....................................................................................................................... 10

附录................................................................................................................................ 0



[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回
//