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 …

Continue reading ‘How do I setup a VPN connection to my EC2 VPC using pptpd?’ »

How do I launch an EC2 instance in VPC from the command line?

Before launching the instance, we need to configure several parameters, and note their values: Look up the allocation ID of the new Elastic IP address. Look up the subnet-id of the subnet you want to use (subnet-xxxxxxxx): root@puppet:~# aws ec2 describe-subnets –output=text –filters=”Name=cidrBlock,Values=172.16.1.0/24″ SUBNETS us-west-2a 249 172.16.1.0/24 False False available subnet-00000000 vpc-00000000 TAGS Name 172.16.1.0 …

Continue reading ‘How do I launch an EC2 instance in VPC from the command line?’ »

How can I add a resizable disk to my EC2 server?

Discussion EC2 Volumes CANNOT be resized. If you require the flexibility of resizing your mounted Linux data disks on-the-fly, while the server is running, you can use Linux’s “built-in” LVM subsystem to make a concatenated disk composed of multiple virtual disks, each an EBS volume. When you need more space, you just allocate an additional …

Continue reading ‘How can I add a resizable disk to my EC2 server?’ »

How can I connect two AWS accounts together?

Introduction I have two Amazon AWS accounts, each with a VPC. Can I connect two VPCs is different accounts together? Amazon doesn’t provide a manner to route traffic between VPCs in different accounts, but you can set up a “tunnel” yourself using two EC2 servers as “gateways” using the OpenSWAN VPN. OpenSWAN is a free, …

Continue reading ‘How can I connect two AWS accounts together?’ »