1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gcp ファイアウォール ルールにipを複数設定する簡単なやり方

Posted at

gcpのコンソールからfirewall rulesのipを指定しようとすると1件ずつしか指定が出来ない。

辛いので、とりあえず1件だけ登録し、firewall rulesを作ったあとに下記のコマンドで一括登録出来る。
terraformでももちろん出来るが、コンソール使ってる人向け。

gcloud compute --project "プロジェクト" firewall-rules update ルール名 --source-ranges=xxx.xxx.xx.xx/xx,xxx.xxx.xx.xx/xx,xxx.xxx.xx.xx/xx
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?