EC2, CentOS and PPTP
Continuing on my EC2 journey.. I wanted to allow my ec2 hosts to talk to a private network at the office. We use a Microsoft PPTP vpn — it’s the quickest way for me to set up the VPN.
I’ve been the Rightscale CentOS 5 AMI for my testing. In order to get my PPTP vpn connection up and running, I used pptpclient. To install it, I mostly followed their instructions.
- Install their yum repos with
# this isn't documented on their site
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/rhel5/\ pptp-release-current.noarch.rpm - Install the required RPM’s via yum
- Follow their Configure by Hand instructions
- The pon script wasn’t in the path. To start my VPN, I had to run
# of course, substitue $TUNNEL with whatever you
# set in the Configure by Hand steps
bash /usr/share/doc/ppp-2.4.4/scripts/pon $TUNNEL
- Set up any required routes
route add -net 1.2.3.4/24 gw $PPTP_GATEWAY
That’s it. The next step is to automate the processes further. I’m guessing there is a config file that could easily be added to /etc/sysconfig/network-scripts to make this happen.


Thanks man, you save my life!!!
July 25th, 2009 at 3:46 pmPretty nice tutorial. Did you have any success automating the process?
November 17th, 2009 at 4:07 am[...] http://www.cultofgary.com/2007/10/05/ec2-centos-and-pptp/ [...]
November 17th, 2009 at 8:32 pm