pptpd的另一种安装方法(rpm bulid)

pptpd项目地址:http://sourceforge.net/projects/poptop/files/pptpd/


  1. 下载pptpd1.3.4

    1. wget http://downloads.sourceforge.net/project/poptop/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpoptop%2Ffiles%2Fpptpd%2Fpptpd-1.3.3%2F&ts=1291466902&use_mirror=nchc

  2. yum install rpm-build

  3. rpmbuild -ta pptpd-1.3.4.tar.gz

  4. 生成的rpm文件在rpmbuild/RPMS里面找

  5. rpm -ivh pptpd-1.3.4-1.x86_64.rpm

  6. service pptpd start

 然后配置pptpd的conf,相关文档网上许多(可参照张宴的文章
再来配置网络:
vim /etc/sysctl.conf 
修改 net.ipv4.ip_forward=1
sysctl -p
最后修改防火墙:
/sbin/service iptables start/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.9.0/24 -j MASQUERADE
文章分类: 
文章标签: