linzhengen / tech-notes

My tech notes write in github issues🧲
1 stars 0 forks source link

[20241009] タグを使用してファイアウォール ポリシー ルールを作成する #214

Open linzhengen opened 1 week ago

linzhengen commented 1 week ago

Doc

https://cloud.google.com/firewall/docs/use-tags-for-firewalls?hl=ja#rules-with-tags

Example

gcloud compute network-firewall-policies rules create 1 \
    --firewall-policy FIREWALL_POLICY_NAME \
    --src-secure-tags ORGANIZATION_ID/TAG_KEY/TAG_VALUE \
    --target-secure-tags ORGANIZATION_ID/TAG_KEY/TAG_VALUE \
    --direction DIRECTION \
    --action ACTION \
    --layer4-configs tcp:PORT \
    --global-firewall-policy

VPC設計のベストプラクティス

https://cloud.google.com/architecture/best-practices-vpc-design?hl=ja