---
title: Create a Classic Tunnel from GCP to Anypoint Platform
description: Responsible for your organization's security? Learn how to set up a classic VPN from GCP to MuleSoft's Anypoint Platform.
image: https://blog.avenuecode.com/hubfs/map-g886860184_1920.jpg
---

[AvenueCode.com](https://avenuecode.com) [News](https://avenuecode.com/news) [Contact](https://avenuecode.com/contact)

[![Avenue Code Snippets Logo](https://blog.avenuecode.com/hubfs/Avenue%20Code%20New%20Logos%20-%202023/AC-Snippets---Black.png)](https://blog.avenuecode.com/?hsLang=en-us) *menu*

- Technology
  
  [Cloud](https://blog.avenuecode.com/blog/topic/cloud?hsLang=en-us) [Delivery Infrastructure](https://blog.avenuecode.com/blog/topic/delivery-infrastructure?hsLang=en-us) [Web Experience](https://blog.avenuecode.com/blog/topic/web-experience?hsLang=en-us) [Agile Mindset](https://blog.avenuecode.com/blog/topic/agile-mindset?hsLang=en-us) [Quality First](https://blog.avenuecode.com/blog/topic/quality-first?hsLang=en-us)
  
  [Design](https://blog.avenuecode.com/blog/topic/design?hsLang=en-us) [Solution Architecture](https://blog.avenuecode.com/blog/topic/solution-architecture?hsLang=en-us) [Data & ML](https://blog.avenuecode.com/blog/topic/data-and-machine-learning?hsLang=en-us) [Mobile Experience](https://blog.avenuecode.com/blog/topic/mobile-experience?hsLang=en-us)
- [Whitepapers](https://blog.avenuecode.com/blog/topic/whitepapers?hsLang=en-us)
- [Spotlight](https://blog.avenuecode.com/blog/topic/spotlight?hsLang=en-us)
- [Extraordinary Women in Tech](https://blog.avenuecode.com/blog/topic/extraordinary-women-in-tech?hsLang=en-us)
- [Avenue Code Culture](https://blog.avenuecode.com/blog/topic/avenue-code-culture?hsLang=en-us)

- [Cloud](https://blog.avenuecode.com/blog/topic/cloud?hsLang=en-us)
- [Design](https://blog.avenuecode.com/blog/topic/design?hsLang=en-us)
- [Delivery Infrastructure](https://blog.avenuecode.com/blog/topic/delivery-infrastructure?hsLang=en-us)
- [Solution Architecture](https://blog.avenuecode.com/blog/topic/solution-architecture?hsLang=en-us)
- [Web Experience](https://blog.avenuecode.com/blog/topic/web-experience?hsLang=en-us)
- [Data & ML](https://blog.avenuecode.com/blog/topic/data-and-machine-learning?hsLang=en-us)
- [Agile Mindset](https://blog.avenuecode.com/blog/topic/agile-mindset?hsLang=en-us)
- [Mobile Experience](https://blog.avenuecode.com/blog/topic/mobile-experience?hsLang=en-us)
- [Quality First](https://blog.avenuecode.com/blog/topic/quality-first?hsLang=en-us)
- [Whitepapers](https://blog.avenuecode.com/blog/topic/whitepapers?hsLang=en-us)
- [Spotlight](https://blog.avenuecode.com/blog/topic/spotlight?hsLang=en-us)
- [Extraordinary Women in Tech](https://blog.avenuecode.com/blog/topic/extraordinary-women-in-tech?hsLang=en-us)
- [Avenue Code Culture](https://blog.avenuecode.com/blog/topic/avenue-code-culture?hsLang=en-us)

# [Create a Classic Tunnel from GCP to Anypoint Platform](https://blog.avenuecode.com/create-a-classic-tunnel-from-gcp-to-anypoint-platform)

- [Tweet](https://twitter.com/share)

*perm\_identity* [Anupam Gogoi](https://blog.avenuecode.com/create-a-classic-tunnel-from-gcp-to-anypoint-platform/author/anupam-gogoi?hsLang=en-us)

*schedule* 12/14/22 2:00 PM

Classic VPNs are quick and easy to configure, and understanding how they work will help prepare you to set up production-grade HA VPNs. In this short article, we will demonstrate how to create a **Classic VPN** tunnel from **GCP** to **Anypoint Platform**. 

##### VPN Setup in GCP

In this first phase, we will set up a classic VPN in GCP. To learn more about Classic VPN, please check the official [documentation](https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-static-vpns). For the sake of brevity, this article will cover only the basics regarding the creation of a VPN, starting with our "Create a VPN" screen:

**![](https://lh4.googleusercontent.com/zBTijORB_kdnVzckDJhGOAKzESCwJEhtZl6RNk6EGde5afDiumjTkBrBs12exzf5K2i3Z-NgzFsI23yJi3K7n0To4lZzU9yhjgonBeHviwKLnt9ZfTNEMaKTTx6VM1CPMe_YX0zOyUuOIGv7fpNLrZKyH6r1pUu392uFmE3qKPAkDSFWaJFqLr3RaAFuIA)**

Choose VPC

Next, we choose a **VPC** to expose via this VPN. In my case, it's **gke-vpc** with CIDR **10.101.0.0/22.** Then we reserve a **Static IP** for our VPN, as illustrated below.

![](https://lh6.googleusercontent.com/RcCyBrqUGOhnXIfU_-qewxIcElweX4VyjZGmPtdInA_y02ZYjFL0bk5_LPky5ECY6oF4oobQr8IVGR_p7Ac5JEcbd9famxbR4WH0gC6QElKJeYQ1nUfCKu9fOlDdlgyWmXZRy4VkJp-ZcFPi-Yk06lxYxZZ1JLvGt7FFfOOd0Un4vFW_HmrYKxm8pDLXQg)

Tunnel Configuration

Next, we need to configure our tunnels by filling in as much information in the form below as possible:

![](https://lh6.googleusercontent.com/RdHfcQOqlVbJlebUu4ELv-lKe4O2UeiuJraiZD2EioDu0CNZQQk6S3taIaVA0HMKjFZ_CEEd3GBe42OMPuSVSRl-Jj-5yvdYpiMBf6z1mpSFUyV8XbHttzJtolYho9zCW4ftpVMX9SWy-iMXLb_ppZ0J1Ri6yynX5AhdV_pY9RCWEzOhwH3wBS0v9iQn5Q)

To finish filling in the form above, we will need some information from the **Anypoint Platform**. So, let's switch to Anypoint Platform now.

VPN Setup in Anypoint Platform

For the sake of simplicity, I have mapped the information from the Anypoint Platform to the tunnel configuration form as shown in the screenshot below. This will help you understand which information corresponds to each field.

![](https://lh6.googleusercontent.com/Ui9UFTVaIqYKMeDBWHPlYEjIn1Mrk4-yOH3eF88v8W79eFfxFApLfo_t9g9Mqy-hTO1DXXlyDgHb3MlHeSdy8HHl7EhaULGIFyUYFxwaF5JZEK8UW7XS_0rkA4_arrL2gjRWpX3_aRsBDWY8Om4hcv8gzw_4hyGtW0mNwV3cOIKO0cIxgRUUY780rjKvwQ)

Get Tunnel Configs

The diagram below shows you how to fill in all of the necessary configurations.

![](https://lh6.googleusercontent.com/Sp9ytqKrns9UftPAE86-FZs0HGDTSwCmRYit_F40BRlUJmHU5UP9J_8O-DO3ZUPqKKlapikE1814Ad_OOZtjJfATla9FnMoD74o9-FO907oDeSLLhs8mhuenazFjufdE5I36kHH3WpZFEvzlUqiBlyEx5EHrI8CBadVYQahLXYFd-oDpNmOPKQGX4-0uyg)

Now click **CREATE*.*** If everything is correctly filled out, your tunnel will be created.

##### Testing the Tunnel

At this point, I have done two things:

1. I have launched a VM in GCP in the defined VPC i.e **10.101.0.0/22.** The IP of the VM instance is **10.101.0.10**. 
2. I have deployed an API in **CloudHub** in the specified VPC of Anypoint Platform, i.e **10.10.0.0/22**. The IP address of the worker is **10.10.3.134**.

So now let's test everything by pinging from both sides.

Ping from Worker (Anypoint Platform) to VM (GCP)

To test the configuration, I created a Mule API to run almost all Linux commands available in the worker.

Check out the result below, which shows that I can successfully ping the VM in GCP:

![](https://lh6.googleusercontent.com/TK4yyFGxFcjgKmjsHWtJsh9dUu8kIROpKuhkWWC8n8UWf4ICltaTijrO8iV_KpzEvQsYwrJ2eIwyFsH2GCDMoJf7z8crcyERXqgW2VUwIypY04iCZwQs3bp9CPXsfkX_i7fGSMB-XTGLfXnx3ORNlwvNh7FuiA_JgePO6Z0hC7d_KsTLCS4l20KESjLk4Q)

Ping from VM (GCP) to Worker (Anypoint Platform)

And now we need to test it from the VM to Anypoint Platform:

**![](https://lh3.googleusercontent.com/SH5CFakTXv8Mkh1fjFl4iHXH9HFA7NOcjUIMnepsVRlSjhJ1_kjOrgvlaxrEe2KVCpk0x0Xxe4PyE1amI9vc6acrvnEk4W-htqZ6Pss2uwUdS_WMwlDw90OuxN9eyCE_Js0nxyO1efbuYAag9o1gAIfQ9yN6mtRRP82Doq9wnywh8Kc7uBycJpU9CVc9Bw)**

Hurray! It also pinged. So, our tunnel is working perfectly.

##### Conclusion

In this brief article, I have shown how to create a tunnel from the Anypoint Platform to GCP in a classic way. The overall scenario is illustrated in the following diagram.

![](https://lh5.googleusercontent.com/A1oJ3D0DJUq2Nc70lgWxTXAhPuhVBrNk1acagZMswfMN8i8aXZhfNI953maFTY350KE9n8_5AWw5sDW9zGUXryky6VC4JcQNA_DAJAEJf7pRGnuGUofgdqmXQ8aWkZm3EVHTf1_HjaeDm3O2b5-47vIDnpxGzEamE58aC-bbS123t4H9IgWCTRi2SsTKNw)

In the next article, I will explain how to create an HA VPN in GCP and make a tunnel to the Anypoint Platform. 

---

### Author

# Anupam Gogoi

 Anupam Gogoi is an Integration Engineer at Avenue Code. He has been working in software development for about 9 years, implementing solutions in Java technologies as well as in SOA domain. He is a hardcore JAVA and MIDDLEWARE evangelist.

---

### Related Posts

### Building Accessible Web Applications

[READ MORE](https://blog.avenuecode.com/building-accessible-web-applications?hsLang=en-us)

### Create a Tunnel from Anypoint Platform to GCP Using an HA VPN

[READ MORE](https://blog.avenuecode.com/create-a-tunnel-from-anypoint-platform-to-gcp-using-ha-vpn?hsLang=en-us)

### How to Make an Android Splash Screen

[READ MORE](https://blog.avenuecode.com/how-to-make-an-android-splash-screen?hsLang=en-us)

### Leave a Comment!

### Avenue Code Social

[![Facebook Icon](https://blog.avenuecode.com/hubfs/Images/Blog/facebook.png?t=1486470796564)](https://www.facebook.com/avenuecode)

[![Twitter Icon](https://blog.avenuecode.com/hubfs/Images/Blog/twitter.png?t=1486470796842)](https://twitter.com/AvenueCode)

[![LinkedIn Icon](https://blog.avenuecode.com/hubfs/Images/Blog/linkedin.png?t=1486470796556)](https://www.linkedin.com/company/avenuecode/)

### Newsletter

Want to stay on top of all tips and news from Avenue Code?

### Popular Snippets

![Avenue Code-primary versions_logo white avenue code endorsement 2](https://blog.avenuecode.com/hs-fs/hubfs/Avenue%20Code%20New%20Logos%20-%202023/Avenue%20Code-primary%20versions_logo%20white%20avenue%20code%20endorsement%202.png?width=1180&name=Avenue%20Code-primary%20versions_logo%20white%20avenue%20code%20endorsement%202.png "Avenue Code-primary versions_logo white avenue code endorsement 2")

### About Us

- [Who We Are](https://www.avenuecode.com/who-we-are)
- [What We Do](https://www.avenuecode.com/what-we-do)
- [Portfolio](https://www.avenuecode.com/portfolio)
- [Partners](https://www.avenuecode.com/partners)
- [News](https://www.avenuecode.com/news)
- [Events](https://www.avenuecode.com/events)
- [Blog](https://blog.avenuecode.com/)
- [Contact](https://www.avenuecode.com/contact)

### Our Offices

San Francisco

[+1 415 766 4178](tel:+553125161448) [ac.inquiries@avenuecode.com](mailto:brazil.info@avenuecode.com)

Belo Horizonte

[+55 31 2516 1448](tel:+553125161448) [brazil.info@avenuecode.com](mailto:brazil.info@avenuecode.com)

São Paulo

[+55 11 3205 3232](tel:+553125161448) [brazil.info@avenuecode.com](mailto:brazil.info@avenuecode.com)

### We're Hiring!

- [Belo Horizonte](https://www.avenuecode.com/who-we-are)
- [New York](https://www.avenuecode.com/what-we-do)
- [San Francisco](https://www.avenuecode.com/portfolio)
- [São Paulo](https://www.avenuecode.com/partners)

---

©2015 - 2017 Avenue Code

[![Facebook Icon](https://blog.avenuecode.com/hubfs/Images/Icons/facebook-2.png)](https://www.facebook.com/avenuecode) [![Twitter Icon](https://blog.avenuecode.com/hubfs/Images/Icons/twitter-2.png)](https://twitter.com/AvenueCode) [![LinkedIn Icon](https://blog.avenuecode.com/hubfs/Images/Icons/linkedin-2.png)](https://www.linkedin.com/company/avenue-code) [![Glassdoor Icon](https://blog.avenuecode.com/hubfs/Images/Icons/glassdoor-icon-1.png)](https://www.glassdoor.com/Overview/Working-at-Avenue-Code-EI_IE456173.11,22.htm) [![YouTube Icon](https://blog.avenuecode.com/hubfs/Images/Icons/youtube-2.png)](https://www.youtube.com/user/AvenueCodePlay)

Please enable JavaScript to view the [comments powered by Disqus.](http://disqus.com/?ref_noscript)

© 2026 Avenue Code

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Anupam Gogoi",
    "url" : "https://blog.avenuecode.com/author/anupam-gogoi"
  },
  "dateModified" : "2022-12-14T17:00:00.708Z",
  "datePublished" : "2022-12-14T17:00:00.000Z",
  "headline" : "Create a Classic Tunnel from GCP to Anypoint Platform",
  "image" : [ "https://blog.avenuecode.com/hubfs/map-g886860184_1920.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.avenuecode.com/create-a-classic-tunnel-from-gcp-to-anypoint-platform",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.avenuecode.com/hubfs/Avenue%20Code%20New%20Logos%20-%202023/Avenue%20Code-primary%20versions_LOGO%20HORIZONTAL%20group%201-7.png"
    },
    "name" : "Avenue Code"
  }
}
```