MasterofProject

Build the VPN server of the pptpd protocol on the AWS EC2 cloud host.

Original 2016 06 - 12 20:31:15

Registered account

  1. Landing on AWS website:
    Https://aws.amazon.com/cn/

  2. Click to create a free account

    Registration interface

  3. Create a cloud host

    Cloud host

  4. Select the rhel7.2 version

    RHEL

  5. Monitor port 1723

    One thousand seven hundred and twenty-three

  6. Download the private key

    private key

Connecting the cloud host

Window Edition
1. download and install putty-0.67-installer.msi
A plane ticket:Http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
2. open puttygen and convert the private key format to PPK
private key
Allfiles
3. Click Save private key to export the private key and save it as PPK format
4. open putty, connect the ec2-user@ public network IP, select the private key
Putty connection
Here's a picture description
After 5. connections are successful, execute sudo -i to switch to root users
Here's a picture description

Linux Edition
Modify the private key permissions, SSH to the cloud host. After the connection is successful, the sudo -i is switched to the root user

[root@localhost Desktop]# Chmod 400 test.pem
[root@localhost Desktop]# SSH -i "test.pem" ec2-user@ec2-52-24-90-64.us-west-2.compute.amazonaws.com
The authenticityOfHost'ec2-Fifty-two-Twenty-four-Ninety-Sixty-fourUs-west-TwoCompute.amazonaws.com (Fifty-two point two four.90.64"" 'can't be established.
ECDSA key fingerprintIs OneB:b8:ab:Seventy-five:EightA:08:Twenty-two: bc:Twelve: b4:Forty-seven:ZeroC:NineC:OneC:c5:NineA.
Are you sure you wantTo ContinueConnecting (yes/no)? Yes
Warning: Permanently added'ec2-Fifty-two-Twenty-four-Ninety-Sixty-fourUs-west-TwoCompute.amazonaws.com,Fifty-two point two four.90.64'(ECDSA)To The List OfKnown hosts.
Last login: Sun JunTwelve 08:06:Nineteen Two thousand and sixteen From Sixty-one point four eight.34.60
[ec2-user@ip-One hundred and seventy-two-Thirty-one-Forty-five-Fifty-three~]$sudo -i
[root@ip-One hundred and seventy-two-Thirty-one-Forty-five-Fifty-threeNext week#

Build VPN server side, RHEL 7.X version

  1. Check whether the host supports PPTP, and returns the result for yes to pass through:

    Modprobe ppp-compress-18 and echo yes

  2. Check to see if the TUN is opened and the result is cat: /dev/net/tun: File descriptor in bad
    State. It means passing.

    [root@ip-172-31-1-128 cat /dev/net/tun ~]#

  3. Install EPEL extension Yum source, availableHttp://dl.fedoraproject.org/pub/epel/7/x86_64/eFind the applicable version in it

    [root@ip-172-31-1-128 Yum install -y ~]#Http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm

  4. Install PPP, pptpd

    [root@ip-172-31-1-128 Yum -y install PPP pptpd ~]#

  5. Install iptables (if the system does not need to be installed)

    [root@ip-172-31-1-128 Yum install -y iptables ~]#

  6. Install VIM

    [root@ip-172-31-1-128 Yum install -y VIM ~]#

  7. Edit the /etc/pptpd.conf file, set up the VPN local IP and the IP address pool assigned to the remote VPN client:

    [root@ip-172-31-1-128 VIM /etc/pptpd.conf ~]#
    Localip 192.168.0.1
    Remoteip 192.168.0.234-238192.168.0.245

  8. Edit the /etc/ppp/options.pptpd file, set up the DNS assigned to the client, and use Google as follows:

    [root@ip-172-31-1-128 VIM /etc/ppp/options.pptpd ~]#
    Ms-dns 8.8.8.8
    Ms-dns 8.8.4.4

  9. Edit the /etc/ppp/chap-secrets file, set the account and password:

    [root@ip-172-31-1-128 VIM /etc/ppp/chap-secrets ~]#
    Account pptpd password *

  10. Edit the /etc/sysctl.conf file to open the route forwarding.

    [root@ip-172-31-1-128 VIM /etc/sysctl.conf ~]#
    Net.ipv4.ip_forward = 1
    [root@ip-172-31-1-128 sysctl -p ~]# # reload configuration file is the configuration file entry

  11. Start pptpd and set up to boot from start to start

    [root@ip-172-31-1-128 systemctl enable pptpd ~]#
    [root@ip-172-31-1-128 systemctl restart pptpd ~]#

  12. Set the iptables firewall forwarding rule, where eth0 is a network network card, and 192.168.0.0/24 is a network segment ready to use, consistent with step 7

    [root@ip-172-31-1-128 iptables -F ~]#
    [root@ip-172-31-1-128 iptables NAT -A POSTROUTING ~]# -t -s 192.168.0.0/24 -o eth0 -j MASQUERADE

Configuring the VPN client, win7 system

  1. Open the network sharing center and set up a new connection or network
    Here's a picture description
  2. Connect to the workspace
    Here's a picture description
  3. Create a new connection, use my internet connection (VPN)
    Here's a picture description
  4. Fill in the cloud host public network IP and custom VPN name
    Here's a picture description
  5. Account number and password, enter the account and password, consistent with the setting of step 9, the domain can not be filled. Because no protocol is set, click skip after connection, and then close
    Here's a picture description
  6. Back to the network sharing center, choose to change the adapter settings, find the VPN you just set up, right click to select the property
    Here's a picture description
  7. In the security option, change the VPN type to PPTP, and the point is saved
    Here's a picture description
  8. The menu bar network chooses to connect the VPN you create, enter the account password, wait for the connection
    Here's a picture description
    9. when the connection is successful, Google search can be used normally
    Here's a picture description

Amazon's AWS cloud builds a secure, simple (10 minute), free (one year) VPN service

Original address: Https://www.webdigi.co.uk/blog/2015/how-to-setup-your-own-private-secure-free-vpn-on-the-amaz...
  • U012611878
  • U012611878
  • 2017, 12 06, 2017, 23:17
  • Twenty thousand two hundred and ninety-one

Using AWS free EC2 for one year to build self - used VPN

Author: Raymain1944 Link: https://www.zhihu.com/question/29217339/answer/71826802 Source: knowing Copyright to the author all, reprinted please contact the author to get...
  • Zhaoyu106
  • Zhaoyu106
  • 18:01 in November 23, 2016
  • Twelve thousand seven hundred and twenty-seven

Build PPTP VPN with AWS free account

Original address: http://blog.banban.me/blog/2014/06/09/li-yong-awsmian-fei-zhang-hu-da-jian-vpn/ First of all, you have to have a letter...
  • Gudufeiyang
  • Gudufeiyang
  • 2016, 30 09, 2016, 14:49
  • Seven thousand five hundred and twenty-seven

Build IPsec/L2TP VPN service on AWS's EC2

1. apply for the Ubuntu server to apply for a foreign node's Ubuntu server on AWS, and then SSH login. 2. the automatic configuration of the SH script is provided using the automatic script configuration https://git.io/vpnsetup. Execute the following commands $...
  • Autoliuweijie
  • Autoliuweijie
  • 2017, 19 06, 2017, 18:06
  • Three thousand three hundred and seventeen

Amazon's free AWS set up a VPN pit

Today, I have arranged a VPN for myself. Some of the pits have wasted some time. This is a record of this, which is convenient for you to refer to. The configuration is very simple, but when I use the client, it's always `timed out`, the service is clear, the firewall is closed, but it's like not. 1. for a horse...
  • Qq_20881087
  • Qq_20881087
  • 16:59 in December 15, 2017
  • Four hundred and fifty-seven

How to build your own VPN server using AWS

First of all, recommend the EC2 of AWS. The newly opened account can get a certain time of free t2.micro virtual server access. You can find relevant information in aws.amazon.com. 1. open aws.amazon.com account number...
  • MichaelPengCN
  • MichaelPengCN
  • 2015, 14 09, 2015, 14:59
  • Thirty-one thousand three hundred and ninety-two

Building VPN through AWS

Mainly refer to the following Chinese tutorial, but the lack of tutorial editor EC2 inbound rules, reference 3. set the browser automatically switch see 41. Chinese tutorial: http://celerysoft.github.io/2016-01-15.html2...
  • Qianlong4526888
  • Qianlong4526888
  • 21:40 in October 24, 2017
  • Seven hundred and sixty-one

AWS set up VPN records

Reference https://aws.amazon.com/cn/getting-started/tutorials/launch-a-virtual-machine/ I chose CentOS, version 7.2, and then...
  • Yibei8811
  • Yibei8811
  • 2016, 10 08, 2016, 10:51
  • Five hundred and fifty-one

AWS hypothesis VPN (PPTP & L2TP) collation

Just for records and collation on AWS, it is assumed that the VPN server has helped me with the data, The environment uses the AWS EC2 Tokyo area, OS is Ubuntu, PPTP and L2TP each set up one, from the speed test, downloaded with 2Mbps left...
  • Nunogomes18
  • Nunogomes18
  • 06 December 2015 02:22
  • Eight thousand nine hundred and fifteen

Handlebars teach you to build a free VPN server with Amazon.

The first step is to register the Amazon cloud (registered directly into the second step) Before you start, you need to be ready: a credit card with a foreign currency payment function (registration needs, no buckles), Email address, phone (more convenient) Visit http://aws.amaz...
  • Dx01259
  • Dx01259
  • December 23, 2015 09:07
  • Thirty-seven thousand one hundred and seven
Content Report
Back to the top
Collector assistant
Bad information report
You report the article:Build the VPN server of the pptpd protocol on the AWS EC2 cloud host.
Reporting reasons:
Reasons for the following:

(at most only 30 words are allowed)