The Simplest Way to Make Fortigate and Google Compute Engine Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running fortigate and google compute engine together guards your cloud traffic with strict firewall rules. This setup filters packets before they reach your virtual machines in Google Cloud. Teams use this pair to inspect packets, block bad traffic, and link private subnets. You get deep network checks on top of flexible cloud compute instances. When you set it up well, your apps stay safe from outside threats. Your engineers also get clear paths to reach the servers they manage each day. How

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Running fortigate and google compute engine together guards your cloud traffic with strict firewall rules. This setup filters packets before they reach your virtual machines in Google Cloud.

Teams use this pair to inspect packets, block bad traffic, and link private subnets. You get deep network checks on top of flexible cloud compute instances. When you set it up well, your apps stay safe from outside threats. Your engineers also get clear paths to reach the servers they manage each day.

How fortigate and google compute engine share roles and data

Your virtual firewall runs as a dedicated virtual machine inside your Google Cloud project. It sits at the edge of your virtual network to check incoming packets. Network routes direct traffic from the internet to the firewall appliance first. The firewall checks its rule table before it forwards any data to backend servers.

Identity and roles also bridge the two tools during daily operations. The firewall uses a Google service account to read cloud metadata and tags. When your team adds a new server, the firewall reads those instance tags. It updates its address groups right away without a manual edit from an admin. Admins log in to the firewall and servers using their central directory accounts. This flow keeps network rules in sync with your active compute instances.

Common failure modes and how to scope network paths

Many teams make mistakes when they first link these two platforms in production. The biggest mistake is giving the firewall service account broad project editor rights. If an attacker steals that key, they can delete servers or read storage buckets. Instead, give the service account a custom role that only reads compute metadata.

Another common issue is using shared admin passwords for firewall and server logins. Shared keys make it impossible to see which engineer changed a route or server. Teams also often leave broad network ports open between the firewall and internal subnets. When internal rules are too wide, one bad server can put the whole network at risk. You can fix this by scoping each subnet to a single network interface. Assign strict firewall rules that only allow needed ports between specific server tags.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Auditing and securing engineer sessions to cloud servers

A perimeter firewall checks packets well, but it does not track every admin command. Once a user passes the firewall, standard network logs only show basic port traffic. You cannot see which database queries they ran or which files they changed. You also risk leaking sensitive data like emails or card numbers in query outputs.

Security teams need clear logs at the server and database level, not just packet logs. You should tie every server login and database query to a single person. You also need data masking that rewrites matched fields like phone numbers in results. Adding user-level controls on top of your network rules closes the gap for good.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why does traffic bypass my virtual firewall in Google Cloud?

Check your virtual network route priorities and subnet layout first. Every backend subnet must use the internal firewall address as its next hop route.

What role does the firewall need to read instance tags?

Give the firewall service account a read-only compute viewer role. It only needs to read instance names, IP addresses, and tags from the cloud API.

How do we handle high availability for the firewall instances?

Run two firewall instances in separate zones within the same region. Place a Google internal load balancer in front of them to split traffic safely.

The query runs. The emails stay hidden.