Using Console
Using CLI
[FIREWALL_RULE_NAME]
with the name of the firewall rule you want to delete.
5. Modify the overly permissive firewall rules to allow only necessary traffic. You can use the following command to update a firewall rule:[FIREWALL_RULE_NAME]
with the name of the firewall rule you want to update, [IP_ADDRESS_RANGE]
with the IP address range that should be allowed, [PROTOCOL]
with the protocol that should be allowed (e.g. tcp), [PORT_NUMBER]
with the port number that should be allowed, and [PORT_PROTOCOL]
with the protocol of the port (e.g. tcp).By following these steps, you can remediate the firewall rules misconfiguration in GCP using GCP CLI.Using Python