{"id":312,"date":"2025-06-03T15:56:56","date_gmt":"2025-06-03T14:56:56","guid":{"rendered":"https:\/\/guillaumesblog.net\/?p=312"},"modified":"2025-06-03T15:56:56","modified_gmt":"2025-06-03T14:56:56","slug":"hybrid-cloud-part-3-terraform-files-available","status":"publish","type":"post","link":"https:\/\/guillaumesblog.net\/index.php\/hybrid-cloud-part-3-terraform-files-available\/","title":{"rendered":"Hybrid Cloud part 3 &#8211; terraform files available"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is a fully ready to go Site-2-site VPN connection set-up on Oracle OCI. The project description can be found on an earlier post of mine <a href=\"https:\/\/guillaumesblog.net\/index.php\/hybrid-cloud-home-lab-to-oracle-oci\/\">https:\/\/guillaumesblog.net\/index.php\/hybrid-cloud-home-lab-to-oracle-oci\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The terraform files are available on my GitHub repo <a href=\"https:\/\/github.com\/geddegda\/oci-site2site-vpn\">here<\/a>.<\/p>\n\n\n\n<!--more-->\n\n\n\n<ul class=\"wp-block-list\">\n<li>.tf files are meant to be uploaded at once in Oracle Resource Manager, so please pack them manually into a folder.<\/li>\n\n\n\n<li>They deploy for you the following resources\n<ul class=\"wp-block-list\">\n<li>oci_core_cpe<\/li>\n\n\n\n<li>oci_core_drg<\/li>\n\n\n\n<li>oci_core_drg_attachment<\/li>\n\n\n\n<li>oci_core_instance<\/li>\n\n\n\n<li>oci_core_internet_gateway<\/li>\n\n\n\n<li>oci_core_ipsec<\/li>\n\n\n\n<li>oci_core_ipsec_connection_tunnel_management<\/li>\n\n\n\n<li>oci_core_nat_gateway<\/li>\n\n\n\n<li>oci_core_route_table<\/li>\n\n\n\n<li>oci_core_security_list<\/li>\n\n\n\n<li>oci_core_subnet<\/li>\n\n\n\n<li>oci_core_vcn<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>I&#8217;ve left my public key here for reference, you want to update that with yours and then update compute.tf with your correct ssh_authorized_keys path.<\/li>\n\n\n\n<li>Once deployed you must go on the ipsec connection on the Oracle console and retrieve the Oracle endpoint and secret and begin your router configuration below.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve used a Cisco 2921 version 15.2, you can find the configuration on the router.cfg file and have to update it like so:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>update the pre-shared-key address with the secret<\/li>\n\n\n\n<li>change the IP at Z.Z.Z.Z with the OCI endpoint<\/li>\n\n\n\n<li>change the IP at X.X.X.X with your IP<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a fully ready to go Site-2-site VPN connection set-up on Oracle OCI. The project description can be found on an earlier post of mine https:\/\/guillaumesblog.net\/index.php\/hybrid-cloud-home-lab-to-oracle-oci\/ The terraform files are available on my GitHub repo here.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-conversation"],"_links":{"self":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":1,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/312\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}