Turn the droplet on DigitalOcean or Linode into a VPN server
- Create a VPS on DigitalOcean or Linode
- Select "Ubuntu 10.04 x64" in distributions
- [optional] Add SSH Keys when creating the droplet
- login to VPS
- run bellow script
# download scirpt
wget https://github.com/hunterzhang86/DigitalOceanVPN/archive/master.zip
# Extract the compressed file
apt-get install unzip
unzip master.zip
cd DigitalOceanVPN-master
# run the script
sh ./autoInstallVPN.sh
===================
此脚本用于在DigitalOcean或者Linode的服务器上自动创建VPN服务从而实现自动翻墙。
DigitalOcean的最低服务器费用为$5/月 ,而Linode的最低服务器费用为$10/月。
- 在DigitalOcean 或者 Linode上注册(自动获得10美元)并且创建一个Droplet(服务器)
- 选择镜像系统为"Ubuntu 10.04 x64"
- [推荐,但不必须] 在创建Droplet时添加SSH Keys
- 登录VPS
- 依次执行以下脚本
# 下载脚本
wget https://github.com/hunterzhang86/DigitalOceanVPN/archive/master.zip
# 解压压缩文件
apt-get install unzip
unzip master.zip
cd DigitalOceanVPN-master
# 执行autoInstallVPN.sh
sh ./autoInstallVPN.sh
- 注意,您也可以修改脚本中的以下命令设置VPN的用户名和密码。
echo "用户名 pptpd 密码 *" >> /etc/ppp/chap-secrets