In this episode we are crating a tunnel between OCI and Google Cloud using the solution posted here
Follow this post for the OCI side and grab the value of the public IP endpoint and network encryption domain configured.
Create a vpn tunnel in google cloud, put the values of public IP and the network encryption domain of the OCI side previously created and grab the public IP of the public endpoint on the Google side.
Modify the settings in the /etc/ipsec.d/myvpn.conf file on the OCI headend side with the proper values as in the following example
# vpn conf # conn myvpn # don't assume anything and double check everything!!! leftid=130.61.x.y leftsourceip=10.250.x.y leftsubnet=10.250.128.0/24 right=35.204.x.y rightsubnet=10.164.0.0/20 type=tunnel authby=secret left=%defaultroute leftnexthop=%defaultroute pfs=yes auto=start
Modify the settings in the /etc/ipsec.d/myvpn.secrets file on the OCI headend side with the proper values as in the following example
10.250.128.10 35.204.x.y : PSK "ff7dd81be..........2756" 126.96.36.199 35.204.x.y : PSK "ff7dd81be..........2756"
Restart the OCI side
ipsec auto --add myvpn
ipsec auto --up myvpn
If everything runs fine the tunnel will brig up!!
Hope this helps! Enjoy 🙂