Skip to content

kaysalawu/gcp-network-classic-terraform

Repository files navigation

GCP Networking Blueprints (Classic)

Contents

This collection of Terraform blueprints demonstrates different hub and spoke network patterns using classic networking products and services. It features:

  • VPC firewall rules
  • Multi-NIC appliances for layer 7 inspection
  • Simple hybrid Network Connectivity Centre configurations

A. Hub and Spoke with HA VPN to On-premises

⚙️ Deploy Terraform Code

In this lab:

  • A hub and spoke architecure with two spokes.
  • All north-south and east-west traffic are allowed via VPC firewall rules.
  • Hybrid connectivity to simulated on-premises sites is achieved using IPsec and BGP on Vyos network virtual appliance (NVA) routers.
  • Network Connectivity Center (NCC) is used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

Hub and Spoke

B. Hub and Spoke with Appliance IPsec Tunnel to On-premises

⚙️ Deploy Terraform Code

In this lab:

  • A hub and spoke architecure with two spokes.
  • All north-south and east-west traffic are allowed via VPC firewall rules.
  • Hybrid connectivity to simulated on-premises sites is achieved using IPsec and BGP on Vyos network virtual appliance (NVA) routers.
  • Network Connectivity Center (NCC) is used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

Hub and Spoke with Shared VPC

C. Hub and Spoke with Appliance GRE Tunnel to On-premises

⚙️ Deploy Terraform Code

In this lab:

  • A hub and spoke architecure with two spokes.
  • All north-south and east-west traffic are allowed via VPC firewall rules.
  • Hybrid connectivity to simulated on-premises sites is achieved using HA VPN underlay and GRE overlay with BGP routing on Vyos network virtual appliances (NVA).
  • Network Connectivity Center (NCC) is used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

Hub and Spoke with Appliance GRE Tunnel to On-premises

D. NVA with VPC Peering to Spokes

⚙️ Deploy Terraform Code

In this lab:

  • A hub and spoke VPC peering architecure using network virtual appliances (NVA) to inspect traffic to spokes.
  • NVA appliances are simulated using iptables on Linux instances.
  • All north-south and east-west traffic are allowed via the NVA instances in this lab.
  • Hybrid connectivity to simulated on-premises sites is achieved using HA VPN.
  • Network Connectivity Center (NCC) is used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

NVA with VPC Peering to Spokes

E. NVA with Shared VPC

⚙️ Deploy Terraform Code

In this lab:

  • A Shared VPC architecture using network virtual appliances (NVA) appliance for traffic inspection.
  • NVA appliances are simulated using iptables on Linux instances.
  • All north-south and east-west traffic are allowed via the NVA instances in this lab.
  • Hybrid connectivity to simulated on-premises sites is achieved using HA VPN.
  • Network Connectivity Center router appliances are used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

NVA with Shared VPC

F. Simple Hybrid Connectivity

⚙️ Deploy Terraform Code

In this lab:

  • A hub VPC network with simple hybrid connectivity to two on-premises sites.
  • All north-south and east-west traffic are allowed via VPC firewall rules.
  • Hybrid connectivity to simulated on-premises sites is achieved using HA VPN.
  • Network Connectivity Center (NCC) is used to connect the on-premises sites together via the external Hub VPC.
  • Other networking features such as Cloud DNS, PSC for Google APIs and load balancers are also deployed in this lab.

Simple Hybrid Connectivity