pptpd 源代码安装


wget http://www.sfr-fresh.com/linux/misc/pptpd-1.3.4.tar.gz
tar ..
./configure && make && make install
cp samples/pptpd.conf /etc/.
cp samples/options.pptpd /etc/ppp/.
cp samples/chap-secrets /etc/ppp/.
cp pptpd.init /etc/rc.d/init.d/pptpd
chmod +x /etc/rc.d/init.d/pptpd
/etc/rc.d/init.d/pptpd start
编辑/etc/sysctl.conf,看一下net.ipv4.ip_forward参数是不是1。
改完一个sysctl -p一下

iptables -A INPUT -p tcp –dport 1723 -j ACCEPT

iptables -A INPUT -p tcp –dport 47 -j ACCEPT

iptables -A INPUT -p gre -j ACCEPT

iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -o eth0 -j MASQUERADE

完成后输入/etc/init.d/iptables save保存,并且输入/etc/init.d/iptables restart重新启动。

我连接的时候出现了vpn 619错误,查了一下是路由器nat -t上pptp nat穿透选项的问题,但是我另外一个vpn是可以用的,所以我还需要研究一下为什么另外一个能用!

可能是服务器的机房路由器没有开启pptp的通过,我已经open ticket让他们开了,看看开了以后会不会就好了!

  1. No comments yet.
(will not be published)

  1. No trackbacks yet.