1)下载安装DKMS包
wget http://poptop.sourceforge.net/yum/stable/packages/dkms-2.1.1.0-1.noarch.rpm
rpm –ivh dkms-2.1.1.0-1.noarch.rpm
2)下载安装ppp内核模块
wget http://poptop.sourceforge.net/yum/stable/packages/ kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
rpm -ivh kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
3)下载安装ppp包
wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.4-14.1.rhel5.i386.rpm
rpm –ivh ppp-2.4.4-14.1.rhel5.i386.rpm
4)下载安装pptpd包
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm
rpm –ivh pptpd-1.3.4-2.rhel5.i386.rpm
5)配置主配置文件
vi /etc/pptpd.conf
#ppp /usr/sbin/pppd
#option /etc/ppp/options.pptpd//去掉#号
#debug//去掉#号
localip 192.168.0.104
remoteip 192.168.0.234-238
6)配置账号文件
vi /etc/ppp/chap-secrets
# clientserversecretIP addresses
lixiongpptpd12345678192.168.0.65
7)启动pptpd服务
service pptpd start
8)查看pptpd使用的1723端口侦听
netstat –tnpl |grep 1723
tcp 00 0.0.0.0:17230.0.0.0:*LISTEN 5490/pptpd
9)修改路由转发iptables -I INPUT -p tcp --dport 47 -j ACCEPT
iptables -I INPUT -p gre -j ACCEPT
10)设置vpn客户端.
?