problem
Site to Site VPN Connections shows disconnected if there are no running vm's
versions
ACS 4.22
The steps to reproduce the bug
Steps to reproduce the issue
- Create a 3 vpc networks
vpc1 > 172.30.21.0/24
vpc2 > 172.30.22.0/24
- Create a respective network tier in each vpc
vpc1-tier1 > 172.30.21.0/28
vpc2-tier1 > 172.30.22.0/28
- Enable VPN for each vpc
Navigate to each vpc source nat ip and enable vpn
vpc1 > publicip address (source nat) > Enable vpn
vpc2 > publicip address (source nat) > Enable vpn
- Create Customer Gateway for each each vpc
Navigate > Network > VPN Customer Gateway
Name (vpc1-gateway) > Gateway ( publicip address (source nat) > CIDR list (172.30.21.0/28 ) > IPsec preshared-key ( from step 3 for each vpc)
Name (vpc2-gateway) > Gateway ( publicip address (source nat) > CIDR list (172.30.21.0/28 ) > IPsec preshared-key ( from step 3 for each vpc)
- Enable VPN Gateway
Home > Network > VPC > VPC-1 > VPN gateway (Enable)
Home > Network > VPC > VPC-2 > VPN gateway (Enable)
- Create a vpn connections to
VPC1 ↔ VPC2 ( VPC1 (active , VPC2 (passive)))
cmk createVpnConnection s2svpngatewayid= <> s2scustomergatewayid=<> passive=true
cmk createVpnConnection s2svpngatewayid= <> s2scustomergatewayid=<> passive=false
- Check all the vpn connections > All are in disconnected state
Workaorund
- Deploy vm's in each vpc tier become vpn connections are connected
Only then the vpn connections are established
Please check the following commands and logs to troubleshoot ipsec related issues
root@r-86-VM:# ipsec statusall
root@r-86-VM:# ip xfrm state
root@r-86-VM:~# ip xfrm policy
root@r-86-VM:/etc/ipsec.d#cat ipsec.vpn-.conf
root@r-86-VM:/etc/ipsec.d#cat ipsec.vpn-.secrets
root@r-86-VM:/etc/ipsec.d#cat l2tp.conf
root@r-86-VM:~#cat /var/log/daemon.log
What to do about it?
The site to site vpn tunnel should get established even if there are no vm's present in the initial deployment
IKE/IPsec negotiation happens VR-to-VR over the public IPs that negotiation doesn't inherently need a guest VM to exist.
Currently, the IKE initiation on the active side is contingent on some triggering event , that trigger generally comes from a config re-push tied to VM deployment (which touches routing/network state across the VRs),
problem
Site to Site VPN Connections shows disconnected if there are no running vm's
versions
ACS 4.22
The steps to reproduce the bug
Steps to reproduce the issue
vpc1 > 172.30.21.0/24
vpc2 > 172.30.22.0/24
vpc1-tier1 > 172.30.21.0/28
vpc2-tier1 > 172.30.22.0/28
Navigate to each vpc source nat ip and enable vpn
vpc1 > publicip address (source nat) > Enable vpn
vpc2 > publicip address (source nat) > Enable vpn
Navigate > Network > VPN Customer Gateway
Name (vpc1-gateway) > Gateway ( publicip address (source nat) > CIDR list (172.30.21.0/28 ) > IPsec preshared-key ( from step 3 for each vpc)
Name (vpc2-gateway) > Gateway ( publicip address (source nat) > CIDR list (172.30.21.0/28 ) > IPsec preshared-key ( from step 3 for each vpc)
Home > Network > VPC > VPC-1 > VPN gateway (Enable)
Home > Network > VPC > VPC-2 > VPN gateway (Enable)
VPC1 ↔ VPC2 ( VPC1 (active , VPC2 (passive)))
cmk createVpnConnection s2svpngatewayid= <> s2scustomergatewayid=<> passive=true
cmk createVpnConnection s2svpngatewayid= <> s2scustomergatewayid=<> passive=false
Workaorund
Only then the vpn connections are established
Please check the following commands and logs to troubleshoot ipsec related issues
root@r-86-VM:
# ipsec statusall# ip xfrm stateroot@r-86-VM:
root@r-86-VM:~# ip xfrm policy
root@r-86-VM:/etc/ipsec.d#cat ipsec.vpn-.conf
root@r-86-VM:/etc/ipsec.d#cat ipsec.vpn-.secrets
root@r-86-VM:/etc/ipsec.d#cat l2tp.conf
root@r-86-VM:~#cat /var/log/daemon.log
What to do about it?
The site to site vpn tunnel should get established even if there are no vm's present in the initial deployment
IKE/IPsec negotiation happens VR-to-VR over the public IPs that negotiation doesn't inherently need a guest VM to exist.
Currently, the IKE initiation on the active side is contingent on some triggering event , that trigger generally comes from a config re-push tied to VM deployment (which touches routing/network state across the VRs),