搭建L2TP ipsec vpn

L2TP ipsec vpn是PPTP VPN的升级版,似乎是企业专用的。本文的方法在Chicagovps的xen上通过,并能成功联网,而且速度还不错。

环境:CentOS 6,且支持ppp

1、安装基础包

$ yum install -y ppp iptables make gcc gmp-devel xmlto bison flex xmlto libpcap-devel lsof vim-enhanced
$ yum -y install nss-devel nspr-devel pkgconfig pam-devel libcap-ng-devel libselinux-devel curl-devel \
flex bison gcc make fipscheck-devel unbound-devel xmlto

2、下载安装openswan

#openswan is obsoleted by libreswan, trying to install libreswan-3.15-5.3.el6.x86_64 instead
$ yum install libreswan ppp

继续阅读