pptp

Linux命令行拨pptpd

# 设置vpn客户端
sudo pptpsetup --create myVPN --server x.x.x.x --username vpn --password 123456 --encrypt

# 拨号
sudo pppd call myVPN updetach

# 调试
sudo pppd call myVPN debug dump logfd 2 updetach

参考:http://askubuntu.com/questions/269399/pptp-vpn-cant-connect

Aug  8 02:59:17 localhost pppd[8659]: LCP: timeout sending Config-Requests

Edit /etc/ppp/options, enable option silent, then problem solved.

# With this option, pppd will not transmit LCP packets to initiate a
# connection until a valid LCP packet is received from the peer (as for
# the "passive" option with old versions of pppd).
silent