传送门:搭建VPN

pptpd类型:

http://blog.atime.me/note/pptpd.html
http://www.xueqi.tk/?p=984
一键脚本:

wget https://github.com/halida/install_script/raw/master/pptp-debian.sh
sh ./pptp-debian.sh

L2TP/IPSec类型:

https://apple4us.com/2010/05/setting-up-l2tp-vpn-on-debian-ubuntu/
http://qiaodahai.com/debian-ubuntu-linux-vps-l2tp-ipsec-vpn.html

http://lowendtalk.com/discussion/22014/fully-automated-ipsec-l2tp-vpn-setup-with-libreswan
https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/
一键脚本:
wget https://gist.githubusercontent.com/hwdsl2/9030462/raw/8778e8db382492f342dcbd5f94f7d4b36521cebe/vpnsetup.sh
用法:

  1. Prepare your server with a fresh install of Ubuntu 14.04 or 12.04 LTS.
  2. Save the script as vpnsetup.sh on your VPS. Edit it in your favorite editor. From there, change the first line to #!/bin/bash, replace the three variables IPSEC_PSK, VPN_USER and VPN_PASSWORD as mentioned above, and change PRIVATE_IP=… and PUBLIC_IP=… to the actual IP addresses of your VPS. In case your VPS is run on its public IP directly with no private IP, just use that public IP for both.
  3. Save and exit the editor. Finally, run bash vpnsetup.sh to install.

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注