How to setup IPSec with Amazon EC2

Posted by bonzi on Ask Ubuntu See other posts from Ask Ubuntu or by bonzi
Published on 2011-06-22T23:02:14Z Indexed on 2012/09/30 9:49 UTC
Read the original article Hit count: 393

Filed under:
|
|

How to setup an IPSec connection from my ubuntu laptop to Amazon EC2 instance? I tried setting it up using elastic IP and VPC with the following openswan configuration but it is not working.

conn host-to-host

    left=%defaultroute
    leftsubnet=EC2PRIVATEIP/32 # Local netmask
    leftid=ELASTICIP
    leftrsasigkey=
    connaddrfamily=ipv4
    right=1laptopip # Remote IP address
    rightid=laptopip
    rightrsasigkey=
    ike=aes128 # IKE algorithms (AES cipher)
    esp=aes128 # ESP algorithns (AES cipher)
    auto=add
    pfs=yes
    forceencaps=yes
    type=tunnel

© Ask Ubuntu or respective owner

Related posts about amazon-ec2

Related posts about ipsec