Hi I am trying to setup site-to-site vpn tunneling on AWS VMs. Below are my ipsec.conf
files for both VMs.
VM-1 (assume IP address : 1.2.3.4)
conn %default
lifetime=60m
mobike=no
keyexchange=ikev2
authby=secret
type=transport
auto=start
conn gateway-1
left=1.2.3.4
leftid=1.2.3.4
leftfirewall=yes
right=1.2.4.5
rightid=1.2.4.5
ike=aes256-sha1-modp1024!
esp=aes256-sha1!
leftauth=secret
rightauth=secret
type=transport
auto=start
VM-2 (assume IP address : 1.2.3.5)
conn %default
lifetime=60m
mobike=no
keyexchange=ikev2
authby=secret
type=transport
auto=start
conn gateway-2
left=1.2.3.5
leftid=1.2.3.5
leftfirewall=yes
right=1.2.4.4
rightid=1.2.4.4
ike=aes256-sha1-modp1024!
esp=aes256-sha1!
leftauth=secret
rightauth=secret
type=transport
auto=start
on both machines I have started strongswan by strongswan start
command.
When I am trying to run strongswan up gateway-1
from VM-1 I am getting -
initiating IKE_SA aaa[3] to 1.2.3.5
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
sending packet: from 1.2.3.4[500] to 1.2.3.5[500] (336 bytes)
received packet: from 1.2.3.5[500] to 1.2.3.4[500] (36 bytes)
parsed IKE_SA_INIT response 0 [ N(NO_PROP) ]
received NO_PROPOSAL_CHOSEN notify error
establishing connection 'gateway-1' failed
I am not sure what I am missing here.