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.
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:
Configure a VPN connection between your Google Cloud VM and your home network. You can check Cloud VPN documentation on how to configure.
Configure firewall rules to filter and control the inbound and outbound traffic in the VM.
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.