linux下配置pptp 客户端

安装自带ppp / libpcap
安装pptp http://pptpclient.sourceforge.net/

命令行配置:
pptpsetup --create ***tovps --server ***.zhangjianfeng.com --username jeffrey --password 123456 --encrypt

cat /etc/ppp/peers/***tovps
pty "pptp ***.zhangjianfeng.com --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name jeffrey
remotename ***tovps
ipparam ***tovps
require-mppe-128

cat /etc/ppp/chap-secrets
# added by pptpsetup for ***tovps
jeffrey ***tovps "123456" *

cp /usr/share/doc/ppp-2.4.4/scripts/poff /usr/sbin/
cp /usr/share/doc/ppp-2.4.4/scripts/pon /usr/sbin/
chmod +x /usr/sbin/pon /usr/sbin/poff
pon ***tovps #连接
poff #断开×××
route add -net 0.0.0.0 dev ppp0 #添加路由