Ras-Pi的VPN设置

基于PPTP协议的VPN连接

前提条件:

  1. 拥有一台已经配置好的PPTP服务器
  2. 可以正常使用的任意Linux发行版(Debian为例)

操作方法:

  • 安装PPTP-Linux客户端
1
sudo apt-get install -y pptp-linux
  • 配置客户端信息
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
  • 启动和关闭
1
2
3
pptp 客户端操作: 
启动:pon pptpconf
关闭:poff pptpconf

Ras-Pi的VPN设置
https://jason-xy.github.io/2020/06/raspi-vpn/
作者
Jason Hsu
发布于
2020年6月18日
许可协议