I want to establish host to host libreswan ipsec VPN. I have done following.
- Created ubuntu instance
ubuntu-1
in default vpc in 1st account. - Assigned EIP and security group to my ubuntu instance allowing TCP port 1701, UDP port 4500,500 and Enabled All ICMP anywhere.
- Created ubuntu instance
ubuntu-2
in non-default VPC in public subnet of 2nd account. - Assigned EIP and security group to ubuntu instance allowing TCP port 1701, UDP port 4500,500 and Enabled all ICMP anywhere.
I am able to ping to ubuntu-2
from ubuntu-1
instance however I am not able to ping to ubuntu-1
from ubuntu-2
instance.
I am not sure what is wrong with my ubuntu-2
instance. It has internet gateway assigned to its public subnet. All the security group rules are mirrored for both server.