<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Perez on Medium]]></title>
        <description><![CDATA[Stories by Daniel Perez on Medium]]></description>
        <link>https://medium.com/@dnaer.067?source=rss-60bf75f63459------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cjpjto78w1MOzOmCm0GE9w.png</url>
            <title>Stories by Daniel Perez on Medium</title>
            <link>https://medium.com/@dnaer.067?source=rss-60bf75f63459------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:35:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dnaer.067/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[If You Can’t Measure it, You Can’t Improve it]]></title>
            <link>https://medium.com/@dnaer.067/if-you-cant-measure-it-you-can-t-improve-it-99bc75e7e6dc?source=rss-60bf75f63459------2</link>
            <guid isPermaLink="false">https://medium.com/p/99bc75e7e6dc</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[looker-studio]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[Daniel Perez]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 18:50:33 GMT</pubDate>
            <atom:updated>2025-12-17T18:51:48.628Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This mantra guides my work as a data scientist, but for a long time, I ignored it when it came to my own finances.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*RvUG2aX7dHodj39ye0DdCQ.png" /></figure><p>I’ll admit it: I was losing track of my spending. Despite working with data every day, my personal finances were a black box — forgotten subscriptions, and a vague sense of where my money was going.</p><p>I knew I could do better. So I decided to treat my finances like any other data project. I built a dashboard to get a clear, actionable picture of my money, and it completely changed the way I manage my finances.</p><p>In this article, I’ll share how I built my personal finance dashboard, the challenges I faced, and the insights I gained along the way.</p><h3>Why I Needed a Dashboard (and How the Project Started)</h3><p>Honestly, I didn’t even know I wanted a dashboard at first. The project simply started with a desire to have more control over my finances. I wasn’t satisfied with the existing expense tracking apps on the market — most of them are either ugly, or the ones that look good are expensive, and I didn’t want to add yet another subscription to my growing list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fg8V76FTvsqKJ1W5LXvNyQ.png" /></figure><p>My main goal was to find a solution that was both practical and cost-effective, without sacrificing user experience.</p><h3>From Artificial Data to Real-World Tracking</h3><p>The first step was data collection. I wanted to start a project with data I didn’t have yet, so I began by creating artificial data. My friend ChatGPT helped me generate sample transactions, define spending categories, payment methods, and transaction types. This exercise made me realize I didn’t just want an expense tracker — I wanted a holistic view of my finances, including expenses, investments, savings, and more.</p><p>Once I had my artificial data, I started thinking about how I would extract and record this information in real life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UsF2UnzR4R7tApbMvLxs6g.png" /></figure><p>My first idea was to use Notion: I created a form in Notion and connected its database to a Google Sheet using the Sync2Sheets add-on. It worked perfectly — until my trial period ended. As I mentioned, I didn’t want to add more subscription costs, so I looked for alternatives.</p><p>I tried Mario, another tool that lets you sync Notion with Google Sheets, but it still needs a lot of development and didn’t work as I expected. I really wanted to use Notion because of its flexibility, customization, and the fact that I already use it for almost everything. Plus, I love its interface and wanted to keep everything in one place.</p><p>After not finding a free or reliable solution, I decided to go with the simplest and most practical option: Google Forms and Google Sheets. This setup made it easy to record and ingest my financial data without any extra costs or complications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*n5xDEjDjP5_SHWDH" /></figure><h3>Tools, Design, and First Challenges</h3><p>For the dashboard itself, I chose Looker Studio. I started experimenting with different designs, charts, and color schemes until I found a style that really resonated with me. I’ll admit it — I’m a bit obsessed with how interfaces look. If it’s not visually appealing, I just can’t use it. So, I spent a lot of time tweaking the layout and aesthetics, making sure the dashboard was not only functional but also something I’d actually enjoy looking at every day.</p><p>As I played around with different visualizations, I quickly realized that some of the chart ideas I had in mind simply didn’t exist in Looker Studio. That was my first big challenge. I wanted an interactive dashboard with filters for months and years and charts that didn’t even exist in Looker, and I was limited by the types of data transformations I could do in Google Sheets. Most of the transformations needed to happen directly in Looker Studio for the filters to work properly.</p><p>Despite these limitations, I rolled up my sleeves and got to work. I focused on making the most out of the available tools, pushing Looker Studio’s features as far as I could to create a dashboard that was both interactive and visually satisfying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNWHkuHtS7wRxM4NkW07og.png" /></figure><h3>The Bubble Chart Struggle</h3><p>Let me be honest, getting that bubble chart to work was a total nightmare.</p><p>I had this idea in my head of a super clean, interactive bubble chart to show my top spendings, but Looker Studio just wasn’t having it. I tried everything: pulling in tables straight from Sheets, using card charts, playing with Looker’s native bubble chart, even making invisible tables with calculated ranges. Nothing worked the way I wanted. For a while, I was stuck and honestly thought about just giving up on that part.</p><p>But you know how it goes, sometimes you just need to step back and get creative. After a lot of trial and error (and maybe a little bit of stubbornness), I finally cracked it. The solution? I ended up building multiple tables for each month and using calculated SQL fields to get the right ranges for each bubble. It was a bit of a hack, but hey, it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L1NkbDF15fiHtdOHjo3QWg.png" /></figure><p>The Upcoming section wasn’t as much of a headache, but it definitely required me to dust off my old Excel skills. I spent a good amount of time tweaking formulas, double-checking dates, and making sure everything lined up just right. Let’s just say there were a few late nights and more than a couple cups of coffee involved. But in the end, seeing everything finally come together felt like a huge win. It’s funny how the features you think will be “just a nice touch” end up being the ones you fight with the most.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*psFfy4Z8pMDRrAi1_QvbMA.png" /></figure><h3>What’s Next?</h3><p>In the end, this turned out to be a really fun project and I’m pretty sure it’s going to help me get a much better handle on my finances. Is it perfect? Not at all. There are still a few rough edges, and for now, all the data is fake (so no one can judge my real spending habits!). The real test will be when I start logging my actual expenses and see how it all works in practice.</p><p>I already have a bunch of ideas for how to make it even better. Maybe I’ll connect a WhatsApp bot to log expenses just by sending a message, or build a Python script that reads my bank statements and automatically updates everything. Who knows what else I’ll come up with, but for now, this is how my “project of the month” wraps up.</p><p>I’ll be trying to share a new project every month, so stay tuned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNWHkuHtS7wRxM4NkW07og.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99bc75e7e6dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a VPN tunnel between two GCP projects]]></title>
            <link>https://medium.com/@dnaer.067/creating-a-vpn-tunnel-between-two-gcp-projects-db2e47301b51?source=rss-60bf75f63459------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2e47301b51</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[gcp-project]]></category>
            <category><![CDATA[vpn-tunneling]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud]]></category>
            <dc:creator><![CDATA[Daniel Perez]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 18:03:22 GMT</pubDate>
            <atom:updated>2024-07-31T18:03:22.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*q00RxfcsVQQSPfhafo1dYg.png" /></figure><h3><strong>Objective</strong></h3><p>This document provides a detailed guide on the process and steps required to create a VPN tunnel between two projects on Google Cloud Platform (GCP). From initial setup to final deployment, each section is designed to offer a clear and concise understanding of the procedures involved.</p><h3>What is Google Cloud Platform (GCP)?</h3><p>Google Cloud Platform (GCP) is a suite of cloud computing services offered by Google. It provides a range of hosted services for computing, storage, and application development that run on Google’s hardware. GCP allows developers and businesses to build, deploy, and scale applications, websites, and services on the same infrastructure that powers Google’s own products, such as Google Search, Gmail, and YouTube.</p><h3>What is a VPN Tunnel?</h3><p>A Virtual Private Network (VPN) tunnel is a secure connection established between two points over a public network, such as the internet. It uses encryption and other security measures to ensure that the data transmitted between these points remains confidential and secure. A VPN tunnel can connect two private networks, allowing them to communicate as if they were part of the same network, or it can connect an individual user to a private network. This technology is commonly used for secure remote access, enabling users to connect to their organization’s network from anywhere in the world, as well as for ensuring secure communication between different sites or data centers. VPN tunnels are an essential tool for protecting sensitive information and maintaining privacy in digital communications.</p><h3>Main Benefits of Connecting Two Projects with a VPN Tunnel</h3><p>Connecting two projects with a VPN tunnel on GCP provides several significant advantages. This setup allows for secure and private communication between isolated environments, facilitating the exchange of data and services. It enhances security by encrypting traffic between projects, ensuring that sensitive information is protected. Additionally, it offers cost efficiency by utilizing GCP’s scalable infrastructure, eliminating the need for physical hardware or complex network configurations.</p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3AXw1FGBHEw-QK-ShqPZw.png" /></figure><h3>Flow of Data</h3><ul><li>The <strong>VPN</strong> establishes a secure channel over the internet, connecting the on-premises network or another cloud network to the VPC.</li><li>Inside the <strong>VPC</strong>, data flows through specific <strong>Subnets</strong>, ensuring isolation and segmentation of resources.</li><li><strong>VM Instances</strong> within these subnets utilize <strong>Network Interfaces</strong> to interact with each other and external systems securely.</li></ul><p>This architecture is commonly used to securely connect an on-premises network with cloud resources or to connect multiple cloud environments, facilitating secure data exchange and resource management.</p><h3>1- Create a VPC Network and Subnet for Both Projects</h3><p>In this section, we will outline the steps to create a Virtual Private Cloud (VPC) network on Google Cloud Platform (GCP). This VPC network will serve as the foundation for securely connecting different environments, such as development, testing, and production, within your GCP projects. We will cover the key features of VPCs, their configuration options, and how they integrate with other GCP services to enable secure and efficient network management.</p><h3>Steps to Create a VPC Network on GCP:</h3><ol><li><strong>Access the GCP Console:</strong></li></ol><ul><li>Navigate to the Google Cloud Console.</li></ul><p><strong>2. Open the VPC Network Section:</strong></p><ul><li>In the left-hand menu, click on <strong>“VPC network”</strong> and then select <strong>“VPC networks”</strong>.</li></ul><p><strong>3. Create a New VPC Network:</strong></p><ul><li>Click on the <strong>“Create VPC network”</strong> button at the top of the page.</li></ul><p><strong>4. Configure the VPC Network:</strong></p><ul><li><strong>Name:</strong> Enter a name for your VPC network.</li><li><strong>Subnet creation mode:</strong> Choose <strong>“Custom”</strong>.</li><li><strong>Custom:</strong> Allows you to specify custom subnets.</li></ul><p><strong>5. Configure Additional Options (optional):</strong></p><ul><li><strong>Firewall rules:</strong> Check all the firewall rules boxes.</li><li><strong>Advanced dynamic routing configuration:</strong> Set to <strong>Global</strong>.</li></ul><p><strong>6. Finalize and Create the VPC Network:</strong></p><ul><li>Review the configurations.</li><li>Click on <strong>“Create”</strong> to create the VPC network.</li></ul><p><strong>7. Add Subnets:</strong></p><ul><li>Click on your VPC network, go to “<strong>Subnets</strong>” and click on <strong>“Add subnet”</strong>.</li><li><strong>Name:</strong> Enter a name for the subnet.</li><li><strong>Region:</strong> Select the region where the subnet will be created.</li><li><strong>IP address range:</strong> Specify the range.</li></ul><p><strong><em>How To Choose the IP Ranges:</em></strong></p><p>To connect two projects using VPC peering, it’s important that the IP address ranges of the VPC networks in each project do not overlap. Here’s an example of how you could configure the IP ranges for the two projects:</p><h4>Project A</h4><ul><li><strong>VPC Network Name</strong>: vpc-network-a</li><li><strong>IP Range</strong>: 10.1.0.0/16</li><li>This range allows for up to 65,536 IP addresses, suitable for a fairly large network.</li></ul><h4>Project B</h4><ul><li><strong>VPC Network Name</strong>: vpc-network-b</li><li><strong>IP Range</strong>: 10.2.0.0/16</li><li>This range also allows for up to 65,536 IP addresses.</li></ul><p>These IP ranges (10.1.0.0/16 and 10.2.0.0/16) are examples and should be adjusted based on your specific needs, such as the network size and the number of instances you plan to host.</p><h4>Considerations:</h4><p><strong>No Overlap</strong>: Ensure that the IP ranges of the networks in both projects do not overlap to avoid routing issues and IP conflicts.</p><p><strong>Subnet Configuration</strong>: Within each VPC, define subnets with specific IP ranges. For example:</p><ul><li>For vpc-network-a: 10.1.1.0/24, 10.1.2.0/24, etc.</li><li>For vpc-network-b: 10.2.1.0/24, 10.2.2.0/24, etc.</li></ul><p><strong>8. Firewall Rules</strong>: Set up appropriate firewall rules to allow traffic between instances in both projects, according to your application needs.</p><p><strong>9. Verify the VPC Network:</strong></p><ul><li>Once created, verify that the VPC network and subnets appear in the VPC networks list.</li><li>Ensure that the settings match your requirements and that the network is ready for use.</li></ul><h3>This Should Look Something Like This:</h3><h4><strong>Project A:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*oVNfJNT5Zbi53Hko9Try3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xj0ZcBytCNoYYoobp8vj8w.png" /></figure><h4><strong>Project B:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*YAfScvVmj_HHe6tiJJ11pA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ar_N5JrZDFRfRAV47v3cfQ.png" /></figure><h3>2- Create a VM Instance in Compute Engine for Both Projects</h3><p>In this section, we will outline the steps to create Virtual Machine (VM) instances on Google Cloud Platform (GCP) using the Compute Engine service. These VM instances will serve as the foundation for deploying applications and running services for both projects. We will guide you through the process of setting up the necessary infrastructure, including selecting machine types, configuring storage, and setting up networking. This will ensure that your projects have the necessary resources to run efficiently and securely within the GCP environment. Additionally, we will discuss best practices for managing and maintaining your VM instances.</p><ol><li><strong>Enable Compute Engine API</strong></li></ol><ul><li>Go to the “APIs &amp; Services” section in the GCP Console.</li><li>Enable the “Compute Engine API” if it’s not already enabled.</li></ul><p><strong>2. Configure IAM Permissions</strong></p><ul><li>Ensure that your user account has the necessary permissions to create VM instances. Roles like “Compute Admin” or “Editor” should suffice.</li></ul><p><strong>3. Create a VM Instance</strong></p><ul><li>Go to the “Compute Engine” section in the GCP Console.</li><li>Click on “Create Instance.”</li></ul><p><strong><em>Instance Configuration:</em></strong></p><ul><li><strong>Name</strong>: Assign a unique name to your VM instance.</li><li><strong>Region and Zone</strong>: Choose the same region you used in your VPC network and Subnet.</li><li><strong>Machine Configuration</strong>:</li><li>Select a machine family (e.g., General-purpose, Compute-optimized).</li><li>Choose a machine type (e.g., n1-standard-1, e2-medium) based on your needs.</li><li><strong>Boot Disk</strong>:</li><li>Choose an OS image (e.g., Debian, Ubuntu, Windows).</li><li>Configure the disk size and type (standard persistent disk, SSD).</li><li><strong>Firewall</strong>:</li><li>Set up firewall rules to allow necessary traffic (e.g., HTTP, HTTPS).</li></ul><p><strong>4. Review and Create</strong></p><ul><li><strong>Review your configurations.</strong></li><li><strong>Click “Create” to launch the VM instance.</strong></li></ul><h3>This Should Look Something Like This:</h3><h4>Project A:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_Fj-FwOzopsw-dluLOJpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*2DJpvcJiTT7Pd0C-qYVAkA.png" /></figure><h4>Project B:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VN8huZIdhclDpekkL9pJUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Ks5DoT5i3eJwrS73p1OKJQ.png" /></figure><p><strong>Example in the Image</strong></p><p>In the provided images, we can see two projects (“proyecto-a” and “proyecto-b”) with their respective instances (“instancia-a” and “instancia-b”). The instances are configured in different Projects:</p><ul><li><strong>For “instancia-a” in “proyecto-a”:</strong></li><li><strong>Network:</strong> vpc-a</li><li><strong>Subnetwork:</strong> subnet-a</li><li><strong>Internal IP:</strong> 10.1.0.2</li><li><strong>External IP:</strong> 34.174.5.223</li><li><strong>For “instancia-b” in “proyecto-b”:</strong></li><li><strong>Network:</strong> vpc-b</li><li><strong>Subnetwork:</strong> subnet-b</li><li><strong>Internal IP:</strong> 10.2.0.2</li><li><strong>External IP:</strong> 34.174.84.32</li></ul><p><strong>Importance of Networks and Subnets</strong></p><p>Networks and subnets in GCP are crucial for security and traffic management. They allow for the isolation of resources, the application of specific firewall policies, and the management of access to services. When configuring VM instances, correctly choosing the network and subnet is essential to ensure that resources communicate efficiently and securely.</p><h3>3- Create a VPN for Both Projects</h3><p><strong>1. Navigate to the VPN Section</strong></p><ul><li>In the Google Cloud Console, go to “Network Connectivity Center” &gt; “VPN”.</li></ul><p><strong>2. Access the Setup Wizard</strong></p><ul><li>Click on the “VPN Setup Wizard” button to start the configuration process.</li></ul><p><strong>3. Choose Classic VPN</strong></p><ul><li>In the wizard, select the “Classic VPN” option to set up a traditional VPN gateway.</li></ul><p><strong>4. Create a Static IP Address</strong></p><ul><li>During the setup, you’ll be prompted to create a new static IP address for the VPN gateway. Click on “Create IP Address” and assign a name (e.g., vpn-b).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wV4lr0L0LZHmdj_ZHmnwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DF15-_zw2LbNzsfOdaL17A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*9jcFaf190DvS8EuIt30unw.png" /></figure><p><strong>5. Configure the VPN Gateway</strong></p><ul><li><strong>Name</strong>: Enter a name for the VPN gateway (e.g., vpn-b).</li><li><strong>Network</strong>: Select the VPC network you want the VPN gateway to reside in (e.g., vpc-b).</li><li><strong>Region</strong>: Choose the appropriate region where the VPN gateway will be located (e.g., us-south1 (Dallas)).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*6e2SHLhudS0a1y7qHDeTJA.png" /></figure><p><strong>6. Create the VPN Gateway</strong></p><ul><li>After configuring the details, click “Create” to establish the VPN gateway.</li></ul><h3>This Should Look Something Like This:</h3><p><strong>Project A:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyOFZ45C3PVXCrB8kWNS0A.png" /></figure><p><strong>Project B:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWU2y0OfywooD1SKVjcwgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*9jcFaf190DvS8EuIt30unw.png" /></figure><p>💡 <strong>NOTE:</strong><br>During the setup of the VPN gateway, we reserved an IP address specifically for demonstration purposes. As a result, there are two different IP addresses associated with the VPN gateway:</p><ul><li><strong>Active IP Address</strong>: 34.174.9.51 (Currently used for the VPN gateway &quot;vpn-b&quot;)</li><li><strong>Reserved IP Address</strong>: 34.174.202.70 (Reserved for the example but not currently in use)</li></ul><p>It’s important to note that while the reserved IP address (34.174.202.70) appears in the dropdown, the actual IP address being utilized by the VPN gateway is 34.174.9.51. This is the IP address to be used for all configurations and connections relating to this VPN gateway. The reserved IP was only used as an example during setup and is not active.</p><p>These steps will set up the classic VPN gateway. Now you can proceed with adding tunnels and configuring additional settings at a later stage.</p><p>💡 <strong>NOTE:</strong><br>Repeat the Same Steps for Project A</p><h3>4- Create the VPN Tunnel to Connect Both Projects</h3><p>Creating a VPN tunnel is an essential step to securely connect two separate projects or networks, enabling private and secure communication over the internet. In this guide, we will outline the steps to set up a VPN tunnel between two projects on Google Cloud Platform (GCP). This tunnel will encrypt traffic between the two networks, ensuring data integrity and confidentiality.</p><p><strong>1. Navigate to the VPN Section in the GCP Console</strong></p><ul><li>Go to the Google Cloud Console and navigate to “Network Connectivity Center” &gt; “VPN”.</li></ul><p><strong>2. Select the VPN Gateways</strong></p><ul><li>Identify the VPN gateways created in each project. These gateways will serve as the endpoints for the VPN tunnel.</li></ul><p><strong>3. Create a VPN Tunnel</strong></p><ul><li>Click on “Add VPN Tunnel”.</li></ul><p><strong>4. Configure the VPN Tunnel</strong></p><ul><li><strong>Name</strong>: Provide a name for the VPN tunnel (e.g., vpn-a-tunnel-a or vpn-b-tunnel-b).</li><li><strong>Description</strong>: Optionally, provide a description for the tunnel.</li><li><strong>Remote Peer IP Address</strong>: Enter the external IP address of the peer VPN gateway (the other project’s VPN gateway). For example, if you are creating the tunnel in project A, you will need to enter the IP address of project B: 34.174.9.51.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWU2y0OfywooD1SKVjcwgQ.png" /></figure><ul><li><strong>IKE Version</strong>: Select the IKE version (e.g., IKEv2) from the dropdown menu. This determines the protocol used for key exchange.</li><li><strong>IKE Pre-shared Key</strong>: You can either enter a custom pre-shared key or click “<strong>GENERATE AND COPY</strong>” to create a new one. Make sure to securely store this key, as it cannot be retrieved after closing the form. Generate the key in only one project, then securely store it for use in configuring the VPN tunnel in the other project.</li></ul><p><strong>5. Select Routing Options</strong></p><ul><li><strong>Route-based</strong>: Select this if you want to use static routing based on specific IP ranges.</li></ul><p><strong>6. Specify Remote Network IP Ranges</strong></p><ul><li>In the “Remote network IP ranges” field, enter the IP ranges in CIDR notation for the networks that will be accessible through the VPN tunnel. This defines which IP addresses can communicate over the VPN. You can find this information by looking at the VPC — subnet configuration of your peer project, where you can see the range of the subnet that needs to be specified. For example, if you are creating the tunnel in project A, then you are looking for the subnet range of project B: 10.2.0.0/24.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*q8pjsolevqA12Nf_4vXJsg.png" /></figure><p><strong>7. Create the VPN Tunnel</strong></p><ul><li>After all the details are filled in, review the settings for accuracy.</li><li>Click “CREATE” to establish the VPN tunnel.</li></ul><h3>This Should Look Something Like This:</h3><p><strong>Project A:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPR9TVYA6GEfFlZ99L1qAg.png" /></figure><p><strong>Project B:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwHqbZDtkyNSqp2MdhMPsg.png" /></figure><p>After creating the VPN tunnel, monitor its status to ensure it shows as “Established,” indicating a successful connection. You can further test connectivity by accessing resources across the tunnel or pinging the remote network. This setup allows secure communication between the connected networks through the VPN.</p><h3>5- Ensure Your Tunnel is Working Properly</h3><p>Creating a VPN tunnel is an essential step to securely connect separate projects or networks, enabling private and secure communication over the internet. Once the VPN tunnel is established, it’s crucial to verify that it is functioning correctly. This involves checking the status of the tunnel and testing connectivity between the connected networks. In this section, we will outline how to test your VPN tunnel’s functionality using the ping command and SSH connections to a VM machine.</p><p><strong>1. Verify Tunnel Status:</strong></p><ul><li>In the Google Cloud Console, navigate to “Hybrid Connectivity” &gt; “VPN”.</li><li>Check the status of your VPN tunnel. It should be marked as “Established” if the connection is active and working correctly.</li></ul><p><strong>2. Connect to the VM Machine via SSH:</strong></p><ul><li>In the Google Cloud Console, navigate to “Compute Engine” &gt; “VM Instances”.</li><li><strong>Steps:</strong></li></ul><ol><li><strong>Activate Cloud Shell</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SN7eHZBxQvCH0yhymdkrCg.png" /></figure><ol><li><strong>Use the SSH command to connect to a VM instance in either Project A or Project B.</strong><br>Go to “SSH” and click on “View gcloud Command”.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqUg806fSWNvhkSvuItkdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*uSn0c4QqOnEpPpprl6EXWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wg8Ay4UqYmYCTxPoNVAPwg.png" /></figure><pre>gcloud compute ssh --zone &quot;us-south1-a&quot; &quot;instancia-a&quot; --project &quot;proyecto-a-test&quot;</pre><ol><li><strong>Run the command in the Cloud shell</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKnqFz9Nikrm8LSPNtMJOA.png" /></figure><p><strong>3. Testing Connectivity with </strong><strong>ping:</strong></p><ul><li>After successfully connecting to the VM via SSH, you can use the ping command to check connectivity to another machine in the remote network.</li><li><strong>Steps:</strong></li></ul><ol><li>From the terminal on the connected VM in Project A, you want to ping Project B. Remember the Project B IP address?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWU2y0OfywooD1SKVjcwgQ.png" /></figure><ol><li>Run the following command:</li></ol><pre>ping 34.174.9.51</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*vjl_itomVD--lSizQcFvtg.png" /></figure><ol><li>Observe the results. Successful ping responses indicate that the VPN tunnel is properly routing traffic and the connection between the networks is functional.</li></ol><p>This additional SSH step ensures that you are operating from within the connected network, enabling you to effectively test the VPN tunnel’s functionality using the ping command.</p><h3>Final Conclusion</h3><p>In this guide, we have explored the comprehensive steps to set up a secure VPN tunnel between two projects on Google Cloud Platform (GCP). From creating VPC networks and subnets to establishing a VPN gateway and ensuring proper tunnel functionality, each step has been outlined to facilitate secure communication and resource sharing between distinct environments. This architecture enables the seamless integration of on-premises networks with cloud resources or the connection of multiple cloud environments, thus providing a robust solution for secure data exchange and resource management.</p><p>By following these steps, organizations can ensure that their network infrastructure is both secure and scalable, supporting various business needs and compliance requirements. The VPN tunnel setup detailed in this document not only enhances security by encrypting data traffic but also provides a reliable foundation for future cloud integrations and expansions. As organizations continue to leverage cloud technologies, establishing secure and efficient connectivity will remain a critical aspect of their digital strategies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2e47301b51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>