VPC and Firewall with IP

Hey everyone,

Just wondering if you can help.

I’m looking for a cloud firewall. Basically to do this.

Get an IP from Google and use this as the main IP and firewall and all traffic would filter through this before it’s sent to the server which is hosted within my home on my 2gb Internet connection.

If this possible?

Thanks in advance!

Gaff

1 Like
  • Reserve a Static External IP in Google Cloud.
  • Set Up a Google Cloud VM to act as a firewall and forward traffic.
  • Configure Cloud Firewall Rules to allow/deny traffic as needed.
  • Use a VPN or GRE Tunnel from your Google Cloud VM to your home network for secure traffic forwarding.

Hi @Gaffcain ,

Welcome to Google Cloud Community!

Yes, it is possible by creating a Compute Engine VM instance that will act as a gateway and all traffic will be filtered in the firewall before being routed to your home network. Here how you can configure it:

  1. Create a Google Cloud VM instance and assign a static IP to this VM. This will act as your gateway for all external traffic.
  2. Configure a VPN connection between your Google Cloud VM and your home network. You can check Cloud VPN documentation on how to configure.
  3. Configure firewall rules to filter and control the inbound and outbound traffic in the VM.
  4. Create a custom route in GCP to direct traffic from GCP VM to your home server via VPN. This will ensure that all traffic will go through to GCP VM and forward via VPN tunnel to your home network.

In this setup, the static IP of your VM will be your ‘main IP’ and all incoming traffic will be filtered by the cloud firewall before it will be sent to your server.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

1 Like