Skip to content

Instantly share code, notes, and snippets.

aioutecism / gist:2638bb9eaf9ffc13348c
Last active May 17, 2023 18:42
Set up a VPN Server (PPTP) on AWS and use it anywhere
View gist:2638bb9eaf9ffc13348c

Set up a VPN Server (PPTP) on AWS

  1. Create a EC2 instance using Ubuntu 14.04.
  2. In Secure Group Inbound Rules, add a SSH Rule(TCP, Port 22, and a Custom TCP Rule(TCP, Port 1723,
  3. Optional: Associate a Elastic IP with the instance.
  4. SSH into the instance.
  5. sudo apt-get install pptpd.
  6. sudo vim /etc/pptpd.conf. Uncomment localip and remoteip,
  7. sudo vim /etc/ppp/pptpd-options. Uncomment ms-dns and ms-wins. Change the IP to Google's DNS like this: