Amazon web services

Setting up VPN PPTP server and connecting to it

Following this link:

http://www.dikant.de/2010/10/08/setting-up-a-vpn-server-on-amazon-ec2/

Set up security group with icmp, tcp, udpc set to 0.0.0.0/0 and full IP range.

  sudo aptitude install pptpd

/etc/pptpd.conf:

  localip 192.168.240.1
remoteip 192.168.240.2-9

/etc/ppp/pptpd-options

  ms-dns 8.8.8.8
ms-dns 8.8.4.4

  echo "USERNAME pptpd PASSWORD *" | sudo tee -a /etc/ppp/chap-secrets

/etc/sysctl.conf

  net.ipv4.ip_forward=1

  sudo sysctl -p

  sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

/etc/rc.local:

  iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Setting up client on Ubuntu

  gnome-control-center 

Video connecting from Ubuntu

http://www.youtube.com/watch?v=YUgSpKFhuqg

IMPORTANT: Deselect "Share with all users", click "Use Point-to-Point" encryption (MPPE).

SSH to EC2 instance

ssh -i .ssh/mykey.pem root@[AWS_public_hostname]

Running Redmine

Backing up EC2 to S3

Setting ups Git

Last edited by Artem Dudarev, 2013-10-13 02:01:37. Edit