Use AWS EC2 to build a PPTP VPN server and a squid proxy server. This is a deploy script of shell. First apply an aws account and create an ec2 instance(choose region in Tykyo,for speed).
To do as "Connecting to Linux/Unix Instances from Windows Using PuTTY" http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
yum update
sudo passwd root
wget https://raw.githubusercontent.com/leoshan/ec2pptpvpn/master/pptpd.sh chmod 744 pptpd.sh ./pptpd.sh
TCP 1723 0.0.0.0/0
server: Public DNS or Public IP account & password: use the name and password in /etc/ppp/chap-secrets secret rank: None (No use OpenSSL) or Auto (Use OpenSSL command create password) Sent all flows: Yes
- yum install squid
- vim /etc/squid/squid.conf Modify http_access deny all TO http_access allow all
- Check parse is ok squid -k parse
- initial cache squid -z
- chkconfig squid on
- service squid start
- verify squid service, see 3128 port is licening netstat -ntpl
IP: 192.168.240.1 (The localip of pptp vpn config, also is the gateway) Port: 3128 (Don't use set the port in secret group)