I need to create a site-to-site
VPN with a remote VPC (IKEv2 + IPSec). Both sides use some web resources of the other, those services hostnames are mapped to IPs using a DNS server (one on each side). Side A uses Fortigate
, Side B uses StrongSwan
.
The network looks as follow, where Side B
has access to subnets A1, A2, A3
, while Side A
has access to subnet B
:
This is the configuration I'm using on Side B
/etc/ipsec.config
conn %default
keyexchange=ikev2
mobike=no
authby=psk
conn sideA
left=%defaultroute
leftid=GATEWAY_B_PUBLIC_IP
leftsubnet=SUBNET_B
right=GATEWAY_A_PUBLIC_IP
rightid=GATEWAY_A_PRIVATE_IP
rightsubnet=SUBNET_A1,SUBNET_A2,SUBNET_A3
type=tunnel
auto=start
The issue is that Subnet A4
overlaps Subnet B
, so this configuration doesn't work.
VPN Gateway B
is a virtual machine running Ubuntu 20, so it's open to customizations.