The GCP firewall has default, implied rules to block all ingress and allow all egress. That is for external traffic, outside the VPN.
But does this block traffic between subnets in a single VPN by default?
Mostly yes, by default traffic between subnets on a given VPC network is not allowed (except on the default network which is auto-created with your project).
Note that this actually blocks traffic between all instances, not just traffic between subnets. So, the focus is really on the instances, not on the subnets -- but the effect will be that by default, instances on different subnets (except on the default network) will not be able to communicate.
Remember, VPC firewall rules are enforced at the instance level, even though its configuration is at the network level.
While the rule is enforced at the instance level, its configuration is associated with a VPC network.
As you note, there are only two implied rules:
There are also default rules on the default network only.
default-allow-internal) -- this rule allows traffic between instances (regardless of subnet)So, on a non-default network you would need to create the equivalent of the default-allow-internal rule (allow all protocols from all IPs on the network to any instance on the network).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With