How do I setup a VPN connection to my EC2 VPC using pptpd?

How do I setup a VPN connection to EC2 using pptpd?

Launch a new instance in the VPC, to serve as the “VPN concentrator” server.

Install PPTPd:

# apt-get install pptpd

Edit /etc/pptpd.conf

option /etc/ppp/pptpd-options
logwtmp
bcrelay eth0
localip 192.168.0.1
remoteip 192.168.0.2-101

Edit /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client                server                  secret         IP addresses
user1@domain.com        access.domain.com   ThEPaSswOrD1        192.168.0.2
user2@consultant.net    access.domain.com   ThEPaSswOrD2        192.168.0.3
user3tablet@domain.com  access.domain.com   ThEPaSswOrD3        192.168.0.4
Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Twitter
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *