Linux下×××服务学习
最近在学习linux下搭建×××服务方面的知识,在原理及操作方面有必要总结一下;经研究发现Server端容易实现,linux下的client端配置起来较复杂,不过还好,终于发现了一个解决办法!
一、构建基于PPTP技术Linux ×××,原理方面的介绍,有人已经总结的很“精华”,参考
http://hi.baidu.com/bfbxiaopeng/blog/item/4d9688f64f8acb65ddc4749e.html
二、服务端(PPTPD)的简单配置
Poptop - The PPTP Server for Linux
http://poptop.sourceforge.net/dox/
如上地址为Poptop官方的地址,可到那里寻找最新的安装包和安装配置说明
安装pptpd(CentOS release 5.5,64bit)
wget http://poptop.sourceforge.net/yum/stable/rhel5Client/pptp-release-current.noarch.rpm |
配置说明(Red Hat pptpd HOWTO)
http://poptop.sourceforge.net/dox/redhat-howto.phtml
1.检查kernel是否支持MPPE
modprobe ppp-compress-18 && echo ok |
2.升级PPP到2.4.3或更高版本
yum --enablerepo=pptp-stable -y install ppp ppp-devel |
3.安装pptpd
yum --enablerepo=pptp-stable -y install pptpd |
4.配置如下文件,点击超链接查看配置示例
- /etc/modules.conf (only on Red Hat distributions released before 2001)
- /etc/pptpd.conf (especially the localip and remoteip tags, see the ROUTING CHECKLISTS in man pptpd.conf for more details)
- /etc/ppp/options.pptpd (especially ensure the MPPE options match your PPP version),
- /etc/ppp/chap-secrets (add a username and password for a client to log in with),
5.启动服务
service pptpd start
三、客户端的配置
http://pptpclient.sourceforge.net/howto-fedora-core-6.phtml
yum --enablerepo=pptp-stable -y install pptpconfig |
我加了一条路由在服务器中,可根据自己的环境添加,“Routing HOWTO”请参考如下链接
http://pptpclient.sourceforge.net/routing.phtml
Diagnosis HOWTO
http://pptpclient.sourceforge.net/howto-diagnosis.phtml
转载于:https://blog.51cto.com/dadaru/465864