[Openswan Users] Amazon EC2 IPSEC connection
John Q
john_q61 at yahoo.com
Sat Dec 1 15:25:07 EST 2012
I have configured a ubuntu 12.04 64-bit server machine on Amazon EC2 to act as a strongswan IPSEC server. I want to connect to it from my MAC OSX Mountain Lion's inbuilt IPSEC client. The OSX machine is in my home network.
I log into the AWS machine using a ssh to ubuntu at public-ip and I provide the private RSA key in form of .pem file which I downloaded when the machine instance was created. The ssh connection works file but the IPSEC connection fails.
What credentials/configurations should I provide for an IPSEC connection on the ubuntu server? My OSX machine is behind an ISP provided modem/router.
Here's my /etc/ipsec.conf on the EC2 Ubuntu server
conn amazonec2
authby=secret
auto=start
forceencaps=yes
# use %defaultroute to find our local IP, since it is dynamic
left=%defaultroute
# set our ID to our elastic IP
leftid=174.129.225.250
leftsubnet=10.249.45.0/24 # IP of the VM is 10.249.45.67
# set our desired source IP to the Elastic IP. Openswan will create interface address and route
leftsourceip=174.129.225.250
right=192.168.1.6 # IP adress of he OSX machine
rightsubnet=192.168.1.0/24
Appreciate any help and thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openswan.org/pipermail/users/attachments/20121201/7c5b59fe/attachment.html>
More information about the Users
mailing list