
基于PPTP协议的VPN连接
前提条件:
- 拥有一台已经配置好的PPTP服务器
- 可以正常使用的任意Linux发行版(Debian为例)
操作方法:
- 安装PPTP-Linux客户端
sudo apt-get install -y pptp-linux
- 配置客户端信息
sudo vim /etc/ppp/peers/pptpconf
// 添加如下内容:(自行更改IP, name, password)
pty "pptp xxx.xxx.xxx.xxx --nolaunchpppd"
name xxx
password xxx
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns
- 启动和关闭
pptp 客户端操作:
启动:pon pptpconf
关闭:poff pptpconf